Project

General

Profile

Activity

From 03/16/2010 to 03/22/2010

03/22/2010

11:37 PM Feature #2673: the length for an enumerator generated by Array#permutation and Array#combination
=begin
むらたです。

On 2010/03/22, at 12:42, Yusuke ENDOH wrote:

> 2010年3月14日13:05 _ wanabe <redmine@ruby-lang.org>:
>> Enumerator#length は、一般に定義されていた方がなにかと便利な気がします。
>> また、同じクラスのオブジェクトが NoMethodError を起こしたり起こさなかったりするのは
>> 少し分かりにくいので、...
mrkn (Kenta Murata)
12:42 PM Feature #2673: the length for an enumerator generated by Array#permutation and Array#combination
=begin
遠藤です。

2010年3月14日13:05 _ wanabe <redmine@ruby-lang.org>:
> Enumerator#length は、一般に定義されていた方がなにかと便利な気がします。
> また、同じクラスのオブジェクトが NoMethodError を起こしたり起こさなかったりするのは
> 少し分かりにくいので、なるべくなら避けた方がいいように思います。
> 長さが定義できないものについては、RuntimeError...
mame (Yusuke Endoh)
10:09 PM Feature #2969: String#to_f が -h.hhh±pd を解釈できるように
=begin
質問ですが、この形式は入力だけでなく、なんらかの方法で出力でも利用でき
るのでしょうか。

あと、これを浮動小数点数において16進数を受けつけるようにした、と解釈す
ると、たとえば、Integer では、

Integer('0xff') #=> 255
'0xff'.to_i #=> 0

という違いがあるようです。

Float('0xff.0p+0') #=> 255.0
'0xff.0p+0'.to_f #=>...
tadf (tadayoshi funaba)
08:47 PM Feature #2084 (Closed): Method#source_location and Methods Created with `attr`
=begin
This issue was solved with changeset r27016.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
wanabe (_ wanabe)
02:18 PM Feature #2084: Method#source_location and Methods Created with `attr`
=begin
> If you are reluctant to commit it without explicit approval, I'll
> commit it on my own responsibility.

Many thanks for your concern.
I'll apply it soon.
=end
wanabe (_ wanabe)
01:26 PM Feature #2084: Method#source_location and Methods Created with `attr`
=begin
Hi,

> Matz or Yugui, could you approve this?

Yugui has agreed with this feature on IRC.
But she said she had no responsibility for Method#source_location.
(I had misunderstood that she had committed it)

Well, b...
mame (Yusuke Endoh)
08:18 PM Revision 094d03c5 (git): * test/yaml/test_hash.rb (test_ref_append): adding a test for idref
append nodes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
08:06 PM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Hi,

Thank you for your detailed reply!


