Project

General

Profile

Activity

From 01/02/2010 to 01/08/2010

01/08/2010

11:47 PM Bug #2397 (Closed): cannot call public'ed method via public_method
=begin
This issue was solved with changeset r26256.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
mame (Yusuke Endoh)
11:40 PM Revision 417435f2 (git): * win32/configure.bat (WIN32DIR): regularise file separators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:40 PM Revision 9e72f979 (git): * win32/configure.bat (WIN32DIR): regularise file separators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:08 PM Bug #2577: Ruby 1.9.2 Preview 1 Aborts when script/generate is used
=begin
Hello,

Lot of things happened since preview1.

Also, a smaller, reproducible case is better than attempt to reproduce in a full fledged Rails application where many loaded components can interfere.

I suggest you use...
luislavena (Luis Lavena)
10:59 PM Bug #2577 (Closed): Ruby 1.9.2 Preview 1 Aborts when script/generate is used
=begin
Hi, I'm seeing the following when issue when I attempt

$ ruby -v
ruby 1.9.2dev (2009-07-18 trunk 24186) [powerpc-darwin9.8.0]
darnoc-desktop:blog-3.0.0 conradwt$ script/generate scaffold post title:string body:text
/U...
Anonymous
09:27 PM Feature #2574 (Closed): merging net/https
=begin
This issue was solved with changeset r26254.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
09:14 PM Feature #2574: merging net/https
=begin
net/http は青木プロダクトなのでメンテナは青木さんでした。
つまり、今はメンテナがいません。

