Project

General

Profile

Activity

From 12/30/2009 to 01/05/2010

01/05/2010

11:47 PM Bug #2547 (Assigned): error when interpolating a string containing a single backslash into a regexp
=begin
trunk also reproduce this.

However this may be a feature:
* Ruby's regexp forbids to split character escape like 'a="\\"; p /#{a}y/'
* /#{"\\"}y/ is optimized as /\\y/ on parser, so this is valid
=end
naruse (Yui NARUSE)
09:31 PM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/1/5 James Edward Gray II <james@graysoftinc.com>

> Surely, seeing:
>
> obj.bad_name_class
>
> is preferable to:
>
> class << obj; self end
>
> and we can do even better than that with singleton_class. :...
Eregon (Benoit Daloze)
08:13 PM Feature #1082: add Object#singleton_class method
=begin
why not add both? eigenclass could be an alias for singleton_class.
[murphy]

=end
murphy (Kornelius Kalnbach)
12:24 PM Feature #1082: add Object#singleton_class method
=begin
On Mon, Jan 4, 2010 at 6:41 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: [ruby-core:27407] Re: [Feature #1082] add Object#singleton_class        method"
>    on Tue, 5 Jan 2010 11:26:41 +0900, ...
bitsweat (Jeremy Daer)
11:56 AM Feature #1082: add Object#singleton_class method
=begin
On Mon, Jan 4, 2010 at 9:41 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> In message "Re: [ruby-core:27407] Re: [Feature #1082] add Object#singleton_class        method"
>    on Tue, 5 Jan 2010 11:26:41 +0900, Shugo Maed...
austin (Austin Ziegler)
11:41 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

In message "Re: [ruby-core:27407] Re: [Feature #1082] add Object#singleton_class method"
on Tue, 5 Jan 2010 11:26:41 +0900, Shugo Maeda <shugo@ruby-lang.org> writes:

|I prefer singleton_class than eigenclass. I s...
matz (Yukihiro Matsumoto)
11:26 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/1/5 Yusuke ENDOH <mame@tsg.ne.jp>:
>> We haven't met any consensus of a name for the method.
>> singleton_class, singletonclass, eigenclass, or whatever.
>
> The draft of ruby-std uses eigenclass.  (13.4 Eigenclas...
shugo (Shugo Maeda)
08:41 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

In message "Re: [ruby-core:27385] Re: [Feature #1082] add Object#singleton_class method"
on Mon, 4 Jan 2010 15:46:32 +0900, Kornelius Kalnbach <murphy@rubychan.de> writes:

|_why suggested "metaclass" back in 2005. ...
matz (Yukihiro Matsumoto)
08:37 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

In message "Re: [ruby-core:27394] Re: [Feature #1082] add Object#singleton_class method"
on Tue, 5 Jan 2010 02:05:19 +0900, Yusuke ENDOH <mame@tsg.ne.jp> writes:
|
|2010/1/4 Yukihiro Matsumoto <matz@ruby-lang.org>:...
matz (Yukihiro Matsumoto)
04:03 AM Feature #1082: add Object#singleton_class method
=begin
On Mon, Jan 4, 2010 at 10:52 AM, Kornelius Kalnbach <murphy@rubychan.de> wrote:
> On 04.01.10 17:28, Haase, Konstantin wrote:
>> +1 for metaclass, as is it compatible with ActiveSupport, Rubinius
>> and _why.
>
> The current...
bitsweat (Jeremy Daer)
03:52 AM Feature #1082: add Object#singleton_class method
=begin
On 04.01.10 17:28, Haase, Konstantin wrote:
> +1 for metaclass, as is it compatible with ActiveSupport, Rubinius
> and _why.

The current methods are all named singleton_*, so anything else than
singleton_class would be inc...
murphy (Kornelius Kalnbach)
02:06 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/1/4 Yukihiro Matsumoto <matz@ruby-lang.org>:
> We haven't met any consensus of a name for the method.
> singleton_class, singletonclass, eigenclass, or whatever.

The draft of ruby-std uses eigenclass. (13.4 Eige...
mame (Yusuke Endoh)
01:14 AM Feature #1082: add Object#singleton_class method
=begin
+1 for whatever. (Okay then, maybe singleton_class is better)

//Magnus Holm



On Mon, Jan 4, 2010 at 07:25, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: [ruby-core:27372] [Feature #1082] add...
judofyr (Magnus Holm)
07:39 PM Bug #1954: line number 0?
=begin
まだ再現します。
他の環境でも再現するか確かめやすくするため、 r26244 でテストを追加しました。

他のバージョンと挙動を比べてみると
* REE: "in ensure" が出てこない
* 1.9.1: <main>:0
* trunk: t1.rb:0
* 1.9.1とtrunk: t1.rb:2 が start ではなく join になっている
というところがおかしいように見えます。


% cat...
znz (Kazuhiro NISHIYAMA)
07:35 PM Bug #2558 (Assigned): r24591 causes Segfault
=begin

=end
naruse (Yui NARUSE)
06:28 PM Bug #2558 (Closed): r24591 causes Segfault
=begin
While looking into a test failure in test_thread.rb (ticket #2506), I stumbled upon a segmentation fault that was randomly happening.

To reproduce, run `make test', or the extracted sample (attached) while redirecting output...
a3li (Alex Legler)
07:33 PM Feature #2022: Patch for openssl-1.0
=begin

=end
naruse (Yui NARUSE)
07:06 PM Feature #2022: Patch for openssl-1.0
=begin
Those patches are against 1.8.7-p248.
=end
hongli (Hongli Lai)
07:05 PM Feature #2022: Patch for openssl-1.0
=begin
I verify that Nobuyoshi Nakada's and Jeroen van Meeuwen's patch works on both OpenSSL 0.9 and 1.0. I've tested on the following systems:

- OS X Snow Leopard
All Ruby OpenSSL tests pass, and all RubySpec OpenSSL tests pas...
hongli (Hongli Lai)
05:58 PM Revision 74972dcc (git): * 2010-01-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:58 PM Revision 4aa0d9f5 (git): describe RbConfig.ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:11 PM Feature #2542: URI lib should be updated to RFC 3986
No, RFC 3986 (URI) will NOT be updated. RFC 3987 (IRI), in due time,
will be updated. See also
http://www.ietf.org/ibin/c5i?mid=6&rid=49&gid=0&k1=934&k2=7294&tid=1262671757.
Regards, Martin.
---
#-# Martin J. Dürst, Professo...
duerst (Martin Dürst)
11:38 AM Bug #2554 (Assigned): Net::FTP should not use MSG_OOB
=begin
The use of MSG_OOB in Net::FTP is taken from ftplib.py in Python. If there is no objection, I will fix Net::FTP not to use MSG_OOB.
=end
shugo (Shugo Maeda)
10:34 AM Revision 84c25ece (git): * test/ruby/test_exception.rb: add a test. cf [ruby-dev:39116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:59 AM Revision 295bc2fe (git): removes the dtrace support. reverts r26239, r26238 and r26235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
05:51 AM Revision 623a79c3 (git): Add Float::INFINITY and Float::NAN.
Current Unicode version of Regexp is 5.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:44 AM Bug #1500 (Third Party's Issue): test_io runs forever in windows
=begin
Turns out to be a bug in msvcrt.dll [I think].
=end
rogerdpack (Roger Pack)

01/04/2010

07:57 PM Bug #2554 (Rejected): Net::FTP should not use MSG_OOB
=begin
Net::FTP#abort, #status etc currently send commands with MSG_OOB. This causes a freeze when running RubySpec on x86_64 Linux (Ubuntu 9.10):

hongli@ubuntu:~/rubyspec$ ./mspec/bin/mspec library/net/ftp/abort_spec.rb -e "Net:...
hongli (Hongli Lai)
05:21 PM Bug #2511: irb exits unexpectedly windows
=begin

On Jan 3, 2010, at 13:10 , Vlad Why wrote:

> Issue #2511 has been updated by Vlad Why.
>
>
> the bug is still present when readline is disabled
>
> D:\server\ruby\bin>chcp
> Active code page: 866
>
> D:\server\ru...
zenspider (Ryan Davis)
05:19 PM Bug #2511: irb exits unexpectedly windows
=begin

On Jan 3, 2010, at 13:10 , Vlad Why wrote:

> Issue #2511 has been updated by Vlad Why.
>
>
> the bug is still present when readline is disabled
>
> D:\server\ruby\bin>chcp
> Active code page: 866
>
> D:\server\ru...
zenspider (Ryan Davis)
06:10 AM Bug #2511: irb exits unexpectedly windows
=begin
the bug is still present when readline is disabled

D:\server\ruby\bin>chcp
Active code page: 866

D:\server\ruby\bin>irb --noreadline
irb(main):001:0> орпррп

D:\server\ruby\bin>
=end
vavdeev (Vlad Why)
05:08 PM Revision e0c3908d (git): * 2010-01-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:08 PM Revision 07146f37 (git): * configure.in (DTRACE): clear this when `dtrace -l` fails.
Note that current FreeBSD needs privilege to call it;
so to use DTrace on FreeBSD, you should run configure as root.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:46 PM Feature #1082: add Object#singleton_class method
=begin
On 04.01.10 07:25, Yukihiro Matsumoto wrote:
> |Any thoughts on this feature request?
> |
> | hello.singleton_class == (class << hello; self; end)
> |
> |Thanks for your consideration.
>
> We haven't met any consensus of...
murphy (Kornelius Kalnbach)
03:25 PM Feature #1082: add Object#singleton_class method
=begin
Hi,

In message "Re: [ruby-core:27372] [Feature #1082] add Object#singleton_class method"
on Sun, 3 Jan 2010 04:53:36 +0900, Suraj Kurapati <redmine@ruby-lang.org> writes:

|Any thoughts on this feature request?
|
| h...
matz (Yukihiro Matsumoto)
12:36 PM Revision b80814c3 (git): * gc.c: added UNLIKELY to probes for optimization.
* vm.c: ditto.
* thread.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:31 AM Revision 7e22f102 (git): * win32/Makefile.sub (TRACING_MODEL): follow yugui's previous changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:30 AM Revision dfc07e8a (git): * thread_win32.c (InterlockedExchangePointer): old SDK support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura

01/03/2010

11:22 PM Bug #2552 (Closed): HOME 変数を空にして起動すると、再度空にできなくなる
=begin
WindowsXP にて、環境変数 HOME が設定されていない状態でインタプリタを起動すると
ENV.delete "HOME" が無効になります。

$ cat test.rb
ENV.delete "HOME"

if ARGV[0]
p ENV["HOME"]
else
system("ruby -v #{$0} child")
end

$ ruby test.rb
ruby 1.9....
wanabe (_ wanabe)
03:47 PM Bug #2546 (Closed): REXMLでString::eachを使用しているため1.9でNo Method Error
=begin
This issue was solved with changeset r26234.
三村, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
yugui (Yuki Sonoda)
03:36 PM Revision 9c9eb1e0 (git): * 2010-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:36 PM Revision 72b19994 (git): * trace.h: new file. wraps tracing mechanisms.
* defs/dtrace.d: new file. defined a dtrace provider "ruby".
* include/ruby/ruby.h (LIKELY): moved from vm.c.
(UNLIKELY): ditto.
(OBJSETUP): probe "object-create".
(RUBY_EVENT_RESCUE): new event.
* vm_exec.c (DEBUG_ENTER_INSN): e...
yugui (Yuki Sonoda)
02:31 PM Bug #2550 (Closed): failed to build with Solaris's make
=begin
On solaris 10, i386, after ./configure MAKE=/usr/ccs/bin/make,
make failed.
=end
yugui (Yuki Sonoda)
08:40 AM Bug #1954: line number 0?
=begin
Is this still the case, at all?
-r
=end
rogerdpack (Roger Pack)
07:33 AM Bug #2547 (Closed): error when interpolating a string containing a single backslash into a regexp
=begin
An error is raised if an interpolation in a regexp contains a string containing a single backslash. This case used to work just great in ruby 1.8. For example:

$ ruby19 -e 'a="\\"; p /#{a}y/'
-e:1:in `<main>': too short es...
coatl (caleb clausen)
06:37 AM Revision 0e8fae89 (git): * lib/rexml/text.rb: String no longer has #each.
Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:56 AM Feature #1081: add File::write() convenience method
=begin
That seems reasonable Roger. I agree:

File::write(path, string, mode='w', opt={})
File::binwrite(path, string, mode='wb', opt={})
=end
sunaku (Suraj Kurapati)
04:53 AM Feature #1082: add Object#singleton_class method
=begin
Hi Matz,

Any thoughts on this feature request?

hello.singleton_class == (class << hello; self; end)

Thanks for your consideration.
=end
sunaku (Suraj Kurapati)
04:30 AM Bug #1699: URI::FTP to_s problem after modification
=begin
This is derived from the spec level bug of "ftp" URI scheme and uri/ftp lib.

http://tools.ietf.org/html/rfc1738
http://tools.ietf.org/html/rfc1808
http://tools.ietf.org/html/draft-hoffman-ftp-uri-04
http://lists.w3.org...
naruse (Yui NARUSE)

01/02/2010

10:10 PM Bug #2546 (Closed): REXMLでString::eachを使用しているため1.9でNo Method Error
=begin
takkanm です。

RubySpecを動かしていて気付いたのですが、1.9に添付されているREXMLにてString::eachを使用していて1.9で動かない箇所(lib/rexml/text.rb)があります。

ソースを見ると以下のようにeach_lineに変更すれば問題ないようですが、いかがでしょうか?
--- a/lib/rexml/text.rb
+++ b/lib/rexml/text.rb
@@ -274,...
takkanm (三村 益隆)
06:45 PM Bug #2545 (Assigned): Array#delete_if is borked if user calls 'break'
I don't think so. I'd also expect as the reporter did. Isn't it a bug?
Assigning to matz because this can be a design issue.
shyouhei (Shyouhei Urabe)
12:29 PM Bug #2545: Array#delete_if is borked if user calls 'break'
Hi,
At Sat, 2 Jan 2010 05:55:00 +0900,
Brian Candler wrote in [ruby-core:27366]:
> Array is corrupted if you break out of a delete_if { ... }
> ...
The behavior would be an implementation detail, and should be
undefined (or implem...
nobu (Nobuyoshi Nakada)
05:54 AM Bug #2545 (Closed): Array#delete_if is borked if user calls 'break'
=begin
Array is corrupted if you break out of a delete_if { ... } loop. I would expect that the elements already marked as deleted would be deleted, and the remainder of the array would be unchanged.

>> a = [5,6,7,8,9,10]
=> [5,...
candlerb (Brian Candler)
06:10 PM Revision 2a262640 (git): rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:31 PM Revision 7df00c68 (git): * 2010-01-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:31 PM Revision 50b8893d (git): * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#inspect):
implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:03 AM Revision 1dc1bf28 (git): * lib/resolv.rb (Resolv::DNS#initialize): new option :nameserver_port.
(Resolv::DNS#each_resource): pass port number.
(Resolv::DNS#make_requester): ditto.
(Resolv::DNS::Config#lazy_initialize): initialize @nameserver_port
instead of @nameserver.
(Resolv::DNS::Config#single?): return port number addi...
akr (Akira Tanaka)
01:35 AM Bug #2373 (Rejected): URI.parse は hier-part が空である URI をパースできない
=begin
URI モジュールは RFC 2396 ベースなので以下の通り禁止、ということのようです。

hier_part = ( net_path | abs_path ) [ "?" query ]
=end
naruse (Yui NARUSE)
01:33 AM Bug #2374: URI.regexp('http') が 'http://' にマッチする
=begin
(2010/01/01 12:29), Tanaka Akira wrote:
> 2010年1月1日1:33 Yui NARUSE <redmine@ruby-lang.org>:
>>
>> まず、必ずしも正規表現でのパースが可能な事が保証されていない事です。
>> 実際問題としてはたいていパース可能なのですが、
>> たとえば urn:isbn あたりはちょっと可能とは言わないでしょう。
>> http://www.din.or.jp/...
naruse (Yui NARUSE)
01:07 AM Bug #2251 (Closed): URI.parse accepts strings with invalid characters
=begin
This issue was solved with changeset r26229.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
01:07 AM Bug #2525 (Closed): URI#normalize incomplete
=begin
This issue was solved with changeset r26227.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
12:58 AM Feature #2542: URI lib should be updated to RFC 3986
FYI, RFC 3986 will be obsoleted.
http://tools.ietf.org/html/draft-duerst-iri-bis-07
naruse (Yui NARUSE)

01/01/2010

04:00 PM Revision 7aab2aad (git): * lib/uri/common.rb (initialize_regexp): allow leading
and trailing white space, and forbid extra characters
on another lines. [ruby-core:26223]
RFC 3986 Appendix C. Delimiting a URI in Context
draft-duerst-iri-bis-07 7.2. Web Address processing
git-svn-id: svn+ssh://ci.ruby-lang....
naruse (Yui NARUSE)
04:00 PM Revision b7b82c25 (git): * 2010-01-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:00 PM Revision 17ff6520 (git): * lib/uri/generic.rb (URI#normalize!): normalize case of
scheme. [ruby-core:27309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:43 AM Revision 35f33d70 (git): * lib/mkmf.rb: Fix build. COUTFLAG is not yet landed on this
branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
06:19 AM Bug #2543 (Closed): rdoc patch for thwait.rb
=begin
Brings specs up a bit.

I also think there's a bug in #join [should be calling all_waits, not next_wait, AFAICT], but that's for a separate ticket.
Thanks!
-r
=end
rogerdpack (Roger Pack)
03:45 AM Feature #2542 (Closed): URI lib should be updated to RFC 3986
=begin
RFC 2396 has been obsolete for nearly 5 years now.

It was replaced by RFC 3986 which aims at clarifying aspects that were not previously clear.
=end
marcandre (Marc-Andre Lafortune)
03:34 AM Bug #2525 (Assigned): URI#normalize incomplete
=begin
I'll break this issue in two, then.

"hTTp://example.com/" should be normalized to "http://example.com/" as per RFC 2396

http://tools.ietf.org/html/rfc2396#section-3.1 (2nd paragraph)

Scheme names consist of a s...
marcandre (Marc-Andre Lafortune)
12:04 AM Bug #2525: URI#normalize incomplete
=begin
Yes.
Current URI is based on RFC 2396, so this needs success.
=end
naruse (Yui NARUSE)
01:33 AM Bug #2374: URI.regexp('http') が 'http://' にマッチする
=begin
(2009/12/31 23:54), Tanaka Akira wrote:
> 2009年12月31日23:47 Yui NARUSE <redmine@ruby-lang.org>:
>>
>> URI を正規表現でパースするという発想自体にそもそも若干の無理があるように思うので、
>> URI.regexp は obsolete にしませんか
>
> 無理というのは具体的にはどういう話でしょう?

まず、必ずしも...
naruse (Yui NARUSE)

12/31/2009

11:56 PM Bug #2525: URI#normalize incomplete
=begin
If this ticket is rejected, should the RubySpecs reverted as well? Otherwise, they'll continue to fail on all implementations.
=end
vvs (Vladimir Sizikov)
10:47 PM Bug #2525 (Rejected): URI#normalize incomplete
=begin
URI#normalize is based on RFC 2396.
=end
naruse (Yui NARUSE)
11:47 PM Bug #2374: URI.regexp('http') が 'http://' にマッチする
=begin
URI を正規表現でパースするという発想自体にそもそも若干の無理があるように思うので、
URI.regexp は obsolete にしませんか
=end
naruse (Yui NARUSE)
08:44 PM Bug #2488: thread usage can result in bad HANDLE
=begin

=end
usa (Usaku NAKAMURA)
03:33 AM Bug #2488 (Assigned): thread usage can result in bad HANDLE
=begin

=end
usa (Usaku NAKAMURA)
02:32 AM Bug #2488: thread usage can result in bad HANDLE
=begin
can reproduce with trunk.
=end
usa (Usaku NAKAMURA)
07:39 PM Feature #2540 (Closed): Hash#contribute
=begin

=end
naruse (Yui NARUSE)
02:55 PM Feature #2540: Hash#contribute
=begin
> > そこで、Hashにキーと値を設定する追加のメソッドとして、Hash#contributeを提案いたします。
> > 機能は、selfを返す以外はHash#storeと同等です。
>
> 新しいメソッドを追加しなくてもtapを使えば良いと思います。
>
> > これを使うときは、injectを使って、1行で済むようになります。
>
> injectとの組み合わせならeach_with_objectを使う方が良いと思...
cyross (Makoto Cyross)
02:44 AM Feature #2540: Hash#contribute
=begin
> そこで、Hashにキーと値を設定する追加のメソッドとして、Hash#contributeを提案いたします。
> 機能は、selfを返す以外はHash#storeと同等です。

新しいメソッドを追加しなくてもtapを使えば良いと思います。

> これを使うときは、injectを使って、1行で済むようになります。

injectとの組み合わせならeach_with_objectを使う方が良いと思います。
=end
znz (Kazuhiro NISHIYAMA)
07:28 PM Bug #2541 (Closed): fork のない環境での spawn による未使用 fd へのリダイレクト
=begin
r26212 fixes this.
=end
naruse (Yui NARUSE)
01:36 PM Bug #2541 (Closed): fork のない環境での spawn による未使用 fd へのリダイレクト
=begin
fork のない環境で spawn するとき、未使用の fd へリダイレクトしようとすると
EBADF 例外が発生してしまいます。
save_redirect_fd() 中の redirect_dup() の戻り値のチェックで引っかかっているようです。

$ ruby -ve 'spawn("echo foo", 10=>STDOUT)'
ruby 1.9.2dev (2009-12-31 trunk 26211) [i386-min...
wanabe (_ wanabe)
03:52 PM Revision 6508307a (git): * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
compiler warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:51 PM Revision 5ca2182b (git): I think it's Friday today.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:49 PM Revision ae563f61 (git): * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
compiler warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:40 PM Revision 25e036d5 (git): * string.c: Add instance methods to Symbol: succ, next, <=>,
casecmp, =~, [], slice, length, size, empty?, match, upcase,
downcase, capitalize and swapcase. [backport from 1.9]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:36 PM Revision 3f1da781 (git): * parse.y (dsym): Allow empty symbols. [merge from 1.9]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:23 PM Revision 54a55edb (git): * object.c, intern.h: Export rb_sym_to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:14 PM Revision fde082a4 (git): * 2010-01-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:14 PM Revision 6476c423 (git): * object.c, intern.h: Export rb_sym_to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:00 PM Revision 35d90a7d (git): * 2010-01-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision c0b4e90f (git): * tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
* lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby.
* test/ruby/envutil.rb: ditto.
* benchmark/report.rb: ditto.
* benchmark/runc.rb: ditto.
* tool/eval.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26216 b2...
akr (Akira Tanaka)
02:43 PM Revision 3e5fd3ad (git): * enumerator.c: Remove a duplicated declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
09:19 AM Revision 07048997 (git): * ext/socket/rubysocket.h: include addrinfo.h only when using our own
getaddrinfo.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:17 AM Revision aea59a74 (git): * ext/socket/socket.c: include addrinfo.h only when using our own
getaddrinfo.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:22 AM Revision 96abe7f3 (git): * process.c (save_redirect_fd): consider EBADF that the fd is not used.
[ruby-dev:39938]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura

12/30/2009

10:52 PM Feature #2540 (Closed): Hash#contribute
=begin
初めてチケット切ります。不備がございましたらご指摘ください。

***

現在、Hashにキーと値を設定したいときに、[]=とstoreの2種のメソッドがあります。
しかし、これらのメソッドは更新したselfを返さないため、Hashをマージする(Hash#mergeとは違い、深く検索するマージ)処理を書いたときは、どうしても1行で収まらなくなります

# base:マージするハッシュ
# hash:マージ対象ハッシュ
...
cyross (Makoto Cyross)
09:03 PM Revision 0ad3bee0 (git): * ext/socket/raddrinfo.c (addrinfo_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:01 PM Revision 815fccb4 (git): * ext/socket/extconf.rb: use have_struct_member.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:56 PM Revision 36f93387 (git): * ext/socket/extconf.rb: fix for wide-getaddrinfo option.
* ext/socket/addrinfo.c: rename {addr,name}info functions to ensure
those are used on darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:56 PM Revision 1069e0f3 (git): * ext/socket/extconf.rb: fix for wide-getaddrinfo option.
* ext/socket/addrinfo.c: rename {addr,name}info functions to ensure
those are used on darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:47 PM Bug #2535 (Closed): patch to attempt to clarify the difference between FIX2INT and FIX2LONG
=begin
This issue was solved with changeset r26204.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
08:17 PM Bug #2489 (Feedback): Segmentation Fault Ruby 1.9.1 p376, AIX 5.3
=begin

=end
naruse (Yui NARUSE)
07:54 PM Revision 6e4df289 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:30 PM Revision 9f90682c (git): * thread_win32.c (native_thread_destroy): decreased the probability of
using the interrupt event in the thread termination.
see [ruby-core:27199].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:36 PM Revision 5bc85d62 (git): * thread_win32.c (w32_error): should report the function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:58 PM Revision 6096bbf0 (git): * ext/extmk.rb: fix for extstatic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:58 PM Revision 8de8d8b5 (git): * ext/extmk.rb: fix for extstatic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:45 AM Revision b7a59cd1 (git): Add more description about Fixnum's size. [ruby-core:27333]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:44 AM Revision f9bef8b9 (git): * include/ruby/ruby.h (RREGEXP_SRC_END): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:44 AM Revision 9db87ea5 (git): * include/ruby/defines.h (INFINITY): this is float.
* include/ruby/defines.h (NAN): ditto.
* numericc.c (rb_infinity): change content as float.
* numericc.c (rb_nan): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:59 AM Revision 499bf746 (git): * gem_prelude.rb (push_all_highest_version_gems_on_load_path):
simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:49 AM Revision 270ece84 (git): * lib/rubygems/command_manager.rb (Gem#load_and_instantiate):
rescue only NameError from const_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:45 AM Revision 90044317 (git): * lib/rubygems/source_index.rb (Gem#load_specification): don't use
RUBY_VERSION to branch.
* lib/rubygems/validator.rb (Gem::TestRunner, Gem#alien): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:13 AM Revision 45b75014 (git): * lib/rubygems.rb: Kernel#gem is already defined, and workaround
for home directory and custom_require are no longer needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom