Project

General

Profile

Activity

From 07/12/2011 to 07/18/2011

07/18/2011

11:58 PM Feature #4539: Array#zip_with
@Endoh Why would you have to rewrite? You can still iterate, just don't use the return result. trans (Thomas Sawyer)
10:29 PM Feature #5044: #zip with block return mapped results
Hi,
Please have a look at http://redmine.ruby-lang.org/issues/4539 (or [ruby-core:35613]).
The reason is explained by Yusuke in [ruby-core:35682]:
>2011/4/5 Benoit Daloze <eregontp@gmail.com>:
> ...
That issue kind of got lost,...
Eregon (Benoit Daloze)
12:35 PM Feature #5044 (Rejected): #zip with block return mapped results
Is there any reason that #zip doesn't return results like map?
[1,2,3].zip([1,2,3]){ |a,b| a + b } #=> [2,4,6]
Currently, it just returns nil, which seems rather contrary to the return result of the non-block form.
trans (Thomas Sawyer)
10:25 PM Bug #5046 (Closed): Bug with xmlrpc::client, basic auth and long authentication strings
XMLRPC::Client has support for basic auth. This tries to encode the
combination of the username and password with the base64 algorithm using
Array.pack. If however your username and password exceed a certain
length the truncate algori...
herwinw (Herwin Quarantainenet)
10:03 PM Bug #5045 (Closed): wrong method in doc of Net::HTTP
Hello,
I found a small typo in the documentation of Net::HTTP:
diff --git a/lib/net/http.rb b/lib/net/http.rb
index f898588..7c9032a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -108,7 +108,7 @@ module Net #:nodoc:
...
Eregon (Benoit Daloze)
05:15 PM Bug #4994: DelegateClass don't find extern global public method in 1.9.2
Sorry, but links are in Japanese.
I can read the code, but not why the DelegateClass shouldn't search the toplevel method, any more?
Could you translate or post a link to an English doc?
For the correction you suggest, I've wrote this...
sylvain303 (Sylvain Viart)
05:01 PM Feature #4921: Remove intern.h
2.0になることになったので、intern.h の中にあるあやしげな関数どもは internal.h に移しませんか?
あと、互換性維持の観点から拡張関数用のAPIからマクロ関数は全廃したい
kosaki (Motohiro KOSAKI)
04:53 PM Bug #4863: config.charset not found
2.0が突然身近に見えてきましたが ext/iconvはどうしますかね? kosaki (Motohiro KOSAKI)
03:23 PM Feature #4766: Range#bsearch
On Jul 18, 2011, at 1:30 AM, Yusuke ENDOH wrote:

> I agree that it seems neat, but it is ambiguous to me how it works
> concretely. What do you expect the following code outputs?

I see now my misunderstanding; the "minimum ...
Anonymous
02:59 PM Feature #4766: Range#bsearch
Oops,

2011/7/18 Yusuke ENDOH <mame@tsg.ne.jp>:
>> Or just the first element that matches?
>
> Good question :-)  Interestingly, break can be used.
>
>  ary
mame (Yusuke Endoh)
02:53 PM Feature #4766: Range#bsearch
Hello,

Thank you for all your opinions!


2011/7/18 Michael Edgar <adgar@carboni.ca>:
> This is handy, but what if someone wanted the maximum?

Please invert the condition. For example, if you want the maximum
index ...
mame (Yusuke Endoh)
09:29 AM Feature #4766: Range#bsearch
On Jul 17, 2011, at 8:12 PM, Michael Edgar wrote:

> # Returns the first-discovered elt for which the block yields true
> def bsearch_find(&blk)
> binary_matches(&blk).each do |elt|
> return elt if blk.call(elt)
> end
> end
...
Anonymous
09:23 AM Feature #4766: Range#bsearch
On Jul 17, 2011, at 7:54 PM, Eric Hodel wrote:

> When performing a binary search you may have multiple matching values, the three 100 values from the example. For the proposed implementation the first one is chosen for consistency.
...
Anonymous
08:52 AM Feature #4766: Range#bsearch
No, it's not about finding any minimum value, it's about binary search:
> I propose Range#bsearch for binary search
and
> ...
The important information in English does not necessarily come first. To make it more clear maybe it ...
drbrain (Eric Hodel)
12:13 AM Feature #4766: Range#bsearch
@eric So you are saying #bsearch _is_ #beach --that the minimum value return is just an aside to have the return value be useful? But won't the min value logic interfere with trying to do anything else with bsearch, e.g. "to_enum(:bsearc... trans (Thomas Sawyer)
11:06 AM Bug #5027: Snapshot(2011-07-14) Build Test Error @Cygwin
優先度はLowにさせてもらいますが、Cygwinを見れる人はいませんか? tarui (Masaya Tarui)
10:39 AM Bug #5034: C Source Code formatting
Lazaridis Ilias wrote:
> =begin
> ...
Could you be so kind as to point to a specific file (and possibly a line range) that you are having issues with? This is something that is really easier with a concrete example.
wishdev (John Higgins)
09:41 AM Bug #5034: C Source Code formatting
Ilias you're challenging not only the ruby community but also the BSD kernel hackers,
where they also use 4-space and tabs mixed (google "BSD KNF"). So if you've never
seen this, you are just... innocent.
Indentation is a holly war...
shyouhei (Shyouhei Urabe)
02:38 AM Bug #5034: C Source Code formatting
Martin Dürst wrote:
> Lazaridis Ilias wrote:
> ...
Please keep your advices for the juniors.
That I change to a harsher tenor does not mean that I've lost control or that I do no respect the people and their work (hint: a real frien...
lazaridis.com (Lazaridis Ilias)
07:53 AM Bug #5039: Re: socket related errors on chkbuild
2011年7月18日7:15 Hiroshi Nakamura <nakahiro@gmail.com>:
>
> 水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。

boron でない、手元の Debian lenny でも起きますね。

また、検索すると、
http://redmine.ruby-lang.org/issues/4923 では
...
akr (Akira Tanaka)
07:53 AM Bug #5039: Re: socket related errors on chkbuild
2011年7月18日7:15 Hiroshi Nakamura <nakahiro@gmail.com>:
>
> 水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。

boron でない、手元の Debian lenny でも起きますね。

また、検索すると、
http://redmine.ruby-lang.org/issues/4923 では
...
akr (Akira Tanaka)
07:12 AM Bug #5039: Re: socket related errors on chkbuild
水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。
akrさんに聞いたところによると、boronはDebian lennyで、Debian lennyは0.9.8gなんですね。それほど古いわけでもないなあ。
nahi (Hiroshi Nakamura)
04:38 AM Revision dc229682 (git): * ext/psych/lib/psych.rb: define a new BadAlias error class.
* ext/psych/lib/psych/visitors/to_ruby.rb: raise an exception when
deserializing an alias that does not exist.
* test/psych/test_merge_keys.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32578 b2dd03c8-39d4-...
tenderlovemaking (Aaron Patterson)
03:19 AM Feature #4893: Literal Instantiation breaks Object Model
=begin
Note: I've used tab-4 in the latest patch (v5b) by accident. See the issue #5034
=end
lazaridis.com (Lazaridis Ilias)
03:06 AM Feature #4893: Literal Instantiation breaks Object Model
Lazaridis Ilias wrote:
> Not "perfect", but should be stable and adoptable to other classes.
> ...
rb_set_call_flags -> rb_set_redefined_flags
rb_obj_call_init_fast -> rb_call_init_if_redefined
This name change "clarifies" that...
lazaridis.com (Lazaridis Ilias)
02:53 AM Bug #5038: Ruby 1.9.2 stops on some Regular Expressions
I put #{} into your Issue and got nil

n = 50
st = "Phone" + " "#{*n} + "Fax"
st.match(/(.+\s)*email/i)