というわけで、まつもとさんが賛成したのでこれはコミットしてしまいます。
=end
naruse (Yui NARUSE)
04:59 PM Feature #2574: merging net/https
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39986] [Feature #2574] merging net/https"
on Fri, 8 Jan 2010 09:40:08 +0900, Yui NARUSE <redmine@ruby-lang.org> writes:

|現在 net/https はほとんど抜け殻で、ほぼ require 'openssl' するためだけに存在するのですが...
matz (Yukihiro Matsumoto)
09:40 AM Feature #2574 (Closed): merging net/https
=begin
現在 net/https はほとんど抜け殻で、ほぼ require 'openssl' するためだけに存在するのですが、
残っているロジックも net/http に移してしまって、net/http だけで https も扱えるようにしませんか。
autoload を使って https に実際にアクセスしたときに openssl ライブラリをロードするようにしたので、
無駄に読み込むこともありません。

なお、net/https は r...
naruse (Yui NARUSE)
06:36 PM Feature #2022: Patch for openssl-1.0
=begin
Hi,

At Tue, 5 Jan 2010 19:05:54 +0900,
Hongli Lai wrote in [ruby-core:27417]:
> There are some compilation warnings. All RubySpec OpenSSL
> tests pass, but some Ruby OpenSSL tests fail. It seems that
> OpenSSL change...
nobu (Nobuyoshi Nakada)
02:40 PM Revision 8e8bb6c1 (git): * proc.c (mnew): don't check visibility of method body if public
ZSUPER method is found. [ruby-dev:39767]
* test/ruby/test_method.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:10 PM Revision 479a3c4c (git): * vm_method.c (rb_alias): skip ZSUPER method when searching body of
source method. [ruby-dev:39760]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
12:17 PM Revision e0cdab5f (git): * lib/net/http, lib/net/https: move content from net/https to
net/http. [ruby-dev:39986]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:51 AM Revision c1d3b01b (git): * io.c (io_fwrite): preserve errno. [ruby-core:27425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:08 AM Revision ddc17914 (git): * io.c (rb_io_s_read): close the IO if an exception is raised on
seeking. [ruby-core:27429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:02 AM Revision 520c6b73 (git): * ruby.h (RB_GC_GUARD_PTR): workaround for gcc optimization.
[ruby-core:27402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:47 AM Revision ef6e5363 (git): * io.c (rb_io_s_read): close the IO if an exception is raised on
seeking. [ruby-core:27429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:12 AM Revision 902b1094 (git): * marshal.c (w_symbol): dump no encoding for 7bit only coderange
symbol. [ruby-core:27375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/07/2010

11:29 PM Feature #2012: Set event_flags on thread creation if hook exists
=begin
Hi --

Sorry for very late response!


2009/8/30 Mark Moseley <redmine@ruby-lang.org>:
> In ruby-debug, when a user sets a breakpoint that ends up executed by a later-created thread, then nothing will happen.

Confirmed.
...
mame (Yusuke Endoh)
08:07 PM Feature #2565: adding hooks for better tracing
=begin
Hi,

2010/1/6 Yugui <yugui@yugui.jp>:
> What do you think? Can I commit the patch I attached?

All the event types you added are C-level events which set_trace_func can
not monitor. But I think that RUBY_EVENT_RESCUE may ...
mame (Yusuke Endoh)
06:18 PM Feature #2571: 文字列のハミング距離
=begin
> このメソッドを Ruby で実装しようとすると、String#[] を使って比較することになると思います。

String#codepoints を使うという方法があります。
また、まつもとさんのご指摘の通り拡張ライブラリという方法もありますし、gemでもいいでしょう。

テキスト処理言語なのだから、textutils みたいなライブラリが添付されていてもいい気はしますが、
妥当に見えるユースケースがないと難しいのではないでし...
naruse (Yui NARUSE)
05:35 PM Feature #2571: 文字列のハミング距離
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39975] [Feature #2571] 文字列のハミング距離"
on Thu, 7 Jan 2010 17:06:10 +0900, Kenta Murata <redmine@ruby-lang.org> writes:

|文字列のハミング距離を求めるメソッドが欲しかったため、String#hamming_distance を実装しました。
|h...
matz (Yukihiro Matsumoto)
05:12 PM Feature #2571: 文字列のハミング距離
=begin
このメソッドを Ruby で実装しようとすると、String#[] を使って比較することになると思います。
その場合、String#[] が呼び出される度に新たな文字列が生成されてしまい無駄なオブジェクトがいくつも生成されます。
文字列に対するハミング距離の解釈が変化することは殆ど無いでしょうから、
組み込みのメソッドとして実装されている方が一般的に嬉しいのではないでしょうか。
=end
mrkn (Kenta Murata)
05:06 PM Feature #2571 (Closed): 文字列のハミング距離
=begin
文字列のハミング距離を求めるメソッドが欲しかったため、String#hamming_distance を実装しました。
hamming_distance は長くて使いにくかったので、String#^ も定義しました。
文字数が異なる場合、および比較不可能なエンコーディングの場合は未定義とし nil を返します。

これが組み込みで使用できたら一番嬉しいのですが、採用していただく事は可能でしょうか?
=end
mrkn (Kenta Murata)
01:14 PM Feature #2567: Net::HTTP does not handle encoding correctly
=begin
You can get Content-Type's parameter by result.type_params

I'm nervous about setting encoding to result body of net/http
because charset of Content-Type doesn't show true encoding of the content.
http://wiki.whatwg.org/w...
naruse (Yui NARUSE)
06:20 AM Feature #2567 (Closed): Net::HTTP does not handle encoding correctly
=begin
A string returned by an HTTP get does not have its encoding set appropriately with the charset field, nor does the content_type report the charset. Example code demonstrating incorrect behavior is below.

#!/usr/bin/ruby -w
...
slide_rule (Ryan Sims)

01/06/2010

11:15 PM Feature #2565 (Closed): adding hooks for better tracing
=begin
Hi,

I made a commit that embeded dtrace probes into Ruby so that you can
profile a Ruby application at runtime. (r26235)

Adding probes had been approved by a Ruby developer's meeting,
however, the commit was little...
yugui (Yuki Sonoda)
10:58 PM Revision 59a56629 (git): * 2010-01-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:58 PM Revision 06925a09 (git): Imported minitest 1.5.0 r5596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
05:48 PM Feature #2454: OpenSSL has no maintainer
=begin
The ssh key and the GPG key are two different things.

The ssh public key lives in ~/.ssh/.id_dsa.pub.

Here's a GPG tutorial: http://aplawrence.com/Basics/gpg.html
For email encryption/signing, I've found Thunderbird +...
hongli (Hongli Lai)
04:00 PM Feature #2454: OpenSSL has no maintainer
=begin
We need some signed message.
Following articles describes how to use GPG on Mail App on Mac OS X including Snow Leopard, but in Japanese.
Can anyone who has Snow Leopard teach him?

http://blog.macfeeling.com/old_article/...
naruse (Yui NARUSE)
05:44 PM Bug #2413 (Closed): MiniTest::Assertions#assert_raises ignores message
=begin
Fixed. Will go out in a release shortly and merged to trunk shortly after that.

Thank you for the report.
=end
zenspider (Ryan Davis)
03:47 PM Bug #2562 (Rejected): String#hex strange behavior
=begin
This is intended, r15799.
=end
naruse (Yui NARUSE)
03:13 PM Bug #2562 (Rejected): String#hex strange behavior
=begin
'_a'.hex:

1.8.6, 1.8,7 rubinius 1.0 rc2 gives 10
1.9.1p243, 1.9.1p376, macuby gives 0.

Also, there is no such test in rubyspec.
=end
kronos (Ivan Samsonov)
02:33 PM Bug #2554: Net::FTP should not use MSG_OOB
=begin
Hi,

2010/1/6 Tanaka Akira <akr@fsij.org>:
>> The FTP protocol description does not seem to make any mention that the ABOR command should be sent with MSG_OOB. This makes be believe that Net::FTP is bugged, not the server.
>
...
shugo (Shugo Maeda)
10:57 AM Feature #1082: add Object#singleton_class method
=begin
Hi --

On Tue, 5 Jan 2010, Yukihiro Matsumoto 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, Shugo Maeda <shugo@ruby-lang...
dblack (David Black)
08:01 AM Feature #1082: add Object#singleton_class method
=begin
On Tue, Jan 5, 2010 at 5:25 PM, Ammar Ali <redmine@ruby-lang.org> wrote:
> Issue #1082 has been updated by Ammar Ali.
>
>
> Suggesting new terms might be completely unwelcome, but...
>
> The distinction between a "regular" ...
RickDeNatale (Rick DeNatale)
07:25 AM Feature #1082: add Object#singleton_class method
=begin
Suggesting new terms might be completely unwelcome, but...

The distinction between a "regular" class and a singleton/eigen/whatever class appears similar to the distinction between phonetic and phonemic in phonology. Some s...
ammar (Ammar Ali)
10:10 AM Feature #2542: URI lib should be updated to RFC 3986
Ah, Martin is right, it's RFC 3987 and RFC 3986 will be still alive.
Anyway Bob Aman introduces an alternative library named Addressable.
http://addressable.rubyforge.org/
It looks good but some incompatibilities for current URI lib...
naruse (Yui NARUSE)
06:45 AM Bug #2547: error when interpolating a string containing a single backslash into a regexp
=begin
I can see why it would be easier to forbid splitting up escape sequences in regexp. But:

1) Ruby 1.8 did handle this; it can't be all that impossible.

2) If splitting escapes is forbidden, then for consistency, the dire...
coatl (caleb clausen)

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)
 

Also available in: Atom