2010/3/22 Bill Kelly <billk@cts.com>:
> Hash is not maintained in key-sorted order.
>
> Hash does not offer upper_bound(key) or lower_bound(key)
> or bound(key1, key2) in O(log N...
mame (Yusuke Endoh)
07:06 PM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Yusuke ENDOH wrote:
> 2010/3/22 Bill Kelly <billk@cts.com>:
>> RBTree and MultiRBTree provide functionality which, with its
>> worst-case O(log N) search, insert, and delete complexity for
>> a sorted pair associative contain...
spatulasnout (B Kelly)
11:27 AM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Hi,

2010/3/22 Bill Kelly <billk@cts.com>:
> RBTree and MultiRBTree provide functionality which, with its
> worst-case O(log N) search, insert, and delete complexity for
> a sorted pair associative container can't be readily...
mame (Yusuke Endoh)
10:59 AM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Hi,

Yusuke ENDOH wrote:
>
> Is there case where we want to use RBTree directly, instead of set.rb?

I'm sorry if I've misunderstood - but it would not have occurred
to me to use 'set' to access RBTree's functionality.

...
spatulasnout (B Kelly)
09:40 AM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Hi,

2010/3/22 James Gray <redmine@ruby-lang.org>:
> Is there any chance we could get this incorporated before the 1.9.2 feature freeze?


This ticket is not simple since this feature seems to be against "Large
Class Princ...
mame (Yusuke Endoh)
05:16 AM Feature #2348: RBTree Should be Added to the Standard Library
=begin
This ticket doesn't have:
* Who maintain it
* Sufficient reason to bundle

If someone maintain it, the problem is, Is this worth to bundle?
So you should persuade, like:

* Gauche have RBTree http://practical-scheme...
naruse (Yui NARUSE)
04:26 AM Feature #2348: RBTree Should be Added to the Standard Library
=begin
Is there any chance we could get this incorporated before the 1.9.2 feature freeze?
=end
JEG2 (James Gray)
07:34 PM Feature #973: EncDet again
=begin
2010/3/22 Yusuke Endoh <redmine@ruby-lang.org>:
>> 言い換えると、このライブラリの用途は様々な場面で必要である一方、実装が意外と難しいので、
>> 適切なライブラリを標準添付で提供しなければならないと思っています。
>> たとえ名前で合意がつかなかったとしても、yuguiさん判断で名前を決定し、添付するべきであろうと。
>
> とのことなので、入れた方がいいんじゃないかなと思っていました。

...
yugui (Yuki Sonoda)
12:11 PM Feature #973: EncDet again
=begin
遠藤です。

2010年3月20日16:00 Yugui <yugui@yugui.jp>:
> 2010/3/20 Yusuke ENDOH <mame@tsg.ne.jp>:
>> 再度いいますが、3 月末までに合意できないと自動的に流れますので、
>> 導入を狙っている人たちはがんばってください。
>
> 議論の過程でもうちょっと実例が集まることを期待したんですが、結局3例のままですよね。
> ならば流してもうちょっ...
mame (Yusuke Endoh)
04:15 PM Revision 0899c59b (git): * 2010-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:15 PM Revision a4fa54a1 (git): * ext/socket: use rsock_ prefix for internal initialization functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:11 PM Feature #1880: Hash#flatten Doesn't Operate Recursively for Hash Values
=begin
Hi,

> Hash#flatten claims to flatten recursively if given an argument specifying the depth. This works as expected for Array values, but has no bearing on Hash values.


I wonder why recursive Hash#flatten is needed :...
mame (Yusuke Endoh)
12:00 PM Feature #1599: ruby test_foo.rb --help do not show help message
=begin
Hi,

> I execute below command.
> I think it shows help messages, but execute tests only.
>
> $ ruby test_foo.rb --help
>
> For convenience, I want it to show help messages.


Ryan, what do you think about thi...
mame (Yusuke Endoh)
11:44 AM Revision 91533255 (git): add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wanabe (_ wanabe)
11:44 AM Revision c46f7139 (git): * proc.c (rb_method_location): return attr's location if it is setup.
[Feature #2084]
* NEWS: follow above.
* vm_method.c (rb_add_method): save attr's location.
* gc.c (mark_method_entry): mark attr's location.
* method.h (rb_method_definition_t): add member to save attr's location.
* vm_eval.c (vm_ca...
wanabe (_ wanabe)
11:00 AM Feature #2013: [PATCH] a = *b calls b.*@
=begin
Hi,

> This makes the * operator operate more similarly to the + and - operators.

Interesting. It may be useful to simplify the semantics of multiple
assignment which is considered as one of most complex part of Ruby....
mame (Yusuke Endoh)
10:33 AM Revision dcd49e3b (git): * 2010-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:33 AM Revision 95c269a1 (git): * lib/date.rb (Date#>>): fixed. [ruby-core:28011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:32 AM Revision 5d8f6950 (git): * lib/date.rb (Date#>>): fixed. [ruby-core:28011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:20 AM Feature #1103: Ruby used for webrick cgi should be configurable
=begin
Hi,

> The ruby used for cgi in webrick is not configurable.
>
> This patch allows the ruby binary to be configurable so that ruby does not need to be installed to use webrick cgi.
>
> This also fixes webrick tests.
...
mame (Yusuke Endoh)
09:45 AM Revision 65248459 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:44 AM Feature #440 (Closed): Better introspection for methods (declaring class, arity)
=begin
Hi,

> Tools relying on introspection would benefit from having access to information such as:
> 1) where was a given method declared, and
> 2) how many arguments does a method accept.

I think the requests has alread...
mame (Yusuke Endoh)
09:37 AM Feature #1082: add Object#singleton_class method
=begin
Hi,

In message "Re: [ruby-core:28731] Re: [Feature #1082] add Object#singleton_class method"
on Thu, 18 Mar 2010 15:22:23 +0900, Shugo Maeda <shugo@ruby-lang.org> writes:

|> Does Matz still hate "just a short form"?
...
matz (Yukihiro Matsumoto)
09:01 AM Revision 0edceaa7 (git): * configure.in (RMDIRS): use rmdir -p if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:38 AM Revision cce8bbb7 (git): * Makefile.in ({dist,real}clean-ext): fix for removing ext
directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:23 AM Feature #1981: [PATCH] CSV Parsing Speedup
=begin
Thanks Timothy, but this patch doesn't include your latest fix from the FasterCSV side, to restore the strict parser behavior. This tests is currently failing:

def test_non_regex_edge_cases
# An early version of the...
JEG2 (James Gray)
03:33 AM Revision 1561d3fb (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:24 AM Revision 1a40be09 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:48 AM Revision 062780c8 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:06 AM Revision 0647517b (git): * ext/socket/.document: extracted from ext/.document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:02 AM Feature #2981: Array#repeated_(permutation|combination)
=begin
Hi matz,

2010/3/18 KISHIMOTO, Makoto <ksmakoto@dd.iij4u.or.jp>:
> New methods Array#repeated_(permutation|combination).
>
> Like Array#(permutation|combination), these methods make
> repeated permutation or combination.

...
mame (Yusuke Endoh)

03/21/2010

07:57 PM Feature #2250 (Closed): IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
This issue was solved with changeset r26999.
Mike, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
06:07 PM Bug #2742 (Closed): IO#read/gets can be very slow in doze
=begin
This issue was solved with changeset r26997.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
03:51 PM Revision c9e4e440 (git): * ext/socket/rubysocket.h (rsock_revlookup_flag): declared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:03 PM Revision e98ffd97 (git): * symbian/setup (config.h): RUBY_EXEC_PREFIX defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Alexander Zavorine
03:02 PM Revision 5befc5d5 (git): * 2010-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision f0c0d98d (git): * symbian/setup (config.h): RUBY_EXEC_PREFIX defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Alexander Zavorine
12:36 PM Revision 83c2f60b (git): * lib/uri/common.rb (URI.encode_www_form_component):
convert strings of HTML5 ASCII incompatible encoding
to UTF-8.
* lib/uri/common.rb (URI.encode_www_form_component):
"\x83\x41" of Shift_JIS should be encoded as "%83A".
This follows real implementations.
* lib/uri/common.rb (URI....
naruse (Yui NARUSE)
12:10 PM Revision 66390013 (git): * lib/resolv-replace.rb: specify super class for rdoc.
* lib/ipaddr.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:52 AM Revision ed2dd5e3 (git): * io.c (rb_io_initialize): add autoclose argument to control close
at finalization. [ruby-core:26222]
* io.c (rb_io_autoclose_p, rb_io_set_autoclose): new methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:50 AM Revision daa73987 (git): * ext/socket: make sources rdoc friendly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:04 AM Feature #2983 (Third Party's Issue): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin

=end
nobu (Nobuyoshi Nakada)
07:09 AM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
At least, to avoid divergence, I don't think we should make discussions in many places.

=end
nobu (Nobuyoshi Nakada)
09:04 AM Feature #2032 (Third Party's Issue): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
nobu (Nobuyoshi Nakada)
09:04 AM Feature #2982 (Third Party's Issue): Ruby tries to link with both openssl and readline
=begin

=end
nobu (Nobuyoshi Nakada)
08:49 AM Feature #2982 (Open): Ruby tries to link with both openssl and readline
=begin

=end
nobu (Nobuyoshi Nakada)
05:38 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
On 2010-03-21 05:25:01 +0900, Michal Suchanek wrote:
> On 20 March 2010 20:50, Ryan Davis <ryand-ruby@zenspider.com> wrote:
> >
> > On Mar 19, 2010, at 15:42 , caleb clausen wrote:
> >
> >> How much effort would be needed to...
darix (Marcus Rückert)
05:25 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
On 20 March 2010 20:50, Ryan Davis <ryand-ruby@zenspider.com> wrote:
>
> On Mar 19, 2010, at 15:42 , caleb clausen wrote:
>
>> How much effort would be needed to internationalize libedit?
>
> Apparently this has already bee...
hramrach (Michal Suchanek)
04:51 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin

On Mar 19, 2010, at 15:42 , caleb clausen wrote:

> How much effort would be needed to internationalize libedit?

Apparently this has already been done, but not released yet. Aaron found recent commits in their repo that lo...
zenspider (Ryan Davis)
08:57 AM Revision cce4892c (git): * io.c (IO_RBUF_CAPA_FOR): use large buffer as cbuf if readconv is
needed for performance improvement. based on a patch by Roger Pack
in [ruby-core:28163]. [ruby-core:28162]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:15 AM Revision 8e63c340 (git): * tool/transcode-tblgen.rb: reuse hash object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:34 AM Bug #2992 (Closed): File operations leak file handles in Windows XP
=begin
Various operations on files leak file handles in Windows XP. In the two attached scripts, Task Manager will report ~30 open file handles for the ruby process at the first gets, then ~230 at the second gets.

This has only bee...
phiggins (Pete Higgins)
03:38 AM Revision 49d99372 (git): * tool/transcode-tblgen.rb (transcode_compile_tree): make
valid_encoding mandatory unless from_encoding is registered in
ValidEncoding.
(transcode_tbl_only): ditto.
(transcode_tblgen): ditto.
(ValidEncoding): new function.
* enc/trans/escape.trans: specify valid_encoding.
* enc/trans/...
akr (Akira Tanaka)
12:43 AM Revision f623979f (git): * io.c (IO_[CRW]BUF_CAPA_MIN): replaced magic numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:24 AM Revision 9a836831 (git): * 2010-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:24 AM Revision 82488cf2 (git): * object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:14 AM Feature #1358 (Rejected): net/http has no TRACK method - here's a patch
=begin
TRACK is only in IIS and source of vulnerability.
We can't add such method.

http://www.kb.cert.org/vuls/id/288308
http://www.symantec.com/business/security_response/attacksignatures/detail.jsp?asid=20419
=end
naruse (Yui NARUSE)

03/20/2010

11:12 PM Feature #2340: Removing YAML/Syck
=begin
(2010/03/19 4:24), Charles Oliver Nutter wrote:
> We would also like to know when this is official, since we're going to
> have to rewrite YAML support again.

It's decided by Yugui.
1.9.2 feature will be freezed in this mon...
naruse (Yui NARUSE)
08:48 PM Feature #2340: Removing YAML/Syck
=begin
(2010/03/20 6:33), Aaron Patterson wrote:
> On Thu, Mar 18, 2010 at 10:50:18PM +0900, Yui NARUSE wrote:
>> Issue #2340 has been updated by Yui NARUSE.
>>
>> Target version set to 1.9.x
>>
>> How about this status, Aaron?
>...
naruse (Yui NARUSE)
08:11 PM Bug #2629: ConditionVariable#wait(mutex, timeout) should return whether the condition was signalled, not the waited time
=begin
I guess you are right.
=end
hongli (Hongli Lai)
03:20 AM Bug #2629: ConditionVariable#wait(mutex, timeout) should return whether the condition was signalled, not the waited time
=begin
Hi,

2010/3/17 Yusuke Endoh <redmine@ruby-lang.org>:
> I could be wrong because I'm not familiar with multi-thread programming,
> but I doubt that it is potentially dangerous to depend on the reason of
> wait termination. C...
mame (Yusuke Endoh)
07:11 PM Feature #2032 (Assigned): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
naruse (Yui NARUSE)
08:35 AM Feature #2032 (Closed): Change the license to "GPLv2+ or Ruby's original".
=begin
I close this ticket because it is duplication.
Also, note that libedit has been supported already,
libreadline will be disabled by --enable-libedit configure option.
=end
nobu (Nobuyoshi Nakada)
05:06 AM Feature #2032 (Assigned): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
naruse (Yui NARUSE)
07:11 PM Feature #2983 (Open): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
Don't close duplicated tickets, all of them are closed if you close one of them > nobu
=end
naruse (Yui NARUSE)
08:35 AM Feature #2983 (Closed): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
I close this ticket because it is duplication.
Also, note that libedit has been supported already,
libreadline will be disabled by --enable-libedit configure option.
=end
nobu (Nobuyoshi Nakada)
05:58 AM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
Yes, but current its UTF-8 support is broken.
Moreover it is only UTF-8.

I heard they are working on supporting M17N, so it is good when that is done.
=end
naruse (Yui NARUSE)
05:35 AM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
libedit might be finally getting multibyte encodings - http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/?sortby=date - there appears to be a commit to add UTF-8 support
=end
wishdev (John Higgins)
05:06 AM Feature #2983 (Open): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
GPL3 problem is not resolved; this ticket is mistakenly closed because this is duplicated ticket with #2982.
=end
naruse (Yui NARUSE)
04:53 AM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
I'm surprised this was closed without discussion. How do you recommend we (Debian) solve that?
=end
lucas (Lucas Nussbaum)
04:01 PM Feature #973: EncDet again
=begin
2010/3/20 Yusuke ENDOH <mame@tsg.ne.jp>:
> 再度いいますが、3 月末までに合意できないと自動的に流れますので、
> 導入を狙っている人たちはがんばってください。

議論の過程でもうちょっと実例が集まることを期待したんですが、結局3例のままですよね。
ならば流してもうちょっと慎重に検討しても良いのではないでしょうか。まずはredmineにfeatureとして登録されたことで将来的に検討される可能性が残った...
yugui (Yuki Sonoda)
12:55 AM Feature #973: EncDet again
=begin
遠藤です。

2010年3月18日7:05 Nobuyoshi Nakada <nobu@ruby-lang.org>:
> At Wed, 17 Mar 2010 22:46:43 +0900,
> Yusuke Endoh wrote in [ruby-dev:40687]:
>> ? 2) File.open 方式で決定する
>
>> #2 の選択肢は実現可能性が検証されていない気がするので、「パッチを
>> 書いてみたら実は難しい...
mame (Yusuke Endoh)
03:09 PM Bug #2976: cucumberでSEGV
=begin
#2529 #2786 がすでに出ていますね…
=end
sakuro (Sakuro OZAWA)
01:52 PM Revision d0fa628d (git): * string.c (rb_str_sum): use UCHAR_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:40 PM Feature #2065: An ancestors iterator
=begin
Well, what can I say? When you put it that way I'm sure this can all seem quite trivial in the grand scheme. Truth is most bottlenecks, including this one, are not so bad... just wait a second. Ruby will be fine with or withou...
bahuvrihi (Simon Chiang)
01:50 AM Feature #2065: An ancestors iterator
=begin
2010/3/20 Nikolai Weibull <now@bitwi.se>:
> On Fri, Mar 19, 2010 at 17:40, Nikolai Weibull <now@bitwi.se> wrote:
>> On Fri, Mar 19, 2010 at 16:45, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
>>> I'd like to make up for my stupid sugg...
mame (Yusuke Endoh)
01:42 AM Feature #2065: An ancestors iterator
=begin
On Fri, Mar 19, 2010 at 17:40, Nikolai Weibull <now@bitwi.se> wrote:
> On Fri, Mar 19, 2010 at 16:45, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
>> I'd like to make up for my stupid suggestion by giving a patch :-)
>> I can commit t...
now (Nikolai Weibull)
01:40 AM Feature #2065: An ancestors iterator
=begin
On Fri, Mar 19, 2010 at 16:45, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> I'd like to make up for my stupid suggestion by giving a patch :-)
> I can commit this if matz approves.

If I understood everything so far, we’re talking ...
now (Nikolai Weibull)
12:45 AM Feature #2065: An ancestors iterator
=begin
Hi,

2010/3/20 Simon Chiang <redmine@ruby-lang.org>:
> So to clarify... ?How much any piece of code of a bottleneck depends on how frequently the code gets run, and that is application-specific. ?In my own application, it IS e...
mame (Yusuke Endoh)
12:17 AM Feature #2065: An ancestors iterator
=begin
So to clarify... How much any piece of code of a bottleneck depends on how frequently the code gets run, and that is application-specific. In my own application, it IS enough of a bottleneck for me to make this request because ...
bahuvrihi (Simon Chiang)
10:18 AM Revision 750c9916 (git): * tool/transcode-tblgen.rb (ActionMap.unambiguous_action): use
Array#delete.
(ActionMap.merge2): defined.
(ActionMap::PostMemo): removed.
(transcode_compile_tree): use ActionMap.merge2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:48 AM Feature #1800: rubygems can replace system executable files
=begin
Marcus, by this idea, what happens when a gem is being newly installed, not updated and there is a file that the gem is to overwrite?
I think we cannot track gem's wrappers' checksums since the sh-bang line may differ envs to en...
sakuro (Sakuro OZAWA)
12:22 AM Feature #1800: rubygems can replace system executable files
=begin
Hi,

2010/3/20 Marcus Ruckert <redmine@ruby-lang.org>:
> Eric and myself discussed this on irc and came to the conclusion that rubygems would need to track binaries installed by gems with path and their checksum.
> When it up...
mame (Yusuke Endoh)
12:09 AM Feature #1800: rubygems can replace system executable files
=begin
Eric and myself discussed this on irc and came to the conclusion that rubygems would need to track binaries installed by gems with path and their checksum.
When it updates a gem it would only overwrite the binary if the checksu...
darix (Marcus Rückert)
09:47 AM Revision b7ed43e9 (git): * test/dl/test_handle.rb: skip some tests on mswin/mingw.
because RTLD_DEFAULT and RTLD_NEXT don't work well on windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
wanabe (_ wanabe)
07:42 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
Unfortunately, I have no good suggestion as to how to get out of this mess. However, I want to make everyone aware that the problem is broader than is generally known. In addition to the readline extension, ruby ships with a gdbm...
coatl (caleb clausen)
05:54 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
Linked exeption is useless because:
* for openssl you can use Ruby's
* for both openssl and readline, readline's GPL2 infect Ruby
=end
naruse (Yui NARUSE)
05:32 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
I will see if that point of view works for the archive maintainers...
=end
lucas (Lucas Nussbaum)
05:29 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
When you want to link openssl, you use Ruby's.
When you want to link readline, you use GPL.
=end
naruse (Yui NARUSE)
05:08 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
But if we ship ruby under the terms of the ruby license, we are no longer allowed to link it to readline.
=end
lucas (Lucas Nussbaum)
05:04 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
You can link openssl and Ruby's Licensed Ruby.
=end
naruse (Yui NARUSE)
04:51 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
Why was this bug marked as closed?

Anyway. I asked the Debian people responsible for reviewing packages before their acceptance in the Debian archive. See http://lists.debian.org/debian-legal/2010/03/msg00037.html for the re...
lucas (Lucas Nussbaum)
05:17 AM Revision 4b6a7a46 (git): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:27 AM Revision 9ce419a4 (git): * array.c (rb_ary_uniq_bang): the array is already unique if the
length is zero or one.
(rb_ary_uniq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:36 AM Feature #1981: [PATCH] CSV Parsing Speedup
=begin
I updated the patch to against trunk. Attaching to this ticket update.

I took care to make it pass all tests, including the m17n tests in test/csv/test_encodings.rb . I have not tested it against m17n CSV files outside of th...
ender672 (Timothy Elliott)
12:32 AM Feature #1981: [PATCH] CSV Parsing Speedup
=begin
Timothy, is it possible for you to redo this patch against the current trunk, so I can look at what it would take to get it applied?

You mention that it is faster which is great. Are you also pretty confident that it mainta...
JEG2 (James Gray)
03:30 AM Revision 3657e155 (git): * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:30 AM Revision c9dd4823 (git): * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:07 AM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
=begin
Hi,

> How about overloading MatchData#values_at ?

Why do you attempt to reuse existing method? :-/
I think it is better to introduce new method like MatchData#all_values.


> >> 'haystack'.match(/(?<h>ay).+(?<h>...
mame (Yusuke Endoh)
02:32 AM Revision 772cc7a4 (git): * tool/transcode-tblgen.rb (each_firstbyte_range): tuned for less
method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:22 AM Feature #1047: request: getters, setters for the GC
=begin
Hi,

2010/3/20 Roger Pack <redmine@ruby-lang.org>:
> A little contrived still, but on my box, the things that help it improve are (believe it or not)
>
> -#define HEAP_MIN_SLOTS 10000
> +#define HEAP_MIN_SLOTS 100000
>
> ...
mame (Yusuke Endoh)
01:45 AM Feature #1047 (Assigned): request: getters, setters for the GC
=begin
Attaching demo file.
A little contrived still, but on my box, the things that help it improve are (believe it or not)

-#define HEAP_MIN_SLOTS 10000
+#define HEAP_MIN_SLOTS 100000

12.3s normal gc.c

to 10.4s

...
rogerdpack (Roger Pack)

03/19/2010

11:55 PM Feature #1800: rubygems can replace system executable files
=begin
Hi,

Eric Hodel has a duty to reply the ticket.

IMO, agreed with Run Paint. RubyGems should at least prompt.

--
Yusuke Endoh <mame@tsg.ne.jp>
=end
mame (Yusuke Endoh)
11:48 PM Feature #1082: add Object#singleton_class method
=begin
On Fri, Mar 19, 2010 at 7:20 PM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> I think that there is no one who disagree with signleton_class
> as "a short form of class << obj; self; end", except matz :-)
>
> And, I thought matz wa...
yugui (Yuki Sonoda)
07:22 PM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/3/19 Yugui <yugui@yugui.jp>:
> On Thu, Mar 18, 2010 at 3:22 PM, Shugo Maeda <shugo@ruby-lang.org> wrote:
>> I'm not sure whether it should be included in Ruby 1.9.2 or not.
>> What do you think of it, Yugui?
>
> ...
shugo (Shugo Maeda)
07:20 PM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/3/19 Yugui <yugui@yugui.jp>:
> On Thu, Mar 18, 2010 at 3:22 PM, Shugo Maeda <shugo@ruby-lang.org> wrote:
>> I'm not sure whether it should be included in Ruby 1.9.2 or not.
>> What do you think of it, Yugui?
>
> ...
mame (Yusuke Endoh)
07:01 PM Feature #1082: add Object#singleton_class method
=begin
On Thu, Mar 18, 2010 at 3:22 PM, Shugo Maeda <shugo@ruby-lang.org> wrote:
> I'm not sure whether it should be included in Ruby 1.9.2 or not.
> What do you think of it, Yugui?

You do not seem to have reached an agreement. We ...
yugui (Yuki Sonoda)
11:44 PM Feature #1374: location of already initialized constant
=begin
遠藤です。

このパッチは rb_classext_t をいじるので、private constant とともに
1.9.3 を目指しましょう。

ということで target を 1.9.x にします。

--
Yusuke Endoh <mame@tsg.ne.jp>
=end
mame (Yusuke Endoh)
11:31 PM Feature #1358: net/http has no TRACK method - here's a patch
=begin

=end
mame (Yusuke Endoh)
09:58 PM Feature #2166: Add CreationError
=begin
Hi, Hongli Lai --

Could you elaborate the background of introducing Tempfile::CreationError?
I'm not against the suggestion, but I cannot guess the rationale.

This ticket has been already left untouched in a half year...
mame (Yusuke Endoh)
09:02 PM Bug #1311: YAML::dump creates strings YAML::load cannot parse
=begin
Here's an other test case for a similar issue.

require 'yaml'

> c = File.read("yaml-error.txt")
> YAML.load(YAML.dump(c))
'rgumentError: syntax error on line 34, col 0: `--
from /Users/weppos/.rvm/ruby-1.8.7-p248/lib/r...
weppos (Simone Carletti)
08:56 PM Feature #2323: "Z".."Z".succが空
=begin

=end
mame (Yusuke Endoh)
07:02 PM Feature #1316: Phasor.rb: Complex number class using polar coordinates
=begin

=end
mame (Yusuke Endoh)
07:00 PM Feature #2117 (Closed): Binding to a class, a method from the class's superclass's metaclass, fails
=begin
Hi,

2009/9/24 Marc-Andre Lafortune <redmine@ruby-lang.org>:
> Hi!
> ? Yes, I hesitated before making the change but my reasoning was:
> - past behavior contradicted the doc & intuition (at least mine! ;-)
> - no appa...
mame (Yusuke Endoh)
06:30 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Hi,

2010/3/19 Nobuyoshi Nakada <nobu@ruby-lang.org>:
> Mike didn't seem to agree it. If he compromises with it, I'll
> commit it soon.

Regardless of whether he agrees or not :-), the feature or substitute is
actually nee...
mame (Yusuke Endoh)
02:29 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Hi,

At Thu, 18 Mar 2010 23:21:00 +0900,
Yusuke Endoh wrote in [ruby-core:28750]:
> > This is a patch to add :autoclose option to IO.for_fd and
> > IO.new.
>
> There seems to be no objection. Why don't you commit the pat...
nobu (Nobuyoshi Nakada)
04:39 PM Revision 7fde2619 (git): * test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)
may contain 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
wanabe (_ wanabe)
04:20 PM Revision 7e2fa5ad (git): * ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wanabe (_ wanabe)
04:18 PM Revision e40c43a1 (git): * test/dl/test_dl2.rb (DL::TestDL#ptr2num): add for LLP64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wanabe (_ wanabe)
04:16 PM Revision faee1b6f (git): * 2010-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:16 PM Revision c28b2b9b (git): * test/dl/test_dl2.rb: require 'dl/func' to refer DL::Function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wanabe (_ wanabe)
01:46 PM Feature #1047: request: getters, setters for the GC
=begin
On Thu, Mar 18, 2010 at 7:16 AM, Yusuke Endoh <redmine@ruby-lang.org> wrote:
> - The name `malloc_limit' is very arguable because it is too specific
>  to implementation-detail of MRI.

I really hope we would not start to see...
headius (Charles Nutter)
01:41 PM Feature #2000 (Closed): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
nobu (Nobuyoshi Nakada)
01:41 PM Feature #2982 (Closed): Ruby tries to link with both openssl and readline
=begin

=end
nobu (Nobuyoshi Nakada)
12:25 AM Feature #2982: Ruby tries to link with both openssl and readline
=begin
Right, sorry. What I meant is that third-party developers might need to worry if they distribute libraries/gems linked with OpenSSL. Now, of course, it depends on your definition of linking.

Now, IANAL, and neither are you A...
lucas (Lucas Nussbaum)
01:41 PM Feature #2032 (Closed): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
nobu (Nobuyoshi Nakada)
01:41 PM Feature #2983 (Closed): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin

=end
nobu (Nobuyoshi Nakada)
12:54 PM Revision b5388e85 (git): update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:41 PM Feature #2065: An ancestors iterator
=begin
Hi Simon,

2010/3/19 Simon Chiang <redmine@ruby-lang.org>:
> This is for 100k iterations, so no it's not a bottleneck but likewise that's not why I make this request. I make the request because it would be significantly faster...
mame (Yusuke Endoh)
05:37 AM Feature #2065: An ancestors iterator
=begin
Ok, I attached a benchmark that is designed to measure the time required for generating the ancestors array. It does so by comparing 'klass.ancestors.each' vs caching 'klass.ancestor' and iterating 'cache.each' (ie in the second ...
bahuvrihi (Simon Chiang)
01:28 AM Feature #2065 (Feedback): An ancestors iterator
=begin
Hi,

> It would be nice if there were a method that iterates ancestors without generating the ancestors array:
>
> SomeClass.each_ancestor do |ancestor|
> # ...
> end
>
> This could improve the performance...
mame (Yusuke Endoh)
08:12 AM Revision 0eb42786 (git): * ruby.h (RSTRING_*, RARRAY_*, RREGEXP_*, RSTRUCT_*, RBIGNUM_*):
ensure non-lvalue for compatibility with 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:24 AM Feature #2340: Removing YAML/Syck
=begin
We would also like to know when this is official, since we're going to
have to rewrite YAML support again.

On Thu, Mar 18, 2010 at 8:50 AM, Yui NARUSE <redmine@ruby-lang.org> wrote:
> Issue #2340 has been updated by Yui NARU...
headius (Charles Nutter)
02:13 AM Feature #2084: Method#source_location and Methods Created with `attr`
=begin
Hi,

> I wrote a patch. How about this?


+1, and I confirmed it passes make check and RubySpec.

Matz or Yugui, could you approve this?

--
Yusuke Endoh <mame@tsg.ne.jp>
=end
mame (Yusuke Endoh)
01:00 AM Feature #2691 (Rejected): RCR: allow {select, collect, map} to accept symbol argument
=begin
Hi,

This ticket got four -1s, and there is no rebuttal.
So I close this ticket.


FYI, matz stated the rationale (in Japanese). [ruby-dev:32692]
He thought that "inject with Symbol" directly expressed the
intent...
mame (Yusuke Endoh)
12:20 AM Feature #2586 (Rejected): openssl: Load root certificates on Windows
=begin
Hi,

I think this ticket was already rejected in effect.
Naruse seems to be satisfied with the decision.

So I close the ticket.

--
Yusuke Endoh <mame@tsg.ne.jp>
=end
mame (Yusuke Endoh)
12:17 AM Feature #2565: adding hooks for better tracing
=begin
Hi Yugui,

2010/1/6 Yugui <yugui@yugui.jp>:
> I made a commit that embeded dtrace probes into Ruby so that you can
> profile a Ruby application at runtime. (r26235)
>
*snip*
>
> Here is a patch to add the hooks I and ko1 ...
mame (Yusuke Endoh)
12:08 AM Feature #2984: string split with capitalize
=begin
Oh, I'm sorry...you want String#titleize: http://railsapi.com/doc/rails-v2.3.5/classes/ActiveSupport/Inflector.html#M002755
=end
murphy (Kornelius Kalnbach)
12:04 AM Feature #2984: string split with capitalize
=begin
It has: http://www.ruby-doc.org/core/classes/String.html#M000799
=end
murphy (Kornelius Kalnbach)

03/18/2010

11:58 PM Bug #2976: cucumberでSEGV
=begin
別環境でも、と思い、Ubuntu 8.04 gcc 4.2.3 (atom) で動かしてみたところ(r26974)、
100回やって100回とも問題なく動作しました。OSX 10.6では状況変わらず。
=end
sakuro (Sakuro OZAWA)
02:28 PM Bug #2976 (Assigned): cucumberでSEGV
=begin
[ruby-dev:40679] からのスレッドでした。
[ruby-dev:40452] との関係性が指摘されていますが、過去には動いていたようなので、中田さんコメントお願いできますか
=end
naruse (Yui NARUSE)
12:12 AM Bug #2976 (Closed): cucumberでSEGV
=begin
一度-devに投げましたが改めてRedmineへ。

cucumberを実行するとpolyglot-0.3.0/lib/polyglot.rb の中で高確率でSEGVになります。

$ gem install cucumber
$ mkdir features
$ cucumber

r23000 から HEAD の間で bisect っぽいことをしてみたところ、

r24687 は問題なし。
r24688-2...
sakuro (Sakuro OZAWA)
11:45 PM Feature #2360 (Rejected): hide the internal of anonymous Enumerator
=begin
遠藤です。

> - Enumerator::Generator を匿名クラスにする (ARGF のように)
> - Generator.new や Yielder.new を禁止する
> - Enumerator#inspect で Generator の存在は隠す
>
> とするパッチを書いてみました。どうでしょう。


[ruby-dev:39685] で提案している private constant で解決する...
mame (Yusuke Endoh)
11:45 PM Feature #2982: Ruby tries to link with both openssl and readline
=begin
On Thu, Mar 18, 2010 at 5:37 AM, Lucas Nussbaum
<lucas@lucas-nussbaum.net> wrote:
> On 18/03/10 at 18:23 +0900, Yukihiro Matsumoto wrote:
>> In message "Re: [ruby-core:28735] [Bug #2982] Ruby tries to link with both openssl an...
austin (Austin Ziegler)
06:37 PM Feature #2982: Ruby tries to link with both openssl and readline
=begin
On 18/03/10 at 18:23 +0900, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:28735] [Bug #2982] Ruby tries to link with both openssl and readline"
> on Thu, 18 Mar 2010 17:01:38 +0900, Lucas Nussbaum <redmi...
lucas (Lucas Nussbaum)
06:23 PM Feature #2982: Ruby tries to link with both openssl and readline
=begin
Hi,

In message "Re: [ruby-core:28735] [Bug #2982] Ruby tries to link with both openssl and readline"
on Thu, 18 Mar 2010 17:01:38 +0900, Lucas Nussbaum <redmine@ruby-lang.org> writes:

|Ruby currently tries to link with...
matz (Yukihiro Matsumoto)
05:01 PM Feature #2982 (Third Party's Issue): Ruby tries to link with both openssl and readline
=begin
Hi,

Ruby currently tries to link with both OpenSSL (which is under the SSL license), and Readline (GPL).
This is not allowed. For more information, see for example http://people.gnome.org/~markmc/openssl-and-the-gpl.html a...
lucas (Lucas Nussbaum)
11:32 PM Feature #2321 (Rejected): [PATCH] Array Module sum and mean features
=begin
Hi,

> I have created a new patch for the Array Module of Ruby. The patch adds two complementary features: A sum function, that sums the elements in an array if they are numbers; and a mean (or average) function that finds th...
mame (Yusuke Endoh)
11:25 PM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
libedit doesn't support multibyte encodings.
=end
naruse (Yui NARUSE)
05:11 PM Feature #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
See [ruby-core:25272] and Feature request #2032:

http://redmine.ruby-lang.org/issues/show/2032
=end
luislavena (Luis Lavena)
05:04 PM Feature #2983 (Third Party's Issue): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
=begin
Hi,

The readline library was relicensed under GPLv3. Since Ruby is GPLv2 only, it is not allowed to link to readline.

Most distributions currently ship both the (old) GPLv2 readline version, and the new GPLv3 readline. ...
lucas (Lucas Nussbaum)
11:21 PM Feature #2984: string split with capitalize
=begin
try string.gsub(/\w+/){$&.capitalize}

You still want another method?
=end
naruse (Yui NARUSE)
08:31 PM Feature #2984 (Rejected): string split with capitalize
=begin
It would be awesome if string had a method to perform this action:

string.split(' ').each{ |s| s.capitalize! }.to_s
=end
pedromfs (Pedro Santos)
11:20 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Hi nobu,

> This is a patch to add :autoclose option to IO.for_fd and
> IO.new.

There seems to be no objection. Why don't you commit the patch?


> Hmm, there is no one-liner function, indeed.

I agree with ...
mame (Yusuke Endoh)
11:11 PM Revision 4f74adc5 (git): add test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:50 PM Feature #2340: Removing YAML/Syck
=begin
How about this status, Aaron?

I'm ok that importing Psych is 1.9.3.
We, howerver, want to warn current Syck user about APIs which won't be available on Psych.

So please add warnings to current Syck implementation abou...
naruse (Yui NARUSE)
10:29 PM Feature #1596 (Closed): GC.time
=begin
遠藤です。

>  今まで何回 GC をやったか調べるための GC.count というのがあるのですが,
> これまでの GC にかかった時間を返す GC.time というメソッドを追加するのは
> どうでしょうか.

#2480 で GC::Profiler.total_time が導入されたので、close します。

せっかくなので何回か使ってみた経験を書いておきますと、生きている
オブジェクトが大量にある (=...
mame (Yusuke Endoh)
10:21 PM Feature #1193: Justified Error Messages
=begin
Hi,

> One nice thing about Test::Unit output is that failures are justified making string comparisons easier.

You may want to take a look at the thread from [ruby-core:18905].

Anyway, Ryan has a duty to reply this ...
mame (Yusuke Endoh)
09:54 PM Feature #1047: request: getters, setters for the GC
=begin
On 18.03.10 13:16, Yusuke Endoh wrote:
> My personal opinions:
>
> - Though I think a few rough "modes" is acceptable (e.g., -server and
> -clients of Java), such a specific parameter tuning is not Ruby way.
But it may be...
murphy (Kornelius Kalnbach)
09:16 PM Feature #1047 (Feedback): request: getters, setters for the GC
=begin
Hi,

> I've attached a patch adding getters and setters for HEAP_MIN_SLOTS and GC_MALLOC_LIMIT.


My personal opinions:

- Though I think a few rough "modes" is acceptable (e.g., -server and
-clients of Java), s...
mame (Yusuke Endoh)
08:53 PM Feature #1832: irb -w
=begin
On 18.03.10 12:22, Yusuke Endoh wrote:
>> It would be nice if either irb had a -w flag
>
> Maybe reasonable because irb has a -d flag already.
yes, please. half the time I start irb, I run into this inconsistency.

[murphy...
murphy (Kornelius Kalnbach)
08:18 PM Feature #1832: irb -w
=begin
Hi,

> It would be nice if either irb had a -w flag

Maybe reasonable because irb has a -d flag already.


diff --git a/lib/irb/init.rb b/lib/irb/init.rb
old mode 100644
new mode 100755
index f51fd1c..d428850
...
mame (Yusuke Endoh)
08:35 PM Revision 642305da (git): * 2010-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:35 PM Revision 053d89ca (git): * string.c (rb_str_sum): don't call method for each byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:48 PM Feature #2032: Change the license to "GPLv2+ or Ruby's original".
=begin

=end
naruse (Yui NARUSE)
04:24 PM Feature #2981: Array#repeated_(permutation|combination)
=begin
(from [ruby-dev:40601] )

Try to login with too short passwords.

("a".."z").to_a.repeated_permutation(5).find {|s| login(s.join) }

====

Check ruby parser with doubtful strings.

%w(( ) $ ` ' | & =).repeated_permutati...
metanest (Makoto Kishimoto)
03:40 PM Feature #2981: Array#repeated_(permutation|combination)
=begin
An example of number puzzle.

['+', '-', '*', '/', ''].repeated_permutation(8).each{|a, b, c, d, e, f, g, h|
s = "1#{a}2#{b}3#{c}4#{d}5#{e}6#{f}7#{g}8#{h}9"
n = eval s
if n == 100 then
p s
end
}
=end
metanest (Makoto Kishimoto)
03:32 PM Feature #2981: Array#repeated_(permutation|combination)
=begin
Sorry, the patch of [ruby-core:28724] has bug.

This is fixed version.

Index: array.c
===================================================================
--- array.c (revision 26970)
+++ array.c (working copy)
@@ -4047,7...
metanest (Makoto Kishimoto)
02:57 PM Feature #2981: Array#repeated_(permutation|combination)
=begin
A bit more: use cases are shown in Japanese ML (and I think they're OK), so please just translate them for non-Japanese speakers.
=end
shyouhei (Shyouhei Urabe)
02:18 PM Feature #2981: Array#repeated_(permutation|combination)
=begin
Show use case.
=end
naruse (Yui NARUSE)
12:11 PM Feature #2981 (Closed): Array#repeated_(permutation|combination)
=begin
New methods Array#repeated_(permutation|combination).

Like Array#(permutation|combination), these methods make
repeated permutation or combination.

Attachment: repeated_patch.txt
=end
metanest (Makoto Kishimoto)
03:22 PM Feature #1082: add Object#singleton_class method
=begin
Hi,

2010/3/17 Yusuke Endoh <redmine@ruby-lang.org>:
>> > Then, how about to introduce singleton_class as just a short form of
>> > class <<obj; self; end at first?
>>
>> I have attached a patch with a test.
>
>
> Any up...
shugo (Shugo Maeda)
12:24 PM Revision bd5e925c (git): * Makefile.in (miniruby): link $(NORMALMAINOBJ).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:53 AM Revision f9d64323 (git): * tool/transcode-tblgen.rb: scan singleton mappings sequentially.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:06 AM Feature #973: EncDet again
=begin
なかだです。

At Wed, 17 Mar 2010 22:46:43 +0900,
Yusuke Endoh wrote in [ruby-dev:40687]:
> 2) File.open 方式で決定する

> #2 の選択肢は実現可能性が検証されていない気がするので、「パッチを
> 書いてみたら実は難しいことがわかった → 1.9.2 見送り」という危険が
> あるかもしれません。

別に難しくはありません。

$ ...
nobu (Nobuyoshi Nakada)
06:37 AM Bug #2978 (Closed): TMP_RUBY_PREFIX sets incorrect values in gem prelude for ruby installed in $HOME
=begin
This issue was solved with changeset r26970.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
04:47 AM Bug #2978: TMP_RUBY_PREFIX sets incorrect values in gem prelude for ruby installed in $HOME
=begin
actually, the bug seems to be reintroduced (by merge conflict?) in r26895, while r26885 already had the fix:

Date: Fri Mar 12 04:56:34 2010 +0000

* tool/compile_prelude.rb: TMP_RUBY_PREFIX should replace rubylibpr...
nlugovoi (Nikolai Lugovoi)
01:58 AM Bug #2978 (Closed): TMP_RUBY_PREFIX sets incorrect values in gem prelude for ruby installed in $HOME
=begin
For ruby (r26961), built and installed with configure --prefix=$HOME, I see odd values in Gem::ConfigMap that do not allow to load installed rubygems, see sample irb session:


irb(main):001:0> Gem::ConfigMap
=> {:EXEEXT=...
nlugovoi (Nikolai Lugovoi)
04:52 AM Revision c50494d6 (git): * io.c, eval.c, process.c: add linux to r26371's condition.
patched by Motohiro KOSAKI [ruby-core:28151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:12 AM Feature #2542: URI lib should be updated to RFC 3986
Hi,
> I'll suggest to bundle Addressable and obsolete current URI lib,
> ...
This ticket seems to need much work.
I guess we can't make the deadline of spec freezing.
So I change the target to 1.9.x.
If you want 1.9.2 to include t...
mame (Yusuke Endoh)
02:00 AM Feature #2740: Extend const_missing to pass in the nesting
Hi,

Matz, do you accept Yehuda's suggestion?

Current status:

- Three persons (nobu, murphy and I) have approved.
- There is no objection.
- There is a patch written by nobu and murphy, though it has a
little bug. ...
mame (Yusuke Endoh)
01:27 AM Feature #2969 (Closed): String#to_f が -h.hhh±pd を解釈できるように
=begin
This issue was solved with changeset r26965.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
12:05 AM Revision e0250f59 (git): Add NEWS and fix ChangeLog.
* new methods:
* URI.encode_www_form
* URI.decode_www_form
* URI.encode_www_form_component
* URI.decode_www_form_component
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

03/17/2010

11:31 PM Feature #1951 (Closed): openのBOM指定拡張
mame (Yusuke Endoh)
11:30 PM Feature #2571 (Closed): 文字列のハミング距離
=begin
遠藤です。

本件は提案者の mrkn さんが一旦取り下げたようなので ([ruby-dev:40028]) 、
closed とします。

--
Yusuke Endoh <mame@tsg.ne.jp>
=end
mame (Yusuke Endoh)
11:05 PM Feature #1082: add Object#singleton_class method
=begin
Hi Shugo,

> > Then, how about to introduce singleton_class as just a short form of
> > class <<obj; self; end at first?
>
> I have attached a patch with a test.


Any update here? Why don't you commit it?
Does...
mame (Yusuke Endoh)
10:46 PM Feature #973: EncDet again
=begin
遠藤です。

EncDet の件、どうしますか?
Yugui さんが以下のような提案もしています。

> 実は当面File.openの機能拡張のみで済んでしまうのではないでしょうか。たとえば、
>
> File.open(path, "r:magic-comment")
> ないし
> File.open(path, "r:auto")
> のようにして。


さて、

1) EncDet ...
mame (Yusuke Endoh)
09:28 PM Revision 43ab7209 (git): * configure.in (RUBY_EXEC_PREFIX): added to config.h.
* ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
exec_prefix, not rubylibprefix. [ruby-core:28718]
* version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26970 b2...
nobu (Nobuyoshi Nakada)
08:58 PM Revision ad41699b (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
removed unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:56 PM Feature #2975: Kernel.warn always writes despite $VERBOSE value
=begin
On 03/17/2010 06:42 AM - Nobuyoshi Nakada
--> said: "It's a document issue."

I agree.. that there IS an existing doc issue.

But that's only a SMALL part of the issue.

Proposing:
(A) Change and adition of module...
DanRathbun (Dan Rathbun)
06:42 AM Feature #2975: Kernel.warn always writes despite $VERBOSE value
=begin
It's a document issue.

$ ruby -w0 -e 'p $VERBOSE'
true
$ ruby -W0 -e 'p $VERBOSE'
nil
=end
nobu (Nobuyoshi Nakada)
04:28 AM Feature #2975 (Closed): Kernel.warn always writes despite $VERBOSE value
=begin
Kernel.warn always writes despite $VERBOSE value

The RDoc say:
http://www.ruby-doc.org/core/classes/Kernel.html#M005921
warn(msg) => nil
Display the given message (followed by a newline) on STDERR unless warnings are ...
DanRathbun (Dan Rathbun)
07:41 PM Revision 83b8f94f (git): * parse.y (rb_intern3): get rid of type-punning cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:13 PM Bug #2192: warning in irb/context.rb
=begin
Hi,

For my part, I got a warning about "save_history=", launching irb with RUBYOPT='-w'.
It would be nice to make this warning disappear, and I would be interested how you would deal with it.

This happen with both 1.9...
Eregon (Benoit Daloze)
04:35 PM Bug #2192: warning in irb/context.rb
=begin
Hello,

I still find the same warning mentioned in this report (and some new ones):

# ruby -w -r 'irb' -ve 'p :hello'
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
/usr/lib/ruby/1.9.1/irb/context.rb:166: wa...
sunaku (Suraj Kurapati)
05:33 PM Revision d47e0b98 (git): * compile.c (iseq_build_body): add mark to jump table hash of case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
04:21 PM Revision 9eb68d7c (git): * util.c (ruby_strtod): Add support for Hexadecimal
floating-point expression [ruby-dev:40650] #2969
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:00 PM Revision 5f0be51c (git): fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:35 PM Revision c18d939f (git): * 2010-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:35 PM Revision f626a17d (git): * lib/uri/common.rb (URI#{en,de}code_www_form_component):
renamed from URI#{en,de}code_www_component. [ruby-dev:40672]
* lib/uri/common.rb (URI#encode_www_form_component): %-encoded
element should have always two hex.
* lib/uri/common.rb (URI#encode_www_form_component):
better treatment f...
naruse (Yui NARUSE)
11:55 AM Bug #2965: method `===' called on hidden T_STRING object (NotImplementedError)
=begin
String に限らず、=== が再定義されるだけで発生します。
隠しオブジェクト用のメソッドテーブルが必要なんじゃないでしょうか?

$ ruby -ve '
class Float
def ===(x)
true
end
end
case true
when ""
end'
ruby 1.9.2dev (2010-03-17 trunk 26960) [x86_64-darwin10.2...
mrkn (Kenta Murata)
07:25 AM Revision 4067fd02 (git): * hash.c (rb_hash_aset): allow recursive key. [ruby-core:24648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:19 AM Bug #2388: test-all 中に popen で ruby.exe が落ちる
=begin
村田さん
ワナベと申します。

すみません、この SEGV は今でも再現するでしょうか?
私自身も一度再現したようだったのですが、その後正常に戻ってしまい
いまいち条件が分からずじまいでした。
こちらでもなるべく再現方法を探ってみたいとは思いますがうまくいっていません。

もし再現しないようであれば、再現方法が分かるまではとりあえず
Reject にしておきたいと思うのですがいかがでしょうか。
=end
wanabe (_ wanabe)
05:39 AM Feature #1400: Please add a method to enumerate fields in OpenStruct
=begin
This can be done right now. In several ways.
# obj is an class OpenStruct with some number of members.
ary = obj.methods(false).sort -> Array of attr getters and setters
keys=[]
ary.each {|i| keys.push(i) unless i.include...
DanRathbun (Dan Rathbun)
02:51 AM Bug #1843: Symbol#inspect raises exception
=begin
2010/3/16 Yukihiro Matsumoto <matz@ruby-lang.org>:
> OK, OK.  Go ahead and check it in.

Done. Thanks!

--
Yusuke ENDOH <mame@tsg.ne.jp>

=end
mame (Yusuke Endoh)
01:27 AM Bug #1843 (Closed): Symbol#inspect raises exception
=begin
This issue was solved with changeset r26957.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
mame (Yusuke Endoh)
02:47 AM Bug #2581 (Closed): require_relative depends on current directory
=begin
This issue was solved with changeset r26959.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
mame (Yusuke Endoh)
02:28 AM Bug #2629: ConditionVariable#wait(mutex, timeout) should return whether the condition was signalled, not the waited time
=begin
Hi, Hongli Lai

2010/1/22 Hongli Lai <redmine@ruby-lang.org>:
> ? There is a background thread which performs some cleaning function every x seconds. We also want to be able to tell the thread to clean now, or to exit (i.e....
mame (Yusuke Endoh)

03/16/2010

09:40 PM Revision ae1951a0 (git): * ruby.h (rb_warning, rb_sys_warning): fixed typo in rdoc.
[ruby-core:28696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:40 PM Revision c9e0df64 (git): * ruby.h (rb_warning, rb_sys_warning): fixed typo in rdoc.
[ruby-core:28696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:48 PM Bug #1843: Symbol#inspect raises exception
=begin
Hi,

In message "Re: [ruby-core:28384] [Bug #1843] Symbol#inspect raises exception"
on Mon, 1 Mar 2010 23:58:47 +0900, Yusuke Endoh <redmine@ruby-lang.org> writes:

|Brian Candler wrote:
|> However Symbol#inspect raises...
matz (Yukihiro Matsumoto)
05:40 PM Revision 6ff75042 (git): * compile.c, iseq.c, ruby.c, vm.c, vm_core.h, vm_eval.c: add absolute
path field into rb_iseq_t. The field contains a string representing
a path to corresponding source file. or nil when the iseq is created
from -e, stdin, eval, etc. This field is used for require_relative.
[ruby-dev:40004]
* load...
mame (Yusuke Endoh)
04:26 PM Revision c4fdd64f (git): * 2010-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:26 PM Revision 4f78e7ff (git): * parse.y (rb_intern3): prohibit Symbol with an invalid encoding.
[ruby-core:24621]
* test/ruby/test_m17n_comb.rb: modify a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:29 PM Feature #2968: 数値の正負を返すメソッド
=begin
2010年3月16日15:16 KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>:
>> > > FortranやCで数値計算するときも、if (val < 目標精度) みたいな書き方で
>> > > なんとかなっているという認識。
>> > >
>> > > なので、その背景のさらにバックグラウンドがあると思うのですが、
>> > > ちょっと思い浮かびませんでした。
>> >
>> > %...
naruse (Yui NARUSE)
02:04 PM Feature #2968: 数値の正負を返すメソッド
=begin
2010年3月16日13:27 KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>:
>> 成瀬です。
>>
>> 2010年3月16日11:37 KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>:
>> >> チケット #2968 が更新されました。 (by Yui NARUSE)
>> >>
>> >>
>> >> 実数のみの想定でしたので、N...
naruse (Yui NARUSE)
12:08 PM Feature #2968: 数値の正負を返すメソッド
=begin
成瀬です。

2010年3月16日11:37 KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>:
>> チケット #2968 が更新されました。 (by Yui NARUSE)
>>
>>
>> 実数のみの想定でしたので、Numericではなく、Integer, Float, Rational 個別に定義した方が良かったかもしれません。
>>
>> > f > 0 or 1.0 / f > ...
naruse (Yui NARUSE)
10:05 AM Feature #2968: 数値の正負を返すメソッド
=begin
> > で、そもそもの動機は doubleを生成するメソッドのテストをする際に、
> > d = -0.0
> > assert_equal(0, d)
> > assert_equal(-INFINITY, 1.0/d)
> > などと書くのは冗長というのがありました。
>
> それはsignが欲しいんじゃなくて==よりもstrictな等値判定が欲しいという話では

この例に関してはそうですね。
Floa...
naruse (Yui NARUSE)
09:34 AM Feature #2968: 数値の正負を返すメソッド
=begin
Yui NARUSE さんは書きました:
> (f > 0 or 1.0 / f > 0) という趣旨かと思います。

そうです。

> で、そもそもの動機は doubleを生成するメソッドのテストをする際に、
> d = -0.0
> assert_equal(0, d)
> assert_equal(-INFINITY, 1.0/d)
> などと書くのは冗長というのがありました。

それはsignが欲しいんじゃなくて...
shyouhei (Shyouhei Urabe)
09:13 AM Feature #2968: 数値の正負を返すメソッド
=begin
(f > 0 or 1.0 / f > 0) という趣旨かと思います。

で、そもそもの動機は doubleを生成するメソッドのテストをする際に、
d = -0.0
assert_equal(0, d)
assert_equal(-INFINITY, 1.0/d)
などと書くのは冗長というのがありました。

1.0/-0.0 は VAX だとどうなんでしょうね。
=end
naruse (Yui NARUSE)
09:04 AM Feature #2968: 数値の正負を返すメソッド
=begin
むらたです。

On 2010/03/16, at 8:04, Shyouhei Urabe wrote:

> f > 0 or 1.0 / f > 0
>
> ではなんでだめなんですか?

前者では -0.0 の符号を調べられません。
かといって後者よりは negative? と書かれている方が
分かりやすい気がします。

もう一点気になることは、1.0 / -0.0 で -Infinity が得られる事が
アーキテクチャ...
mrkn (Kenta Murata)
09:04 AM Feature #2968: 数値の正負を返すメソッド
=begin
実数のみの想定でしたので、Numericではなく、Integer, Float, Rational 個別に定義した方が良かったかもしれません。

> f > 0 or 1.0 / f > 0 ではなんでだめなんですか?
workaround としてはそちらの方がよいですね、ありがとうございます。
しかし、この方法でもまだ、1ビット読めばいいものを無駄に複雑にやっていませんか。
=end
naruse (Yui NARUSE)
08:04 AM Feature #2968 (Rejected): 数値の正負を返すメソッド
=begin
f > 0 or 1.0 / f > 0

ではなんでだめなんですか?
=end
shyouhei (Shyouhei Urabe)
07:50 AM Feature #2968: 数値の正負を返すメソッド
=begin
村田です。

On 2010/03/16, at 3:38, Yui NARUSE wrote:

> 数値の正負を返すメソッドが欲しいです。
> 主たる想定用途は 0.0 と -0.0 を区別したいときです。
> これは、0.0 > -0.0 や 0.0 == -0.0 では知ることができません。
> とりあえず flo.to_s[0] == ?- で知ることができますが、これではあんまりです。
>
> 悩みどころはいつもの通りメソ...
mrkn (Kenta Murata)
03:38 AM Feature #2968 (Rejected): 数値の正負を返すメソッド
=begin
数値の正負を返すメソッドが欲しいです。
主たる想定用途は 0.0 と -0.0 を区別したいときです。
これは、0.0 > -0.0 や 0.0 == -0.0 では知ることができません。
とりあえず flo.to_s[0] == ?- で知ることができますが、これではあんまりです。

悩みどころはいつもの通りメソッド名ですが、
* Numeric#positive? と Numeric#negative?
* Numeri...
naruse (Yui NARUSE)
03:14 PM Bug #2965: method `===' called on hidden T_STRING object (NotImplementedError)
=begin
putstringのオペランドをVALUEじゃない何かにすればいいんじゃないですか?
void*, size_t, rb_encoding* のtupleとか。
=end
shyouhei (Shyouhei Urabe)
10:24 AM Bug #2965: method `===' called on hidden T_STRING object (NotImplementedError)
=begin
 ささだです.

(2010/03/16 8:21), Shyouhei Urabe wrote::
> いや、ここは小手先の修正ではなくきちんと設計されているべき所です。
> #1137の議論を読み返していただくとよいのですが、リテラルの文字列がObjectSpaceから弄れちゃうよという問題があって、
>
> 1) freezeすればいいじゃん
> 2) そもそもObjectSpaceから見えているのは根本的にまずい
>
> と...
ko1 (Koichi Sasada)
08:21 AM Bug #2965: method `===' called on hidden T_STRING object (NotImplementedError)
=begin
いや、ここは小手先の修正ではなくきちんと設計されているべき所です。
#1137の議論を読み返していただくとよいのですが、リテラルの文字列がObjectSpaceから弄れちゃうよという問題があって、

1) freezeすればいいじゃん
2) そもそもObjectSpaceから見えているのは根本的にまずい

という主張が争った結果、現在は2を採用しているのですね。したがって1に持っていくならまず「2がかっこいい」とするまつもとさんを...
shyouhei (Shyouhei Urabe)
01:52 PM Revision 0b6a0045 (git): * tool/transcode-tblgen.rb: specialize for singletom mappings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:18 AM Revision 04d90693 (git): * enc/trans/emoji.trans: added codepoints leading 0xf4 into nomap_table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
08:38 AM Revision d4120b1f (git): * ext/bigdecimal/bigdecimal.c (VpCtoV): keep e's sign.
When e doesn't over flow e * BASE_FIG but overflow e * 10,
e will overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:18 AM Revision 43025927 (git): * include/ruby/encoding.h (rb_str_conv_enc_opts): missing prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:38 AM Feature #2969: String#to_f が -h.hhh±pd を解釈できるように
=begin
村田です。

On 2010/03/16, at 4:01, Yui NARUSE wrote:

> C99 の printf には a という指定子があります。
>
(snip)
>
> この形式の利点は、複雑な浮動小数点数を比較的少ない文字数で正確に表せることと、
> 仮数部が16進であるため丸めが起きていることを説明する際に便利な点が挙げられます。
>
> で、この形式を使っているのですが、RubyのString#to...
mrkn (Kenta Murata)
04:01 AM Feature #2969 (Closed): String#to_f が -h.hhh±pd を解釈できるように
=begin
C99 の printf には a という指定子があります。

aA The argument is printed in style ‘[-h.hhh±pd]’ where there is
one digit before the hexadecimal point and the number after
is equal to the ...
naruse (Yui NARUSE)
06:57 AM Bug #2967 (Rejected): SCRIPT_LINES__ is not included in constants()
=begin
Use const_defined? which can work either on 1.8 and 1.9, and faster.
=end
nobu (Nobuyoshi Nakada)
02:45 AM Bug #2967: SCRIPT_LINES__ is not included in constants()
=begin
Using symbols works. ie Object.constants.include? :SCRIPT_LINES__. So this is not a bug. My bad.
=end
shri (Shri Borde)
02:43 AM Bug #2967 (Rejected): SCRIPT_LINES__ is not included in constants()
=begin
d:\bugs>irb
irb(main):001:0> RUBY_VERSION
=> "1.8.6"
irb(main):002:0> SCRIPT_LINES__ = {}
=> {}
irb(main):003:0> Object.constants.include? 'SCRIPT_LINES__'
=> true
irb(main):004:0> exit

d:\bugs>irb19
irb(main...
shri (Shri Borde)
06:20 AM Revision 3694f1dd (git): * ext/tmpdir: split from lib/tmpdir.rb.
* win32/win32.c (rb_w32_system_tmpdir): extracted from init_env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:48 AM Revision 724f1f4a (git): * win32/win32.c (rb_w32_getcwd): remvoed duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:06 AM Revision bf45c36d (git): * include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:03 AM Revision acd2d29f (git): * configure.in (RSHIFT): parenthesize the argument of cast instead
of the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:23 AM Revision b215b974 (git): * file.c (file_expand_path): ignore dname if it has different
drive letter or UNC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Bug #2766 (Rejected): Cannot use CSV under windows 7
=begin
I assume CSV's auto line ending detection is failing on you data for some reason. A likely cause could be fields that contain line endings different from those used to end lines. You should be able to solve this by setting the ...
JEG2 (James Gray)
12:52 AM Feature #1081: add File::write() convenience method
=begin
Hi,

2010/3/15 Suraj Kurapati <redmine@ruby-lang.org>:
> Is this issue solved? ?Or was the patch[1] removed from Ruby?

Removed. [ruby-core:28530]

I thought it is difficult (for me) to make the feature stable by the
dea...
mame (Yusuke Endoh)
 

Also available in: Atom