----- Original Message -----
From: "Yui NARUSE" <naruse@airemix.jp>
To: ruby-core@ruby-lang.org
Sent: Sunda...
Anonymous
01:47 AM Bug #5038 (Rejected): Ruby 1.9.2 stops on some Regular Expressions
It is limitation of the spec which uses NFA regexp engine.
see also http://swtch.com/~rsc/regexp/regexp1.html
naruse (Yui NARUSE)
02:11 AM Feature #4963: Refine and Document the Issue Tracking Process
We want a documentation which prevents people who don't read previous discussion
even if we show a reference to the discussion.
naruse (Yui NARUSE)
01:21 AM Feature #4963: Refine and Document the Issue Tracking Process
=begin
See #5034 as a negative example: rejecting issue in the middle of a conversation.
=end
lazaridis.com (Lazaridis Ilias)
01:15 AM Feature #5041 (Closed): Set FD_CLOEXEC for all fds (except 0, 1, 2)
I'd like to set FD_CLOEXEC for all file descriptors (except 0, 1, 2,
i.e. standard input/output/error).
I talked this issue with kosaki and matz at RubyKaigi 2011 and
matz said "do it" and see that someone will cry or not.
FD_CLO...
akr (Akira Tanaka)
12:53 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
まつもと ゆきひろです

In message "Re: [ruby-dev:44143] Re: [Ruby 1.9 - Bug #4456] Time#strftime で %F 指定子に大きな幅を指定した際の不具合"
on Mon, 18 Jul 2011 00:30:09 +0900, KOSAKI Motohiro <kosaki.motohiro@gmail.com> writes:

|2011年7月18日0:24 Mas...
matz (Yukihiro Matsumoto)
12:53 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
2011年7月18日0:24 Masaya TARUI <tarui@prx.jp>:
> 非常に重要な所が抜けてました。
>
> 『後藤 直久さん』は
>> いつも手薄なSolarisでチェックしてパッチを書いていただいているので、

+1.
kosaki (Motohiro KOSAKI)
12:29 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
非常に重要な所が抜けてました。

『後藤 直久さん』は
> いつも手薄なSolarisでチェックしてパッチを書いていただいているので、

です。
--
樽家昌也(Masaya TARUI)
No Tool,No Life.
tarui (Masaya Tarui)
12:13 AM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
Naohisa Gotoさんは いつも手薄なSolarisでチェックしてパッチを書いていただいているので、
コミット権を取ってもらうのはどうでしょうか?
今日勝手に聞いてみたところ、メンテナをしてもよいと言ってもらいました。
tarui (Masaya Tarui)
12:10 AM Feature #4896 (Closed): Add newpad() support to Curses
This issue was solved with changeset r32576.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/curses/curses.c: added the new class Curses::Pad, which
s...
shugo (Shugo Maeda)

07/17/2011

11:00 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
ありがとうございます。
では、CommitterHowtoのお作法に則って送らせてもらいます。
ktsj (Kazuki Tsujimoto)
10:23 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
(11/07/17 21:47), KOSAKI Motohiro wrote:
>> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。
>
> 取ってください。
> どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです

前田さんに公開鍵を送ってください。
nobu (Nobuyoshi Nakada)
10:23 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
(11/07/17 21:47), KOSAKI Motohiro wrote:
>> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。
>
> 取ってください。
> どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです

前田さんに公開鍵を送ってください。
nobu (Nobuyoshi Nakada)
09:53 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。

取ってください。
どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです
kosaki (Motohiro KOSAKI)
09:53 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
> コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。

取ってください。
どうせコードがあってるだろなーって場合は代理コミットするの面倒くさいです
kosaki (Motohiro KOSAKI)
07:52 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
対応ありがとうございました。
# なお、このコミット(r32569)でt.rbが混入してしまっています。
ktsj (Kazuki Tsujimoto)
04:26 PM Bug #5036 (Closed): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
This issue was solved with changeset r32569.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (rb_check_trusted): new function to check an object i...
nobu (Nobuyoshi Nakada)
12:03 PM Bug #5036: time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
コミット権を持っていないので、お手数ですがコミッタの方取り込みをお願いします。 ktsj (Kazuki Tsujimoto)
11:41 AM Bug #5036 (Assigned): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
入れちゃっていいんじゃないでしょうか。
あとはrb_check_frozen()のようにinsecureチェック用の関数を作るとか。
nobu (Nobuyoshi Nakada)
11:01 AM Bug #5036 (Closed): time_modify/struct_modifyの例外メッセージがサブクラスの情報を反映しない
=begin
辻本です。
time_modify/struct_modifyにて生成される例外のメッセージに
クラス名がハードコーディングされているため、
これらがサブクラスのオブジェクトから呼ばれた場合でも
そのことが例外メッセージから読み取れません。
Timeの例:
class Time2 < Time
end
t = Time2.now
$SAFE=4
t.gmtime # => Insecure: can't modi...
ktsj (Kazuki Tsujimoto)
10:23 PM Bug #5038: Ruby 1.9.2 stops on some Regular Expressions
Your regular expression is exponential, with a repeater (+) inside a repeater (*). It requires the regex engine to do a ton of backtracking, creating the seemingly endless loop. A lot of languages would choke on an expression like that. JEG2 (James Gray)
09:32 PM Bug #5038 (Rejected): Ruby 1.9.2 stops on some Regular Expressions
# Code to reproduce:
n = 50
st = "Phone" + " "*n + "Fax"
st.match(/(.+\s)*email/i)
nil is expected
The execution stops on match, or enters some endless loop. CPU load is high.
Works as expected when not using /i (case-insensit...
docolabs (Bob Ambartsumov)
09:53 PM Bug #5039: Re: socket related errors on chkbuild
>>> 1) Error:
>>> test_write_nonblock(OpenSSL::TestPair):
>>
>> これは原因が違うようで、直っていません。
>
> これが起き始めたのはそんなに古くないのですね。
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
> からなんですが、
>
...
kosaki (Motohiro KOSAKI)
09:53 PM Bug #5039: Re: socket related errors on chkbuild
>>> 1) Error:
>>> test_write_nonblock(OpenSSL::TestPair):
>>
>> これは原因が違うようで、直っていません。
>
> これが起き始めたのはそんなに古くないのですね。
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
> からなんですが、
>
...
kosaki (Motohiro KOSAKI)
09:35 PM Bug #5039 (Assigned): Re: socket related errors on chkbuild
kosaki (Motohiro KOSAKI)
09:34 PM Bug #5039 (Closed): Re: socket related errors on chkbuild
2011年7月16日23:09 Tanaka Akira <akr@fsij.org>:
>
>> 1) Error:
>> test_write_nonblock(OpenSSL::TestPair):
>
> これは原因が違うようで、直っていません。

これが起き始めたのはそんなに古くないのですね。
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/2011062...
akr (Akira Tanaka)
06:23 PM Feature #3378: Range#each should not yield its `begin' itself
2011/7/17 Akinori MUSHA <knu@ruby-lang.org>:
> まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。


なんでこれを登録したのかもう覚えてないのですが、おそらく
この違いにハマってカッとなって登録したんだと思います。

今から見ると不定と言われてもしょうがないかなと思いますし、
1.8.7 を変えるべきとは全く思わないので、1.8.8 がなさそう
...
mame (Yusuke Endoh)
06:23 PM Feature #3378: Range#each should not yield its `begin' itself
2011/7/17 Akinori MUSHA <knu@ruby-lang.org>:
> まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。


なんでこれを登録したのかもう覚えてないのですが、おそらく
この違いにハマってカッとなって登録したんだと思います。

今から見ると不定と言われてもしょうがないかなと思いますし、
1.8.7 を変えるべきとは全く思わないので、1.8.8 がなさそう
...
mame (Yusuke Endoh)
05:10 PM Feature #3378 (Rejected): Range#each should not yield its `begin' itself
まあselfが返ってくることもあり、いじってしまうと影響は不定、ということで一度閉じます。 knu (Akinori MUSHA)
06:23 PM Feature #4766: Range#bsearch
2011/7/17 Thomas Sawyer <transfire@gmail.com>:
> Hi, thanks for example. I may not fully understand bsearch, but basically what I mean is that if finding minimum value is the important thing, then why not call it #find_minimum ? (and w...
mame (Yusuke Endoh)
12:59 PM Feature #4766: Range#bsearch
The method is not about finding the minimum, it's about binary search. It has the additional behavior of finding the minimum value at the boundary condition for the block. If multiple values match the boundary condition the minimum is c... drbrain (Eric Hodel)
12:38 PM Feature #4766: Range#bsearch
Hi, thanks for example. I may not fully understand bsearch, but basically what I mean is that if finding minimum value is the important thing, then why not call it #find_minimum ? (and what about #find_maximum ?). But if binary search is... trans (Thomas Sawyer)
10:23 AM Feature #4766: Range#bsearch
> How is this useful? It's basically "find minimum" value, right? What difference does it make that it uses a binary search?
>
> If binary searching is important, then why not have a #beach --which can then be used to extrapolate an...
mame (Yusuke Endoh)
08:36 AM Feature #4766: Range#bsearch
How is this useful? It's basically "find minimum" value, right? What difference does it make that it uses a binary search?
If binary searching is important, then why not have a #beach --which can then be used to extrapolate any variet...
trans (Thomas Sawyer)
12:25 AM Feature #4766 (Assigned): Range#bsearch
Hello,
Today I talked with matz and got his approval about this ticket,
under the following two condition:
- commit it to trunk
- provide not only Range#bsearch but also Array#bsearch
- avoid C-level undefined behavior (e....
mame (Yusuke Endoh)
05:48 PM Bug #4223: GC.stress = true で謎の ArgumentError
RB_GC_GUARD マクロについて簡単にまとめておきます
* オブジェクトの中身を指してるポインタがCコード中にあって参照中なのに、オブジェクトを指すポインタ(VALUE)がどこにもなくなっちゃってGCに回収されるのを防ぐ
* 関数の最初のほうにあるコードがけっこうある。展開内容を工夫して、それでも困らないようにがんばってはいるけど、コンパイラによる高度な最適化で、結構わからない
* ソースコードのコントロールフロー中、オブジェクトの中身にアクセスしていて、か...
metanest (Makoto Kishimoto)
05:13 PM Bug #5034: C Source Code formatting
Lazaridis Ilias wrote:
[citing in pieces]
> Are you all blind? > The sources are like crap, > That's just insane.
> ...
Just some advice: If you hope to have some influence on Ruby, it would help
if you would give all t...
duerst (Martin Dürst)
02:23 PM Bug #5034: C Source Code formatting
see [ruby-core:36255] naruse (Yui NARUSE)
12:25 PM Bug #5034: C Source Code formatting
Nobuyoshi Nakada wrote:
> Hi,
> ...
Explain me this "real world" please.
Why do I have to see continuously crap like this:
....code
------->code
------->....code
------->------->code
------->------->....code
....code
Can ...
lazaridis.com (Lazaridis Ilias)
11:23 AM Bug #5034: C Source Code formatting
Hi,

At Sun, 17 Jul 2011 11:03:36 +0900,
Lazaridis Ilias wrote in [ruby-core:38118]:
> Within 20 years, I've *never* saw something like this, *never*.

Then you should know the real world more, not only the bikeshed world.
...
nobu (Nobuyoshi Nakada)
11:06 AM Bug #5034: C Source Code formatting
We don't want to waste time with bikedhed like coding styles. naruse (Yui NARUSE)
11:03 AM Bug #5034: C Source Code formatting
Yui NARUSE wrote:
> see [ruby-core:36255]
I don't see the relation of the linked message to this issue (which was ONCE MORE rejected much to fast).
What is going on with you people here?
Are you all blind?
Or are you kidding...
lazaridis.com (Lazaridis Ilias)
10:38 AM Bug #5034 (Rejected): C Source Code formatting
see [ruby-core:36255] naruse (Yui NARUSE)
09:23 AM Bug #5034: C Source Code formatting
2011/7/17 Nobuyoshi Nakada <nobu@ruby-lang.org>:
> Hi,
>
> At Sun, 17 Jul 2011 07:25:18 +0900,
> Lazaridis Ilias wrote in [ruby-core:38109]:
>> The C sources use tab-4, tab-8 and spaces intermixed.
>>
>> The tab-8 do not display ...
kosaki (Motohiro KOSAKI)
08:53 AM Bug #5034: C Source Code formatting
Hi,

At Sun, 17 Jul 2011 07:25:18 +0900,
Lazaridis Ilias wrote in [ruby-core:38109]:
> The C sources use tab-4, tab-8 and spaces intermixed.
>
> The tab-8 do not display correctly in several tools (displayed as tab-4).

...
nobu (Nobuyoshi Nakada)
07:25 AM Bug #5034 (Rejected): C Source Code formatting
=begin
The C sources use tab-4, tab-8 and spaces intermixed.
The tab-8 do not display correctly in several tools (displayed as tab-4).
The suggestion is that the use of tab8 is disallowed (two tab-4 instead of one tab-8).
((<UR...
lazaridis.com (Lazaridis Ilias)
03:30 PM Feature #5029 (Closed): accept multiple args in Kernel#warn(), like puts()
This issue was solved with changeset r32568.
Suraj, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (rb_warn_m): accept multiple args in like puts. rdoc
...
nobu (Nobuyoshi Nakada)
11:06 AM Feature #5029: accept multiple args in Kernel#warn(), like puts()
I implemented this feature request in the attached patch if there's any interest in the changed behavior of Kernel#warn(). boredomist (Erik Price)
03:10 PM Revision d95cb162 (git): * 2011-07-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision e5f8aa95 (git): * ext/curses/curses.c: added the new class Curses::Pad, which
supports scrolling. patch by Eric Hodel. [Feature #4896]
[ruby-core:37206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:09 PM Revision e4324d71 (git): delete garbage file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
11:56 AM Feature #4893: Literal Instantiation breaks Object Model
Not "perfect", but should be stable and adoptable to other classes.
Needs possibly some renaming, and finally a review of Mr. Holms tip subjecting YARV/vm_init_redefined_flag(void). But once more, I need to take distance for some days.
lazaridis.com (Lazaridis Ilias)
09:17 AM Feature #4893: Literal Instantiation breaks Object Model
Magnus Holm wrote:
> YARV already has flags to see if methods are redefined (used for fast
> ...
This sounds plausible. But due to the many delays, I've not much energy/focusation left for this issue, and thus I avoid to change the tak...
lazaridis.com (Lazaridis Ilias)
09:10 AM Feature #4893: Literal Instantiation breaks Object Model
John Higgins wrote:
[...]
> You are hijacking the callbacks - if anyone implemented any of the callbacks your implementation fails because your callbacks won't fire anymore
You're right, that's one reason I dislike to use the callba...
lazaridis.com (Lazaridis Ilias)
09:32 AM Revision ffd9245a (git): Backport r24500; fixes #2556.
* lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:53 AM Revision d040bf75 (git): Backport r23730; fixes #2462.
* numeric.c (flo_cmp): Infinity is greater than any bignum
number. [ruby-dev:38672]
* bignum.c (rb_big_cmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:42 AM Feature #4787: Integer#each_modulo(n)
Why not just let #modulo/#divmod take a block, rather than define a new method? trans (Thomas Sawyer)
08:30 AM Revision d187fc72 (git): Fix credit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
08:02 AM Bug #4961 (Closed): [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
This issue was solved with changeset r32563.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/openssl/test_ssl_session.rb: add PEM SSL session without...
Anonymous
04:35 AM Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
OK, I found it. The Base64-encoded session in test_ssl_session.rb contains the field
tlsext_tick [10] OCTET STRING OPTIONAL
This was added with TLS and is not recognized by OpenSSL 0.9.7 yet. So this issue can be f...
MartinBosslet (Martin Bosslet)
08:01 AM Revision cd276fcd (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:01 AM Revision dc13c010 (git): Backport r31365; fixes #4661.
* configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909]. fixes #4617
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:26 AM Revision e2fd80b3 (git): * error.c (rb_check_trusted): new function to check an object is
trusted.
* struct.c (rb_struct_modify), time.c (time_modify): check by the
above function to show proper class names. [Bug #5036]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:30 AM Revision 18f0a650 (git): * error.c (rb_warn_m): accept multiple args in like puts. rdoc
patch by Erik Price at [ruby-core:38119]. [Feature #5029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:23 AM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
On Sat, Jul 16, 2011 at 7:46 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> I see.  There is only irb.bat, not irb sans the suffix.  In
> that sense, it's natural to fail, but maybe unexpected
> behavior.  Now I'm thinking ...
luislavena (Luis Lavena)
03:17 AM Revision 1297cc61 (git): * test/ruby/test_module.rb (TestModule#test_method_{undefined,removed}):
tests for method_undefined and method_removed. Bug#5015
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Kurt Stephens <ks.ruby@kurtstephens.com> wrote:
> Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
> http://redmine.ruby-lang.org/issues/5033

In [ruby-core:36931], ko1 told us GC eats...
normalperson (Eric Wong)
01:15 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Personally I don't think goto matters so much in GC implementation.
But I'm not sure if the patch is actually so effective.
Did you benchmark? If you did, could you show it?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:01 AM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Not aware of any compiler that is smart enough to optimize away the second half of gc_mark() (lines 1616-1628), when tail called from gc_mark_children().
gc_mark_children() already uses goto.
kstephens (Kurt Stephens)

07/16/2011

11:10 PM Revision ea6044ea (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:10 PM Revision 6eecb436 (git): * backport r32563 from trunk
* test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
extensions. Use this as the default for the tests to ensure
compatibility with OpenSSL 0.9.7.
[ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
git-svn-id: svn+ssh://ci...
MartinBosslet (Martin Bosslet)
11:02 PM Revision 6349c7bf (git): * 2011-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:02 PM Revision f8a53849 (git): * test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
extensions. Use this as the default for the tests to ensure
compatibility with OpenSSL 0.9.7.
[ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
10:40 PM Feature #2542: URI lib should be updated to RFC 3986
Just for information or memo.
http://tools.ietf.org/html/draft-ietf-iri-3987bis-05
http://tools.ietf.org/html/draft-weber-iri-guidelines-00
naruse (Yui NARUSE)
08:50 PM Bug #4971: Module#class_variables
前田です。
Shugo Maeda wrote:
> 個人的には、Module#class_variablesもModule#constantsのように引数でコントロールできる
> ...
この方針で作ったパッチを添付しておきます。
# trunkならRails風に勝手にcommitしてもいいんですかね。
shugo (Shugo Maeda)
08:04 PM Feature #5033: PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
-1 I believe my compiler is smart enough to do that optimization and goto is considered harmful. shyouhei (Shyouhei Urabe)
06:12 PM Feature #5033 (Assigned): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
kosaki (Motohiro KOSAKI)
04:45 PM Feature #5033 (Closed): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
Minor GC improvement.
Avoid recurring into gc_mark() when "goto again;" is sufficient.
-- KAS
kstephens (Kurt Stephens)
07:53 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
Hi,

At Fri, 15 Jul 2011 21:28:50 +0900,
Luis Lavena wrote in [ruby-core:38075]:
> On RubyInstaller we replaced that with plain stubs and the
> original scripts from Ruby's source code, see here:

I see. There is only irb.bat, n...
nobu (Nobuyoshi Nakada)
05:29 PM Bug #4977 (Closed): CFLAGSやLDFLAGSの-m64が消されるためsparc64(sparc v9)バイナリ作成不能
This issue was solved with changeset r32562.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug...
nobu (Nobuyoshi Nakada)
12:43 PM Bug #4517: ArgumentError when sorting array of objects
=begin
I did some investigation into this. The following code does not trigger the error
class Thing
attr_accessor :value

def initialize(value)
@value = value
end
end

stuff = [Thing.new("Fred"), Thing.new("...
jbl26 (Brian Lindauer)
12:02 PM Bug #5032 (Assigned): Gem::Specification#loaded? が常に false を返す
TITLE: Gem::Specification#loaded? always returns false
BODY:
On 1.9.3 RubyGems deprecates Gem::Specification#loaded? and always returns false.
It says to use Gem::Specification#activated? and it returns true when gemspec is loade...
naruse (Yui NARUSE)
11:35 AM Bug #5032 (Closed): Gem::Specification#loaded? が常に false を返す
1.9.3 の RubyGems で Gem::Specification#loaded? が deprecated になったのですが、
常に false を返すようです。かわりに使えと言われる Gem::Specification#activated? は gemspec がロードできているときは
ちゃんと true を返してくれます。
rabbit の 1.0.0 では Gem::Specification#loaded? を使っているので新しい Ruby...
okkez (okkez _)
08:29 AM Revision 64b80038 (git): * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:29 AM Revision 2915c155 (git): * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
Bug #4977
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:29 AM Bug #4864 (Closed): RubyGems が環境変数 MAKE を見てくれない
Added to rubygems repo. Will migrate to core on next pull. zenspider (Ryan Davis)
07:26 AM Feature #1193 (Closed): Justified Error Messages
The latest minitest's assert_equal uses diff where appropriate. zenspider (Ryan Davis)
07:25 AM Bug #4658 (Rejected): Minitest - invalid return code when using MiniTest::Unit.after_tests
No reply. Closing. zenspider (Ryan Davis)
07:23 AM Feature #2643 (Open): test/unit redefinition check of test_* method
I agree with Benoit. -w is there for a reason. If you're willing to ignore warnings coming from ruby, why would adding another line that says essentially the same thing be any better?
Regardless, I don't maintain test/unit, but I vote...
zenspider (Ryan Davis)
06:33 AM Bug #5026 (Closed): 1.9.3 allows URI(uri, parser)
Agreed.
Fixed in r32559 & r32560.
Thanks.
marcandre (Marc-Andre Lafortune)
04:20 AM Bug #5030: [Win7/MinGW] build fail on trunk@32549
Confirmed fixed at r32557 using mingw-w64 gcc 4.5.4. Passed quick testing run via `make test-all TESTS='openssl fiddle psych' && make test` jonforums (Jon Forums)
03:46 AM Bug #5030 (Closed): [Win7/MinGW] build fail on trunk@32549
fixed at r32557, I hope. usa (Usaku NAKAMURA)
03:17 AM Bug #5030: [Win7/MinGW] build fail on trunk@32549
is_socket is defined only in io.c:
https://github.com/ruby/ruby/blob/trunk/io.c#L236-237
is_console is only defined in win32/win32.c, but further down in the file, and is not declared before.
luislavena (Luis Lavena)
01:18 AM Bug #5030 (Assigned): [Win7/MinGW] build fail on trunk@32549
kosaki (Motohiro KOSAKI)
12:45 AM Bug #5030 (Closed): [Win7/MinGW] build fail on trunk@32549
This commit
https://github.com/ruby/ruby/commit/f15d0deaaf1ae0b92c539bd823dd2b00afbaf502
appears to be the cause of the following build failure on Win7 32bit with tdm gcc 4.5.2 and mingw-w64 gcc 4.5.4
...
compiling ../../../....
jonforums (Jon Forums)
03:06 AM Bug #5031 (Closed): Enumerable#zip SEGFAULTs with a Range Object (Mac OS X 10.7 LION)
Tested on 1.9.2-head, 1.9.2-p0 and 1.9.2-p180.
If I run this:
lucasefe (Lucas Florio)
02:22 AM Revision f9e63da2 (git): * win32/setup.mak: support to build x64-mswin64 on Windows7 (and Vista,
perhaps).
backported r32521 from trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:26 AM Bug #5012: Timeオブジェクト間で特異オブジェクトが共有される
ありがとうございます。よさげに見えたので1.9.3ブランチにも入れてしまいました。 kosaki (Motohiro KOSAKI)
01:06 AM Bug #5012 (Closed): Timeオブジェクト間で特異オブジェクトが共有される
This issue was solved with changeset r32554.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c (time_dup): used rb_obj_class() instead of CLASS_OF()....
kosaki (Motohiro KOSAKI)
12:29 AM Feature #5009 (Closed): Bang method (!) consistency in Ruby 2 API
Close this; force_encoding is another problem. naruse (Yui NARUSE)
12:23 AM Feature #5008 (Assigned): Equal rights for Hash (like Array, String, Integer, Float)
First of all, Ruby has two way of the type conversion; implicit and explicit.
to_i, to_f, to_s, to_a and so on are explicit conversion.
to_int, to_str, to_ary and so on are implicit conversion.
> Establish #to_h as the convention me...
naruse (Yui NARUSE)
12:10 AM Bug #5024 (Assigned): ruby-mode.el syntax highlighting breaks on regular expression with quotes
naruse (Yui NARUSE)

07/15/2011

09:32 PM Revision 22120bcc (git): * Backport of r32559 from trunk
* lib/uri/common.rb (module): Remove optional parser argument to Kernel#URI
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32560 b2dd03c8-39d4-4d8f-98ff-823fe69b...
Marc-Andre Lafortune
09:28 PM Bug #4731: ruby -S irb fails with mingw/msys vanilla builds
Nobuyoshi Nakada wrote:
> I can't reproduce it.
> ...
After `make install` the end result in the indicated prefix is a series of batch files like: irb.bat which contains a mix of windows commands and the Ruby script in it, which is the...
luislavena (Luis Lavena)
11:10 AM Bug #4731 (Feedback): ruby -S irb fails with mingw/msys vanilla builds
I can't reproduce it.
Is irb only a batch file, or an exe file?
nobu (Nobuyoshi Nakada)
09:28 PM Revision c2dfaa7d (git): * lib/uri/common.rb (module): Remove optional parser argument to Kernel#URI
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
08:07 PM Bug #4456 (Assigned): Time#strftime で %F 指定子に大きな幅を指定した際の不具合
kosaki (Motohiro KOSAKI)
08:07 PM Bug #4456 (Open): Time#strftime で %F 指定子に大きな幅を指定した際の不具合
kosaki (Motohiro KOSAKI)
06:41 PM Bug #4456: Time#strftime で %F 指定子に大きな幅を指定した際の不具合
ruby_1_9_3のリビジョン32548にて、sparc Solaris10 (32ビット, Solaris Studio 12)ではSEGVが未だに発生します。パッチを添付するので適用希望です。
デバッガ上で実行すると以下のような感じです。
$ dbx ../../sparc32-cc12-debug-svn193/bin/ruby
(===snip===)
(dbx) run -e 'Time.now.strftime("%1000000000F...
ngoto (Naohisa Goto)
07:16 PM Bug #4223 (Closed): GC.stress = true で謎の ArgumentError
This issue was solved with changeset r32551.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made b...
mrkn (Kenta Murata)
06:24 PM Revision e05e9928 (git): * ChangeLog: mention to the ticket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:22 PM Revision 5a7a4ce4 (git): * win32/win32.c (is_socket, is_console): add prototypes to fix compile
problem with gcc introduced at r32549.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:16 PM Revision f11eb9bb (git): merge revision(s) 32554:
* time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
* test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
add...
kosaki (Motohiro KOSAKI)
04:06 PM Revision 61254671 (git): * 2011-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:06 PM Revision 6270ce85 (git): * time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
* test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
added a new test for eigenclass of time object.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
kosaki (Motohiro KOSAKI)
01:34 PM Bug #4611: [BUG] Segementation fault reported
Piotr, thanks for feedback. Nice, it includes both OpenSSL 0.9.8 (from ruby) and 1.0.0 (from mysql).
Please try to compile your ruby (/usr/local/bin/ruby) with OpenSSL 1.0.0. I don't know much about Mac OS X but giving '--with-openssl...
nahi (Hiroshi Nakamura)
01:20 PM Bug #4875 (Closed): Segmentation fault in http.rb
I close this as a duplicate of #4611. nahi (Hiroshi Nakamura)
01:18 PM Bug #4320 (Closed): Bus Error in digest/sha2 on sparc
I applied the last patch to trunk at r32546 and ruby_1_9_3 at r32547.
Nils, sorry for not merging your patch directly. The reason I didn't apply yours is almost from the size of the patch. Would you please report the issue to the upst...
nahi (Hiroshi Nakamura)
01:05 AM Bug #4320: Bus Error in digest/sha2 on sparc
This looks much simpler. I'll check this patch tomorrow.
Index: ext/digest/sha2/sha2.c
===================================================================
--- ext/digest/sha2/sha2.c (revision 32536)
+++ ext/digest/sha2/sha2.c (work...
nahi (Hiroshi Nakamura)
11:27 AM Revision 2cdfa81a (git): * bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
* bignum.c (bigadd_int): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:12 AM Bug #5012 (Assigned): Timeオブジェクト間で特異オブジェクトが共有される
nobu (Nobuyoshi Nakada)
10:16 AM Revision 4b29cccf (git): * bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
* bignum.c (bigadd_int): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
05:37 AM Revision ade91aca (git): * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:34 AM Feature #5029 (Closed): accept multiple args in Kernel#warn(), like puts()
Hello,
Please make Kernel#warn() like Kernel#puts():
* Accept multiple arguments.
* Print them separated by newline.
This will allow me to warn exceptions easily:
begin
...
rescue => error
warn error.inspect, error.ba...
sunaku (Suraj Kurapati)
05:33 AM Revision f15d0dea (git): * win32/win32.c, include/ruby/win32.h (rb_w32_io_cancelable_p): renamed
from rb_w32_has_cancel_io(). now it takes a parameter as fd to check
the fd is console or not, because we cannot cancel console input even
if we have cancel_io function.
* io.c (WAIT_FD_IN_WIN32): call above function instead of the...
U.Nakamura
05:00 AM Feature #5009: Bang method (!) consistency in Ruby 2 API
Interesting, the Rails' save/save! example makes sense.
And why worry about keeping backwards compatibility?
Ruby 2 can break it, in the interest of removing cruft.
sunaku (Suraj Kurapati)
03:05 AM Revision 22a0e9e9 (git): * 2011-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 AM Revision b03e3cc5 (git): * backport r32546 from trunk.
* ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. ...
Hiroshi Nakamura
03:03 AM Revision e56f2abe (git): * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
Error caused by unalignment access on Sparc-Solaris (and possibly on
other similar environment.) This patch just do memcpy always instead
of checking architecture. I see no perf drop on my 64bit env. For
more details, see #4320.
*...
Hiroshi Nakamura
02:27 AM Bug #5028 (Third Party's Issue): Solaris encoding problems with rdiscount & redcarpet
It is the issue of markdown.c in redcarpet.
In ext/redcarpet/redcarpet.c it passes the data from Ruby's String to markdown.c's input_buffer without Ruby's encoding:
input_buf.data = RSTRING_PTR(text);
input_buf.size = RSTRING_LE...
naruse (Yui NARUSE)
01:24 AM Bug #5028 (Third Party's Issue): Solaris encoding problems with rdiscount & redcarpet
=begin
Hi,
I've been having encoding problems under 1.9.2 and Solaris, which I've been unable to explain.
Certain strings produce invalid encodings when passed through Redcarpet/RDiscount - for example, the tamil character ழ - (U+0BB4...
jondelStrother (Jonathan del Strother)

07/14/2011

10:38 PM Bug #4611: [BUG] Segementation fault reported
Hiroshi Nakamura wrote:
> Deryl, Peter, I think it's related OpenSSL version conflict. Please see #4875 and https://gist.github.com/863523/f367dcad815fad8b77e3ff594bc377dff396ab1f#gistcomment-36686
> ...
And how can I do that? Having sim...
Fallen_Zen (Piotr Panasewicz)
10:01 PM Bug #4863: config.charset not found
#1423 と同様に検索してみた ( http://www.ctan.org/search.html?search=config.charset&search_type=filename ) ところ、
http://mirror.ctan.org/macros/texinfo/contrib/texinfo-hu/texinfo/intl/config.charset
http://mirror.ctan.org/macros/texinfo/texinfo/gnu...
znz (Kazuhiro NISHIYAMA)
06:47 PM Bug #4320: Bus Error in digest/sha2 on sparc
Nils, thanks for the patch, and sorry for late reply.
Since sha2.c has an upstream version http://www.aarongifford.com/computers/sha.html (which does not support sparc-solaris I think), I want to minimize the patch. Here's my version ...
nahi (Hiroshi Nakamura)
04:51 PM Revision 0419cfc2 (git): * 2011-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:51 PM Revision e8ab94ed (git): * regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): Power PC does not
allow unaligned word access.
* st.c (UNALIGNED_WORD_ACCESS): x86_64 allows unaligned word
access as well as i386.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:52 PM Bug #4445 (Closed): ext/openssl の verify_callback が rb_protect で保護されていない
r32537でtrunk、r32538でruby_1_9_3を修正しました。結果的には、Obayashiさん(前回呼び捨てですいません)のpatchをそのまま当て、かつ例外を投げている場合にはwarnで警告をする(しかし無視して、通常の検証失敗とする)ようにしました。テストを書いてみたらSSL接続が残ったままになり、GCで回収されるまでそのままという、いかにも危ない挙動になった(当たり前)ので、この時期ではありますが対処しました。
挙動変更は以下です: verif...
nahi (Hiroshi Nakamura)
09:52 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
Yui NARUSE wrote:
> Hmm, it can be implemented by the way I implemented UTF8-MAC.
> ...
Ah, okay, I'll have a look at UTF8-MAC. Regards, Martin.
duerst (Martin Dürst)
09:41 AM Bug #5027 (Closed): Snapshot(2011-07-14) Build Test Error @Cygwin
% ./configure --enable-shared; make ; make test
解凍実行後、以下の様に落ちてました。
他にioで10個Faile出てます。
---
test_fork.rb .[BUG] Segmentation fault
ruby 1.9.4dev (2011-07-13) [i386-cygwin]
-- Control frame information --------------------------...
mfurui (Mitsuru FURUI)
07:56 AM Revision 301a11b2 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:53 AM Revision 268b6ddd (git): * eval.c (ruby_setjmp): need to save the stack after r2 (the Table
of Contents on ppc64) is saved onto the stack by getcontext().
based on <https://bugzilla.redhat.com/show_bug.cgi?id=628715>.
Bug#4411
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32542 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
07:28 AM Bug #5026 (Closed): 1.9.3 allows URI(uri, parser)
r28699 introduces a new API: the second argument of URI(uri [, parser]).
But I object this because such parser argument should be obsolete.
naruse (Yui NARUSE)
06:00 AM Revision a1bad3ac (git): * 2011-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:00 AM Revision eec2b69e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:46 AM Revision 94ed480c (git): * 2011-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:46 AM Revision bdd7cf15 (git): * backport r32537 from trunk.
* ext/openssl/ossl.c (ossl_verify_cb): trap the exception from
verify callback of SSLContext and X509Store and make the
verification fail normally. Raising exception directly from callback
causes orphan resouces in OpenSSL stack. P...
Hiroshi Nakamura
05:41 AM Revision ab86f1cf (git): * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from
verify callback of SSLContext and X509Store and make the
verification fail normally. Raising exception directly from callback
causes orphan resouces in OpenSSL stack. Patched by Ippei Obayashi.
See #4445.
* test/openssl/test_ssl.r...
Hiroshi Nakamura
03:53 AM Feature #4893: Literal Instantiation breaks Object Model
YARV already has flags to see if methods are redefined (used for fast
numeric operations). Maybe you could use them? See
vm_init_redefined_flag(void) in vm.c.
judofyr (Magnus Holm)
03:37 AM Feature #4893: Literal Instantiation breaks Object Model
Lazaridis Ilias wrote:
> Although the latest version (v4) works fine, I dislike to use the callbacks to set/clear the flag.
> ...
You are hijacking the callbacks - if anyone implemented any of the callbacks your implementation fails be...
wishdev (John Higgins)
02:40 AM Feature #4893: Literal Instantiation breaks Object Model
Although the latest version (v4) works fine, I dislike to use the callbacks to set/clear the flag.
I have "fuzzily" the perfect implementation in mind, but it will take a few days until it becomes clear. Until then, I would be "glad" ...
lazaridis.com (Lazaridis Ilias)
02:40 AM Bug #5022: WEBrick returns improper response for malformed HTTP Request
Nobuyoshi Nakada wrote:
> assert(hash) does not seem nice.
> ...
Has to be assert_nothing_raised { } at least, since meta_vars won't be empty with no headers.
Improved test case:
def test_simple_request
msg = <<-_end_of_me...
felixalias (Felix Jodoin)
01:54 AM Revision f10ef64f (git): * 2011-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:54 AM Revision 489345b8 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:30 AM Bug #5025: YAML::Syck::Map#children returns [nil, nil]
Try that again:
<pre
ruby-1.9.2-p0 > d = YAML.parse('--- { a: 1, b: 2 }')
=> #&lt;Syck::Map:0x00000001890840&gt;
ruby-1.9.2-p0 > d.children
=> [nil, nil]
</pre>
trans (Thomas Sawyer)
01:29 AM Bug #5025 (Rejected): YAML::Syck::Map#children returns [nil, nil]
ruby-1.9.2-p0 > d = YAML.load('--- { a: 1, b: 2 }')
=> {"a"=>1, "b"=>2}
ruby-1.9.2-p0 > d = YAML.parse('--- { a: 1, b: 2 }')
=> #<Syck::Map:0x00000001890840>
ruby-1.9.2-p0 > d.children
=> [nil, nil]
trans (Thomas Sawyer)

07/13/2011

07:46 PM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
Hmm, it can be implemented by the way I implemented UTF8-MAC.
Will you implement it (on UTF8-MAC's way or some another way)?
naruse (Yui NARUSE)
05:50 PM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
Yui NARUSE wrote:
> Lazaridis Ilias wrote:
> ...
Just for the record, this may not be true. Windows-1258, used for Vietnamese, is not supported (yet). The reason is that when converting it to (NFC) UTF-8, the conversion is not one-to...
duerst (Martin Dürst)
07:29 PM Bug #2616: unable to trap in doze
>> For clarification, now SIGFPE, SIGILL and SIGSEGV can't be trapped from ruby script if you have multi threads and use windows.
>> but I don't think it's big matter.
>
> Agreed--nobody seems to have noticed it but myself until n...
kosaki (Motohiro KOSAKI)
11:23 AM Bug #2616: unable to trap in doze
> For clarification, now SIGFPE, SIGILL and SIGSEGV can't be trapped from ruby script if you have multi threads and use windows.
> but I don't think it's big matter.

Agreed--nobody seems to have noticed it but myself until now...
Anonymous
07:21 PM Bug #4923: [ext/openssl] test_ssl.rb: test_client_auth fails
> Martin, you can change Assignee and take this as you like :)
Thanks, Hiroshi!

If I get #4961 done in time I will also try to have this fixed for the 1.9.3 release.
MartinBosslet (Martin Bosslet)
07:18 PM Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない
Hiroshi Nakamura wrote:
> Do you think you can handle #4961? I don't think it's a release blocker since we just added tests which does not run with OpenSSL 0.9.7. It has not yet worked ever. But there could be a chance to find a easy ...
MartinBosslet (Martin Bosslet)
04:28 PM Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない
Martin Bosslet wrote:
> Sure - if you feel it's related to the other two issues then you are clearly in a better position to design this properly. Should I look into #4923 and #4961 instead? Or are there any other urgencies where I coul...
nahi (Hiroshi Nakamura)
02:43 PM Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない
騒いでおいてすいません。 #4611 #4875 へのリンクを外しました。ちゃんとスタックを見たら、関係ありませんでした。
で、このチケットですが、Obayashiのおっしゃる通り、確かに今のコードはダメですね。他のcallback同様、事後に例外を上げられるといいんですが、verify callbackはOpenSSL側から何度も呼ばれるので、「事後」がうまく定義できません。
というわけで、1.9.4ではverify_callback内での例外は検証失敗扱...
nahi (Hiroshi Nakamura)
06:53 PM Bug #3924: Performance bug (in require?)
On 11 July 2011 15:58, Michael Klishin <redmine@ruby-lang.org> wrote:
>
> Issue #3924 has been updated by Michael Klishin.
>
>
> I second Hiroshi's suggestion to solve this for 1.9.x and not just 1.9.3.

1.9.x means it sho...
Eregon (Benoit Daloze)
05:30 PM Bug #5022: WEBrick returns improper response for malformed HTTP Request
assert(hash) does not seem nice.
assert_equal({}, hash) would be better.
nobu (Nobuyoshi Nakada)
04:56 PM Bug #5022: WEBrick returns improper response for malformed HTTP Request
Aaron Patterson wrote:
> Can you add a test?
> ...
Hi, yes, this should not be a 400 bad request at all (I was incorrect in labeling it as a malformed HTTP request) - however, it is still broken without my patch since it returns a 500 ...
felixalias (Felix Jodoin)
03:39 PM Bug #5022: WEBrick returns improper response for malformed HTTP Request
Can you add a test?
Also, I'm not sure that this should be an error. In section 4.1 of RFC 1945, it says that simple requests are OK. Simple requests do not require an http version:
Simple-Request = "GET" SP Request-URI CRLF
tenderlovemaking (Aaron Patterson)
03:25 PM Bug #5022 (Closed): WEBrick returns improper response for malformed HTTP Request
=begin
When sending an improper HTTP request in the form of:
GET /\n
(with any valid or invalid HTTP verb), WEBrick returns:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</...
felixalias (Felix Jodoin)
05:21 PM Bug #4611 (Feedback): [BUG] Segementation fault reported
Deryl, Peter, I think it's related OpenSSL version conflict. Please see #4875 and https://gist.github.com/863523/f367dcad815fad8b77e3ff594bc377dff396ab1f#gistcomment-36686
Would you please make sure you're using same OpenSSL libraries...
nahi (Hiroshi Nakamura)
05:06 PM Bug #5024: ruby-mode.el syntax highlighting breaks on regular expression with quotes
Sorry, I meant revision 30909 in the description. slickrobert (Robert Smith)
05:05 PM Bug #5024 (Third Party's Issue): ruby-mode.el syntax highlighting breaks on regular expression with quotes
I am using 1.9.2-p160 revision 29036
If there are an odd number of quotation marks inside a regular expression, the syntax highlighting breaks, continuing the regular expression color until another quotation mark is found.
method /...
slickrobert (Robert Smith)
05:01 PM Bug #4875 (Feedback): Segmentation fault in http.rb
Jerome, thanks for letting us know about 'pg'. With your help I found that a similar bug and solution.
https://github.com/rackspace/ruby-cloudfiles/issues/43
The reporter said that it was an error on OpenSSL when using a macports ins...
nahi (Hiroshi Nakamura)
02:54 PM Bug #5019 (Feedback): Ruby runtime crashes and indicates a 'Bus Error' bug
Don't use Backport92 to report bug.
See Also: http://redmine.ruby-lang.org/projects/ruby/wiki/HowToReport
sorah (Sorah Fukumori)
02:27 PM Bug #5019: Ruby runtime crashes and indicates a 'Bus Error' bug
Please give me a small code for reproducing this problem.
mrkn (Kenta Murata)
02:53 PM Bug #4962: come back gem_prelude!
On Mon, Jul 11, 2011 at 08:50:12AM +0900, Nobuyoshi Nakada wrote:
> Hi,
>
> At Wed, 6 Jul 2011 06:56:09 +0900,
> Aaron Patterson wrote in [ruby-core:37813]:
> > We can also help rbconfig go on a diet. I know it's not enough, but
...
tenderlovemaking (Aaron Patterson)
01:55 PM Revision dc08ed03 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:11 PM Revision a289ef41 (git): * 2011-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:11 PM Revision 145b7218 (git): * ChangeLog: fix tyops.
* doc/ChangeLog-1.9.3: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:48 AM Bug #4223: GC.stress = true で謎の ArgumentError
はい。やっておきます。 mrkn (Kenta Murata)
10:19 AM Bug #4223: GC.stress = true で謎の ArgumentError
これは1.9.3 ターゲットのままでいいですよね? > むらけんさん kosaki (Motohiro KOSAKI)
09:48 AM Bug #4223: GC.stress = true で謎の ArgumentError
新しいパッチです。
更新点は、
* bigsub_int() も対策した
* RB_GC_GUARD をコントロールフロー的に十分に後ろの場所に移動した
の 2 点です。
コミット(とバックポート)とクローズ(でいいですよね)お願いします。
metanest (Makoto Kishimoto)
11:23 AM Feature #3917: [proposal] called_from() which is much faster than caller()
> Feature #3917: [proposal] called_from() which is much faster than caller()
> http://redmine.ruby-lang.org/issues/3917


+1 for this one--I was wishing for this the other day (or for caller
to give you depth starting from the...
Anonymous
10:04 AM Feature #5005: Provide convenient access to original methods
Just some general thoughts on making metaprogramming easier:
Using metaprogramming in Ruby is on average somewhat more lengthy/clumsy than straightforward/plain (i.e. non-meta) programming. I have been thinking about why that may be. ...
duerst (Martin Dürst)
08:32 AM Feature #5005: Provide convenient access to original methods
Lazaridis Ilias wrote:
> The languag allows a class to be "reopened", thus it's behaviour can be redefined:
[...]
> ...
Just realized that "previous" would be a more concise term.
* super : the super(class) method, standard OO t...
lazaridis.com (Lazaridis Ilias)
12:39 AM Feature #5005: Provide convenient access to original methods
=begin
I've notice a related issue, #3688, which suggests the introduction of "redef". This, in combination of "original", would be an extension more native to the language - avoiding this way to (ab)use the general construct "super(c...
lazaridis.com (Lazaridis Ilias)
08:18 AM Feature #4893: Literal Instantiation breaks Object Model
Attached an updated patch, where the flag becomes an internal implementation detail, not accessible from outside.
test-all passes, having this code within test/runner.rb active:
class String
@@running_counter = 0
alias :orig_...
lazaridis.com (Lazaridis Ilias)
06:10 AM Feature #4893: Literal Instantiation breaks Object Model
=begin
related issue #5015
=end
lazaridis.com (Lazaridis Ilias)
12:47 AM Feature #3688: redef keyword for method redefinition in Ruby 2.0
=begin
See related issue #5005 with a suggested implementation of "original"
=end
lazaridis.com (Lazaridis Ilias)

07/12/2011

11:53 PM Bug #5018: ruby_1_9_3 branch is missing from official GitHub mirror
(07/12/2011 11:11 PM), KOSAKI Motohiro wrote:
> trunk is also stopping to mirror svn. just fyi.

I know. Resync is triggered when someone checks in. I' waiting for one.
shyouhei (Shyouhei Urabe)
11:23 PM Bug #5018: ruby_1_9_3 branch is missing from official GitHub mirror
Hi

2011/7/12 Shyouhei Urabe <shyouhei@ruby-lang.org>:
>
> Issue #5018 has been updated by Shyouhei Urabe.
>
> Status changed from Assigned to Closed
>
> Oops, my cron script was complaining "error: unable to push to unq...
kosaki (Motohiro KOSAKI)
10:15 PM Bug #5018 (Closed): ruby_1_9_3 branch is missing from official GitHub mirror
Oops, my cron script was complaining "error: unable to push to unqualified destination: ruby_1_9_3".
I did it by hand.
shyouhei (Shyouhei Urabe)
09:44 PM Bug #5018 (Assigned): ruby_1_9_3 branch is missing from official GitHub mirror
naruse (Yui NARUSE)
05:24 AM Bug #5018 (Closed): ruby_1_9_3 branch is missing from official GitHub mirror
Yesterday trunk was branches into ruby_1_9_3:
http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_3/
But branch is missing from official GitHub mirror:
https://github.com/ruby/ruby
Dunno who is responsable for the mirroring...
luislavena (Luis Lavena)
11:34 PM Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない
Hiroshi Nakamura wrote:
> Martin, how's the status? Can I take over this issue again? I think #4875 and #4611 relates to this issue.
Sure - if you feel it's related to the other two issues then you are clearly in a better position to...
MartinBosslet (Martin Bosslet)
06:24 PM Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない
Martin, how's the status? Can I take over this issue again? I think #4875 and #4611 relates to this issue. nahi (Hiroshi Nakamura)
11:22 PM Revision 3fc759ae (git): * 2011-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:22 PM Revision 1335b154 (git): * lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
Fix process_args didn't return `@option` after r30939. Backported
r32526 from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
11:02 PM Bug #5021 (Closed): test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy"
手元の環境(FreeBSD 8.2 STABLE)で、
make test-all TESTS='-n test_empty dl/test_cfunc.rb open-uri/test_open-uri.rb'
のようにして test-all を実行すると、DL::TestCFunc の test_empty で以下のようにエラーが起きます
$ make test-all TESTS='-n test_empty dl/test_cfunc.rb open-...
metanest (Makoto Kishimoto)
08:33 PM Bug #1650 (Rejected): Time range === is slow
Hello,
> If Range#=== works exactly the same as Range#include?, the docs should say that. If they differ when beg/end are numeric, the docs should say that.
That is an implementation detail, I think. Not a bug. So I'm closing
...
mame (Yusuke Endoh)
06:18 PM Bug #4923: [ext/openssl] test_ssl.rb: test_client_auth fails
I'm on 64bit Ubuntu 11.04 box, and I can replicate the error with 0.9.8o...
Though we still don't know the culprit of this failure, I mark this Low-priority since it's not a report from user.
Martin, you can change Assignee and tak...
nahi (Hiroshi Nakamura)
06:14 PM Feature #5016: Kernel#caller with negative limit should limit result to N initial frames
I wouldn’t say “dup”, but it’s certainly related. This interface can be used instead of adding Kernel#called_from, if we want to keep the number of methods down. Also, even if we objectify the backtrace as per #1906 that still doesn’t ... now (Nikolai Weibull)
05:40 PM Feature #5016: Kernel#caller with negative limit should limit result to N initial frames
Dup of #1906 and #3917. ddebernardy (Denis de Bernardy)
05:49 PM Bug #5020 (Closed): Rational cannot coerce into Complex with imag.
とある実験をしていて気付いたのですが、虚部ありのComplexを引数としてRational#coerceを呼ぶとTypeErrorが発生します。
Rational(1,2).coerce(Complex(1,1)) #=> TypeError
虚部がなければ問題ありません。ちなみに結果はRationalになります。
Rational(1,2).coerce(Complex(1,0)) #=> [(1/1), (1/2)]
一方で、レシーバと引...
usa (Usaku NAKAMURA)
05:23 PM Bug #5019 (Rejected): Ruby runtime crashes and indicates a 'Bus Error' bug
Ruby 1.9.2 crashes when I run the rake command. I've tried 1.9.2-head and 1.9.2-p180, they both result in a similar runtime error. I've cleaned up the RVM environment, reinstalled Ruby a few times, the result is the same: it doesn't run ... isaka (Isaka Traore)
05:15 PM Bug #5015 (Closed): method_added" is called in addition to "method_undefined
This issue was solved with changeset r32527.
Lazaridis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_method.c (rb_add_method): should not call method_added ...
matz (Yukihiro Matsumoto)
05:02 AM Bug #5015: method_added" is called in addition to "method_undefined
Lazaridis Ilias: changing behaviors of the fundamental classes because of one use case doesn't feel right. In fact, it sounds scary. antares (Michael Klishin)
04:47 AM Bug #5015: method_added" is called in addition to "method_undefined
Lazaridis Ilias wrote:
> John Higgins wrote:
> ...
Very technical response - thanks for the rebuttal, I'm sure the "related developer" will be more than happy to implement a patch which turns off a callback that clearly and without que...
wishdev (John Higgins)
04:42 AM Bug #5015: method_added" is called in addition to "method_undefined
John Higgins wrote:
[...]
no comment.
"I'll await the response of the related developer."
lazaridis.com (Lazaridis Ilias)
04:26 AM Bug #5015: method_added" is called in addition to "method_undefined
Lazaridis Ilias wrote:
> John Higgins wrote:
> ...
Again, what are you basing this on? I asked you what rule/concept states that internal implementations cannot fire callbacks. Why is it an error if the implementation of undef_method a...
wishdev (John Higgins)
04:24 AM Bug #5015: method_added" is called in addition to "method_undefined
+1 on 'not a defect.'
If a method is added, I expect the method_added callback to be fired. undef_method adds a method. This is pretty open-and-shut.
steveklabnik (Steve Klabnik)
04:15 AM Bug #5015: method_added" is called in addition to "method_undefined
[edit: please ignore the first patch send (32kB), the 1001 Bytes one is the correct]
Attached a simple patch, which avoids the method_added callback for
VM_METHOD_TYPE_UNDEF
-
OUTPUT:
undef method (buildin)
callback: undefined capi...
lazaridis.com (Lazaridis Ilias)
04:05 AM Bug #5015: method_added" is called in addition to "method_undefined
John Higgins wrote:
> Lazaridis Ilias wrote:
> ...
[...]
No, I can't, because it is irrelevant (and thus I do not invest any energy to analyse). I've provided a use-case. In context of this use-case, the callback "method_added :capi...
lazaridis.com (Lazaridis Ilias)
03:38 AM Bug #5015: method_added" is called in addition to "method_undefined
Lazaridis Ilias wrote:
> John Higgins wrote:
> ...
Would you care to, even in passing, explain how I'm incorrect when it comes to the Child class example I gave? Or does clear, simple, 13 line examples showing specific cases where your...
wishdev (John Higgins)
03:16 AM Bug #5015: method_added" is called in addition to "method_undefined
John Higgins wrote:
[...]
Mr. Higgins, you could write a book in your non-technical tenor about this issue, the fact remains:
* callback: added any_method # false callback, "any_method" was *not* added by user
I'll await th...
lazaridis.com (Lazaridis Ilias)
02:28 AM Bug #5015: method_added" is called in addition to "method_undefined
Lazaridis Ilias wrote:
> Magnus Holm wrote:
> ...
What rule exactly says that internal implementations can't fire callbacks? You are specifically interested in internal implementation issues when you are interested in things like "meth...
wishdev (John Higgins)
01:54 AM Bug #5015: method_added" is called in addition to "method_undefined
Magnus Holm wrote:
> But undef_method *does* actually add a new method: it adds a method
which prevents the superclass' method being called
[...]
Whatever "undef_method" does, is an internal implementation detail, which should *no...
lazaridis.com (Lazaridis Ilias)
05:14 PM Feature #1906: Kernel#backtrace: Objectifying Kernel#caller
Is this (or #3917, which also looks neat) anything that might make it into ruby 1.9.3? I was wondering how to get the calling file's name earlier today without resorting to caller() -- which yields an unnecessarily large string array.
...
ddebernardy (Denis de Bernardy)
05:13 PM Feature #3917: [proposal] called_from() which is much faster than caller()
I'm not making much sense of the japanese in this ticket. Is this (or #1906, which also looks neat) anything that might make it into ruby 1.9.3? I was wondering how to get the calling file's name earlier today without resorting to caller... ddebernardy (Denis de Bernardy)
03:16 PM Feature #5009: Bang method (!) consistency in Ruby 2 API
Martin Dürst wrote:
> Just for the record, there is one method that I think we should add a bang if we still could, and this is String#force_encoding. The reason isn't that it changes String itself (which it does), but that I have come ...
naruse (Yui NARUSE)
03:06 PM Feature #5009: Bang method (!) consistency in Ruby 2 API
Just for the record, there is one method that I think we should add a bang if we still could, and this is String#force_encoding. The reason isn't that it changes String itself (which it does), but that I have come across quite some place... duerst (Martin Dürst)
02:42 PM Revision 8cf76cae (git): * NEWS: add a description of Signal.trap change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
01:55 PM Bug #2616 (Closed): unable to trap in doze
This issue was solved with changeset r32523.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* signal.c (sig_trap): don't permit to change a signal handler w...
kosaki (Motohiro KOSAKI)
11:04 AM Revision 55b3bfbc (git): * signal.c (reserved_signal_p): reverted a part of r32523.
chikanaga noticed trap(:CHLD) has some realworld usecase.
* test/ruby/test_signal.rb (TestSignal#test_reserved_signal):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:15 AM Revision ba5d7858 (git): * vm_method.c (rb_add_method): should not call method_added hook
for undef operation. [Bug #5015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
08:09 AM Revision 1d4da24e (git): * lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
Fix process_args didn't return `@option` after r30939.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
06:04 AM Feature #4963: Refine and Document the Issue Tracking Process
Yui NARUSE wrote:
> Lazaridis Ilias wrote:
[...]
> ...
You're possibly right here.
Status: Open, Assigned, Accepted, Closed, Rejected
> I think changing "Reject" to some friendly name is better.
Possibly "Negated" is the fr...
lazaridis.com (Lazaridis Ilias)
05:12 AM Revision 7fd82665 (git): small cleanup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:08 AM Revision c3075235 (git): * signal.c (install_sighandler): fixed a race.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
04:55 AM Revision 89e2951b (git): * signal.c (sig_trap): don't permit to change a signal handler which
the interpreter reserved.
* signal.c (reserved_signal_p): ditto.
[Bug #2616] [ruby-core:27625]
* test/ruby/test_signal.rb (TestSignal#test_reserved_signal):
added a test for reserved signal.
git-svn-id: svn+ssh://ci.ruby-lang.org...
kosaki (Motohiro KOSAKI)
02:59 AM Revision 888d8e93 (git): * 2011-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:59 AM Revision edeba4db (git): * win32/setup.mak: support x86-amd64 cross compile environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
 

Also available in: Atom