Activity

From 11/03/2008 to 12/02/2008

Today

03:27 AM Bug #806: Net::Protocol#rbuf_fill is slow
Net::Protocol#rbuf_fill is slow. We can take advantage of io.read_nonblock and IO.select to deal with timeouts. I've attached a patch.
Aaron Patterson
01:55 AM Bug #805: Ruby 1.9.1 preview 2 : build failure on OpenSolaris
I got the following error while building 1.9.1 preview 2 on OpenSolaris 5.11 snv_98. (1.9.1 preview 1 was built fine on OpenSolaris.) It was configured with the following: ./configure --build=x86_64-sun-solaris10 --prefix=/usr/local CFLAGS="-m...
Dae San Hwang
12:49 AM Bug #804: Ruby 1.9.1 preview 2 : make test failure
Version built on Fedora core 2 x686 with gcc 4.0.2 in a sub directory (UNIX) of the main ruby source with ./configure --prefix=/h/phil/DEV/RUBY/ruby-191pv2 --enable-shared --enable-install-doc --enable-pthread --with-mantype=man ./ruby -v =>...
Philippe Lucas

12/01/2008

11:24 PM Revision 20439: * set 1.9.1-p5000 into version number. [ruby-dev:36998]
* set 1.9.1-p5000 into version number. [ruby-dev:36998]
yugui
06:52 PM Bug #803: eval with binding
こんにちは、なかむら(う)です。 誰も教えてくれないのでbugにします。 # これでなるのかな In message "[ruby-dev:37142] eval with binding" on Nov.21,2008 22:02:04, <usa@garbagecollect.jp> wrote: > 以下の2つのコードが、1.8とtrunkで動作が異なります。 > なぜでしょう? > 私には1.8の挙動が自然に思えます。 > > # その1 > x = 0 > eval...
Usaku NAKAMURA
03:49 PM Revision 20433: * signal.c (register_sigaltstack): no need to define on non-sigaltstack platform.
* signal.c (register_sigaltstack): no need to define on non-sigaltstack platform.
usa
12:07 PM Bug #791 (Closed): Fiber using a Proc object with a parameter having default value doesn't work
Applied in changeset r20432.
Nobuyoshi Nakada
12:00 PM Revision 20432: * cont.c (rb_fiber_start): calls with exact argument number. [ruby-core:20088]
* cont.c (rb_fiber_start): calls with exact argument number. [ruby-core:20088]
nobu
11:35 AM Revision 20431: * 2008-12-01
* 2008-12-01
svn
11:35 AM Revision 20430: properties.
properties.
nobu

11/30/2008

09:42 PM Revision 20429: * man/rake.1: new manual page
* man/rake.1: new manual page
yugui
06:48 PM Revision 20428: man/goruby.1: fix typo
man/goruby.1: fix typo
yugui
06:04 PM Revision 20398: * test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace): now accepts qua...
* test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace): now accepts quantifier on anchrs agian by r20391.
yugui
02:51 AM Bug #802: IO.open optional argument to properly handle BOMs
Rejectされた[ruby-dev:37075][Feature #747]の続きです。議論の結果IO.open側でBOMを適切に処理するのがよいだろうということになったようです。 なかむら(う)さんの仕様案が[ruby-dev:37081]にあります。
Shyouhei Urabe
12:00 AM Revision 20395: * 2008-11-30
* 2008-11-30
svn
12:00 AM Revision 20394: * man/irb.1 (EXAMPLES): new section
* man/irb.1 (EXAMPLES): new section
yugui

11/29/2008

11:26 PM Revision 20392: * man/irb.1: typo fix
* man/irb.1: typo fix
yugui
07:55 PM Revision 20391: * regparse.c (is_invalid_quantifier_target): Perl and old Ruby accepts quantifi...
* regparse.c (is_invalid_quantifier_target): Perl and old Ruby accepts quantifier on anchors. [ruby-core:20161]
matz
06:37 PM Bug #801 (Closed): socket.c compile error on Mac OS X
Applied in changeset r20390.
Yukihiro Matsumoto
06:30 PM Revision 20390: * ext/socket/socket.c (sock_getaddrinfo): should have updated for Mac OS X. a ...
* ext/socket/socket.c (sock_getaddrinfo): should have updated for Mac OS X. a patch from Shumpei Akai in [ruby-dev:37234]
matz
06:25 PM Bug #801: socket.c compile error on Mac OS X
Index: ext/socket/socket.c =================================================================== --- ext/socket/socket.c (revision 20389) +++ ext/socket/socket.c (working copy) @@ -953,7 +953,7 @@ struct addrinfo *r; r = res; while (r) ...
Shumpei Akai
04:38 PM Feature #739 (Closed): Regexp#match with position
Koichi Sasada
04:28 PM Bug #681 (Closed): failures of test/minitest
Koichi Sasada
04:23 PM Bug #648 (Closed): [BUG] make test in Ruby 1.9
Koichi Sasada
04:22 PM Bug #646 (Closed): tests for miniunit have bad chemistry with other tests
Koichi Sasada
07:23 AM Bug #800 (Rejected): Problem with Array class
No, it shouldn't. It will destroy the object model of the language.
Yukihiro Matsumoto
05:39 AM Bug #800: Problem with Array class
If you test this simple program, you will see why array should be dup on assignment ... a=1 b=1 c=[a,b] def foo(x) x[0] +=1 x[1] +=1 end d = c e = d f = e foo(f) p c[0],c[1]
Francois Proulx
12:27 AM Bug #790 (Closed): Unexpected Behaviour: Fibers as superclass don
Applied in changeset r20388.
Yukihiro Matsumoto
12:23 AM Revision 20389: * 2008-11-29
* 2008-11-29
svn
12:23 AM Revision 20388: * cont.c (fiber_alloc): separate allocation and initialization. allow subclass ...
* cont.c (fiber_alloc): separate allocation and initialization. allow subclass to override #initialize. [ruby-core:20086]
matz

11/28/2008

06:55 PM Feature #735 (Closed): Date#inspect
Yukihiro Matsumoto
06:53 PM Bug #743 (Rejected): Socket.gethostbyname returns odd values
I think you have to do reverse lookup explicitly. And I couldn't merge the "fix" patch since it disables IPv6 support.
Yukihiro Matsumoto
06:49 PM Feature #747 (Rejected): /\A/u ignores BOM
BOM対応が不要とは言いませんが、正規表現で対応するのはよくないと思います。
Yukihiro Matsumoto
06:48 PM Feature #715 (Rejected): Ruby interpreter should understand UTF-8 symbols with special meaning
It's worse than you thought. Trust me. We had similar temptation to use Japanese characters in our programs. And if we did, I bet you don't use Ruby now.
Yukihiro Matsumoto
06:32 PM Revision 20387: * ext/socket/socket.c (sock_s_getaddrinfo): refactored to remove code duplicati...
* ext/socket/socket.c (sock_s_getaddrinfo): refactored to remove code duplication regarding getaddrinfo.
matz
06:00 PM Revision 20386: * ChangLog: spell miss.
* ChangLog: spell miss.
keiju
05:59 PM Revision 20385: * lib/foerwardable.rb: should be usable def_single_delegator for Class and Mod...
* lib/foerwardable.rb: should be usable def_single_delegator for Class and Module.
keiju
01:19 PM Revision 20384: * iseq.c (simple_default_value): extracts simplest default argument value. * i...
* iseq.c (simple_default_value): extracts simplest default argument value. * iseq.c (rb_iseq_parameters): returns parameter list. * proc.c (get_proc_iseq, get_method_iseq): handles ifunc and bmethod. * proc.c (rb_proc_parameters, rb_method_...
nobu
02:20 AM Revision 20383: * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimal division (inclu...
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimal division (including modulo) should raise ZeroDivisionError as integer division. [incompatible]
matz
01:01 AM Revision 20382: * 2008-11-28
* 2008-11-28
svn
01:01 AM Revision 20381: * numeric.c (flodivmod): floating point division should raise ZeroDivisionError...
* numeric.c (flodivmod): floating point division should raise ZeroDivisionError as integer division. [incompatible]
matz

11/27/2008

11:55 PM Revision 20380: * gc.c (gc_mark): still needs to check stack depth during GC. * gc.c (stack_chec...
* gc.c (gc_mark): still needs to check stack depth during GC. * gc.c (stack_check): ditto.
matz
09:43 PM Revision 20379: * strftime.c (rb_strftime): should add padding for %%.
* strftime.c (rb_strftime): should add padding for %%.
tadf
04:32 PM Revision 20375: * signal.c (register_sigaltstack): stores alt stack for debug purpose.
* signal.c (register_sigaltstack): stores alt stack for debug purpose.
nobu
04:12 PM Revision 20374: * signal.c (ruby_sigaction_t): added.
* signal.c (ruby_sigaction_t): added.
nobu
03:59 PM Revision 20373: * signal.c (ALT_STACK_SIZE): default minimum size is insufficient for method ca...
* signal.c (ALT_STACK_SIZE): default minimum size is insufficient for method calls.
nobu
03:05 PM Revision 20372: * gc.c (ruby_stack_check): no check if using sigaltstack. * signal.c (register_s...
* gc.c (ruby_stack_check): no check if using sigaltstack. * signal.c (register_sigaltstack): minimum size is insufficient for method calls. * signal.c (sigsegv): handles stack overflow if possible. * thread.c (ruby_thread_stack_overflow): hel...
nobu
10:43 AM Revision 20369: * 2008-11-27
* 2008-11-27
svn
10:43 AM Revision 20368: * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return Integer for #div...
* ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return Integer for #div operation. * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should raise ZeroDivisionError if divisor is zero. [ruby-dev:37207]
matz
07:02 AM Bug #799: cross compile 1.9.1-preview1 is not possible
Hello everybody. I tried to cross compile 1.9.1-preview1 under ubuntu. It succeeded with 1.8.6-p287 and p114 but failed with 1.9. Used the following compile flags: <pre><code>--host=i586-mingw32msvc --target=i386-mingw32 --build=i686-linux ...
Luis Lavena

11/26/2008

11:30 PM Revision 20367: * strftime.c (STRFTIME): use rb_strftime() recursively, instead of platform's s...
* strftime.c (STRFTIME): use rb_strftime() recursively, instead of platform's strftime().
matz
11:04 PM Revision 20366: * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zero division should ra...
* ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zero division should raise FloatDomainError if mode VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204] * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle VP_EXCEPTION_ZERODI...
matz
10:41 PM Revision 20365: add comment and test.
add comment and test.
akr
03:39 PM Revision 20364: * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
* ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
kazu
03:51 AM Bug #797 (Closed): bug or feature: local method ?
Yukihiro Matsumoto
03:44 AM Bug #796 (Closed): dynamic constant assignment
Yukihiro Matsumoto
03:25 AM Bug #797: bug or feature: local method ?
It's possible to create a method inside a method. I've never see any mention of this in any documentation. It's a feature that is officially part the spec of the language or it's a bug ?
Francois Proulx
03:23 AM Bug #793 (Closed): BigDecimal('Infinity').to_r が零になる
fixed by r20360.
Yukihiro Matsumoto
03:22 AM Bug #786 (Closed): Time#strftime で %s が負である場合に桁を間違える
fixed by r20352.
Yukihiro Matsumoto
03:19 AM Revision 20360: * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception for nan/inf co...
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception for nan/inf conversion. [ruby-dev:37187] fix #793 * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): ditto.
matz
03:09 AM Bug #796: dynamic constant assignment
I understand the difference in the use of variable and constant. But sometime you need to be able to assigned a value dynamiquely when you are initializing your application. I see 2 possibility to address the problem: - a interpreter's directiv...
Francois Proulx
03:08 AM Bug #794 (Closed): BigDecimal が Segmentation fault で落ることがある
Applied in changeset r20359.
Yukihiro Matsumoto
03:02 AM Revision 20359: * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid segmentation...
* ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid segmentation fault caused by (insanely) long decimal values. [ruby-dev:37189] fix #794 * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i, BigDecimal_to_f, BigD...
matz
12:37 AM Bug #792 (Closed): Time#strftime の %[xXrR] などで幅指定が効かない
Applied in changeset r20357.
Yukihiro Matsumoto
12:28 AM Revision 20358: * 2008-11-26
* 2008-11-26
svn
12:28 AM Revision 20357: * strftime.c (STRFTIME): should add padding for %[xXrR] etc. [ruby-dev:37185] f...
* strftime.c (STRFTIME): should add padding for %[xXrR] etc. [ruby-dev:37185] fix: #792
matz
12:00 AM Bug #794: BigDecimal が Segmentation fault で落ることがある
$ ./ruby -r bigdecimal -e 'BigDecimal("1"*10000000)' -e:1: [BUG] Segmentation fault ruby 1.9.0 (2008-11-25 revision 20353) [i686-linux] -- control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :BigDecimal c:0003 p:00...
tadayoshi funaba

11/25/2008

11:31 PM Bug #793: BigDecimal('Infinity').to_r が零になる
$ ./ruby -rbigdecimal -e "p BigDecimal('Infinity').to_r" (0/1) 1.8 でも同じです。 $ ruby18 -rbigdecimal -rbigdecimal/util -rrational -e "p BigDecimal('Infinity').to_r" Rational(0, 1) 以前、訊ねたと思うのですが、to_i が nil になるのも問題があると思います。 $ ./ruby -rbigd...
tadayoshi funaba
11:29 PM Revision 20356: * array.c (rb_ary_times): taint (and untrust) status should be inherited by "ar...
* array.c (rb_ary_times): taint (and untrust) status should be inherited by "ary * 0". [ruby-dev:37024]
matz
11:27 PM Bug #787 (Closed): Time#strftime で %i は "%i" になるのに、%[EO-_] などは "%" に置換される
Applied in changeset r20355.
Yukihiro Matsumoto
11:24 PM Revision 20355: * strftime.c (rb_strftime): should not swallow incomplete formatter, e.g. "%E"....
* strftime.c (rb_strftime): should not swallow incomplete formatter, e.g. "%E". [ruby-dev:37170] fix: #787 * strftime.c (rb_strftime): clear flags before processing unknown formatter, e.g. "%i". [ruby-dev:37180]
matz
11:21 PM Bug #792: Time#strftime の %[xXrR] などで幅指定が効かない
$ ./ruby -e "p Time.now.strftime('%30x')" "11/25/08" $ ruby18 -e "p Time.now.strftime('%30x')" " 11/25/08"
tadayoshi funaba
06:32 PM Bug #791: Fiber using a Proc object with a parameter having default value doesn't work
If you pass a Proc with a default value on a parameter into a Fiber, the default value is ignored. Example by Wolfgang Nádasi-Donner: irb(main):001:0> p = ->(i=4){i+5} => #<Proc:0xe8a370@(irb):1 (lambda)> irb(main):002:0> p[] => 9 irb(ma...
Florian Gilcher
06:27 PM Bug #790: Unexpected Behaviour: Fibers as superclass don
This is possibly just undocumented and intended behaviour:
Florian Gilcher
01:42 PM Revision 20353: * strftime.c (rb_strftime): "%^P" should convert to upper case. [ruby-dev:37180]
* strftime.c (rb_strftime): "%^P" should convert to upper case. [ruby-dev:37180]
matz
09:24 AM Revision 20352: * strftime.c (FMT): use "%0d" formatter for zero padding, not "%.d". [ruby-dev:...
* strftime.c (FMT): use "%0d" formatter for zero padding, not "%.d". [ruby-dev:37168] fix: #768 * strftime.c (rb_strftime): %s to use zero padding by default. [ruby-dev:37180]
matz
03:49 AM Revision 20349: * ext/tk/lib/tkextlib/blt/tabset.rb, ext/tk/lib/tkextlib/blt/tabnotebook.rb: f...
* ext/tk/lib/tkextlib/blt/tabset.rb, ext/tk/lib/tkextlib/blt/tabnotebook.rb: fix many bugs. Now, those work properly.
nagai
03:41 AM Bug #781 (Closed): Numeric#step で step として Infinity をつかうと NaN を生成することがある
fixed by r20348.
Yukihiro Matsumoto
03:40 AM Revision 20348: * numeric.c (num_step): treat infinite step specially. [ruby-dev:37157] fix: #781.
* numeric.c (num_step): treat infinite step specially. [ruby-dev:37157] fix: #781.
matz
02:38 AM Bug #779 (Closed): Time#strftime が正しく機能しない
fixed by r20338.
Yukihiro Matsumoto
02:37 AM Bug #780 (Closed): Time#strftime で、フラグ 0 が幅と解釈される
fixed by r20338.
Yukihiro Matsumoto
02:34 AM Bug #785 (Closed): Time#strftime で %#[ABabh] などが期待する結果にならない
fixed by r20342.
Yukihiro Matsumoto
02:33 AM Bug #784 (Closed): Time#strftime で %t、%n について幅指定が無効になる
fixed by r20340.
Yukihiro Matsumoto
01:26 AM Revision 20347: * lib/date/format.rb (strftime): ignores '_' flag for %[LN].
* lib/date/format.rb (strftime): ignores '_' flag for %[LN].
tadf
12:29 AM Bug #787: Time#strftime で %i は "%i" になるのに、%[EO-_] などは "%" に置換される
$ ./ruby -e "p Time.now.strftime('%i')" "%i" $ ./ruby -e "p Time.now.strftime('%E')" "%" $ ./ruby -e "p Time.now.strftime('%-')" "%" 一般には、まったく置換されないか、存在しないパターンでは "" に置き 換えられることが多いように思います。
tadayoshi funaba
12:08 AM Revision 20346: * process.c (rb_fork): stops the timer thread during fork. [ruby-dev:37117] * ...
* process.c (rb_fork): stops the timer thread during fork. [ruby-dev:37117] * thread.c (rb_thread_start_timer_thread): timer thread needs system_working to be set.
nobu

11/24/2008

11:51 PM Bug #786: Time#strftime で %s が負である場合に桁を間違える
$ ./ruby -e "p Time.at(-1).strftime('[%03s]')" "[-001]" ちなみにうちの環境だと glibc がボロボロのよう。 $ ruby18 -e "p Time.at(-1).strftime('[%05s]')" "[000-1]" $ ruby18 -e "p Time.at(-1).strftime('[%05z]')" "[0000+00900]" なお、%s が桁を補う場合のデフォルトが 0 なのか空白な...
tadayoshi funaba
11:29 PM Revision 20342: * strftime.c (rb_strftime): The # flag should work with %a, %A, %b, %B, and %h....
* strftime.c (rb_strftime): The # flag should work with %a, %A, %b, %B, and %h. [ruby-dev:37162] * test/ruby/test_time.rb (test_strftime): ditto.
shugo
11:27 PM Bug #782 (Closed): 余分な外部シンボル
Applied in changeset r20341.
Yukihiro Matsumoto
11:25 PM Revision 20341: * signal.c (register_sigaltstack): should not add external variable (with some ...
* signal.c (register_sigaltstack): should not add external variable (with some cosmetic changes). [ruby-dev:37158]
matz
11:01 PM Revision 20340: * strftime.c (rb_strftime): A width specifier for %t and %n should work. [ruby...
* strftime.c (rb_strftime): A width specifier for %t and %n should work. [ruby-dev:37160] * test/ruby/test_time.rb (test_strftime): ditto.
shugo
10:24 PM Bug #785: Time#strftime で %#[ABabh] などが期待する結果にならない
$ ./ruby -e "p Time.now.strftime('[%#A]')" "[Monday]" $ ruby18 -e "p Time.now.strftime('[%#A]')" "[MONDAY]"
tadayoshi funaba
10:10 PM Revision 20339: * strftime.c (rb_strftime): The precision of %0N should be 9. [ruby-dev:37156]
* strftime.c (rb_strftime): The precision of %0N should be 9. [ruby-dev:37156]
shugo
09:49 PM Bug #784: Time#strftime で %t、%n について幅指定が無効になる
$ ./ruby -e "p Time.now.strftime('[%010t]')" "[\t]" $ ./ruby -e "p Time.now.strftime('[%010n]')" "[\n]" $ ruby18 -e "p Time.now.strftime('[%010t]')" "[000000000\t]" $ ruby18 -e "p Time.now.strftime('[%010n]')" "[000000000\n]"
tadayoshi funaba
09:42 PM Revision 20338: * strftime.c (rb_strftime): The default precision should be 1, not 0. [ruby-de...
* strftime.c (rb_strftime): The default precision should be 1, not 0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto.
shugo
09:19 PM Bug #782: 余分な外部シンボル
無意味に外部シンボルを増やさないでください。 Index: signal.c =================================================================== --- signal.c (revision 20337) +++ signal.c (working copy) @@ -49,7 +49,6 @@ #if defined(SIGSEGV) && defined(HAVE_SIGALTSTA...
Tadashi Saito
09:00 PM Bug #781: Numeric#step で step として Infinity をつかうと NaN を生成することがある
1.0/0 = Infinity として $ ./ruby -ve "0.step(10,1.0/0){|x| p x}" ruby 1.9.0 (2008-11-24 revision 20336) [i686-linux] NaN 1.8 も同じですが、1.6 はなりません。 $ ruby168 -ve "0.step(10,1.0/0){|x| p x}" ruby 1.6.8 (2002-12-24) [i686-linux] 0
tadayoshi funaba
08:25 PM Bug #780: Time#strftime で、フラグ 0 が幅と解釈される
$ ./ruby -e "p Time.mktime(1970,1,1).strftime('%0N')" "" %0N、%0L が幅が零の文字列を作り出します。しかし、0 は一貫し てフラグとして解釈されるべきだと思います。
tadayoshi funaba
08:14 PM Bug #779: Time#strftime が正しく機能しない
以下のように、%w の結果が得られない事があるようです。 $ ./ruby -e "p Time.mktime(1970,1,18).strftime('%Y %U %w')" "1970 03 " 0 である場合におかしいのかもしれません。 $ ./ruby -e "p Time.mktime(1970,1,17).strftime('%Y %U %w')" "1970 02 6" $ ./ruby -e "p Time.mktime(1970,1,19).str...
tadayoshi funaba
07:55 PM Revision 20337: * lib/date.rb (inspect): changed again.
* lib/date.rb (inspect): changed again.
tadf
06:38 PM Revision 20336: * 2008-11-24
* 2008-11-24
svn
06:38 PM Revision 20335: * lib/time.rb: r20251 reverted. The patched behavior do not round trip. [ruby...
* lib/time.rb: r20251 reverted. The patched behavior do not round trip. [ruby-core:19988]
matz
06:32 PM Bug #731 (Closed): Net::HTTPHeader []= method does not work as expected
we cannot reproduce the problem on the latest.
Yukihiro Matsumoto
06:29 PM Bug #702 (Closed): 1+1+1+...+1 dumps core
fixed by r20293 (on linux).
Yukihiro Matsumoto

11/23/2008

04:07 PM Revision 20334: * signal.c (default_handler, Init_signal): compile error if USE_SIGALTSTACK is ...
* signal.c (default_handler, Init_signal): compile error if USE_SIGALTSTACK is not defined.
yugui
01:27 PM Bug #775 (Closed): trunk build fails on Mac OS X 10.5.5
Applied in changeset r20331.
Yuki Sonoda
01:17 PM Revision 20332: * 2008-11-23
* 2008-11-23
svn
01:17 PM Revision 20331: * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X. Uses SIGSTKSZ. thi...
* signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X. Uses SIGSTKSZ. this fixes [ruby-core:20040].
yugui
12:18 PM Bug #776: File#flush doesn't flush in windows
In windows, File#flush flushes ruby's internal buffers, however, the result is different from Linux. I'd recommend adding an arbitrary fsync if you're in windows to ensure the buffers are actually flushed, to avoid unexpected cross platform bugs ...
Roger Pack
10:02 AM Bug #775: trunk build fails on Mac OS X 10.5.5
I have trunk r20317 checked out on a Mac OS X 10.5.5 Intel Core 2 Duo system and have the following error compiling: [matzruby.git (trunk)]$ autoconf && ./configure --prefix=/Users/stephen/dev/ruby/builds/mri/trunk [matzruby.git (trunk)]$ mak...
Stephen Bannasch

11/22/2008

11:41 PM Revision 20317: * test/ruby/test_method.rb (TestMethod#test_default_accessibility): fixed a wro...
* test/ruby/test_method.rb (TestMethod#test_default_accessibility): fixed a wrong expectation in the test case.
yugui
09:36 PM Revision 20316: merges r20309 from ruby_1_9_1 to trunk. * test/cgi/test_cgi_session.rb (setup, te...
merges r20309 from ruby_1_9_1 to trunk. * test/cgi/test_cgi_session.rb (setup, teardown): uses a temporary directory for testing session stores.
yugui
09:34 PM Revision 20315: * test/ruby/test_method.rb (test_default_accessiblity): test case for [ruby-dev...
* test/ruby/test_method.rb (test_default_accessiblity): test case for [ruby-dev:37124].
yugui
06:28 PM Revision 20304: * file.c (rb_file_world_writable_p): should return nil for non world-writable f...
* file.c (rb_file_world_writable_p): should return nil for non world-writable files.
matz
10:43 AM Revision 20303: * ext/tk/lib/tkextlib/version.rb, ext/tk/ChangeLog.tkextlib: update.
* ext/tk/lib/tkextlib/version.rb, ext/tk/ChangeLog.tkextlib: update.
nagai
10:37 AM Revision 20299: * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb: fix NameError...
* ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb: fix NameError bug.
nagai
03:47 AM Bug #694 (Closed): eof? call on a pty IO object causes application to exit
Applied in changeset r20298.
Yukihiro Matsumoto
03:45 AM Revision 20298: * ext/pty/pty.c (get_device_once): abandon asynchronous exception that might ca...
* ext/pty/pty.c (get_device_once): abandon asynchronous exception that might cause serious problem if a program terminated early. asynchronous exception is a very bad thing anyway. use Process.waitpid(pid) or PTY.check(pid) to poll program ...
matz
03:35 AM Revision 20297: address tweaked
address tweaked
matz
03:35 AM Revision 20296: * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. a patch from Gi...
* ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. a patch from Giancarlo F Bellido <support@coaxialhost.com> in [ruby-core:19961].
matz
03:34 AM Revision 20295: * ruby.c (usage): -W description updated. [ruby-core:19858]
* ruby.c (usage): -W description updated. [ruby-core:19858]
matz
03:27 AM Revision 20294: * 2008-11-22
* 2008-11-22
svn
03:27 AM Revision 20293: * signal.c (register_sigaltstack): use alternative stack for SIGSEGV to avoid u...
* signal.c (register_sigaltstack): use alternative stack for SIGSEGV to avoid uncaught stack overflow. based on a patch from Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134]. [ruby-dev:36993]
matz

11/21/2008

08:46 PM Revision 20292: * 2008-11-21
* 2008-11-21
svn
08:46 PM Revision 20291: * vm.c (thread_free): th->vm may be NULL when pthread_create failed for ENOMEM....
* vm.c (thread_free): th->vm may be NULL when pthread_create failed for ENOMEM. [ruby-dev:37095]
matz
09:33 AM Bug #771: test/unit wrapper breaks compatibility
The test/unit wrapper breaks libraries that add behavior to Test::Unit::TestCase. You can't require 'test/unit/testcase' because it doesn't exist. But you can't require 'test/unit' because it autoruns tests. The patch brings back test/unit/t...
Jeremy Kemper
08:57 AM Bug #770: assert_match should escape string argument
String expectation for assert_match should be matched literally, not as a regexp. test/unit: assert_match '.', 'a' #=> fails minitest: assert_match '.', 'a' #=> passes Index: lib/minitest/unit.rb ==========================================...
Jeremy Kemper
08:18 AM Feature #767: Module#const_getでネストした定数の値を得られてもよいと思う
Object#const_getでネストした定数を得られてもいいと思うのですが、どうでしょうか? def my_const_get(name) name.split(/::/).inject(Object){|o,c| o.const_get(c) } end my_const_get "File::Stat" # => File::Stat Object.const_get "File::Stat" rescue $! # => #<NameError: wrong ...
rubikitch .

11/20/2008

07:37 AM Bug #764 (Closed): Undefined method `chomp` while requiring logger.rb
Applied in changeset r20290.
Yukihiro Matsumoto
07:37 AM Bug #765 (Closed): Mismatched indentation warning in minitest/unit.rb
Applied in changeset r20288.
Yukihiro Matsumoto
07:35 AM Revision 20290: * lib/logger.rb (Logger): should handle the case that cvs/svn do not expand $Id...
* lib/logger.rb (Logger): should handle the case that cvs/svn do not expand $Id keyword. [ruby-core:19991]
matz
07:28 AM Revision 20289: * 2008-11-20
* 2008-11-20
svn
07:28 AM Revision 20288: * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust indentation to...
* lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust indentation to shut up warning. [ruby-core:19993]
matz
02:52 AM Bug #765: Mismatched indentation warning in minitest/unit.rb
[pbrannan@zem pbrannan]$ ruby1.9 -w -r'minitest/unit' -e '' /usr/local/lib/ruby1.9/1.9.0/minitest/unit.rb:207: warning: mismatched indentations at 'end' with 'def' at 194
Paul Brannan
02:36 AM Bug #764: Undefined method `chomp` while requiring logger.rb
[pbrannan@zem test]$ ruby1.9 -rlogger -e '' /usr/local/lib/ruby1.9/1.9.0/logger.rb:185:in `<class:Logger>': undefined method `chomp' for nil:NilClass (NoMethodError) from /usr/local/lib/ruby1.9/1.9.0/logger.rb:182:in `<top (required)>' ...
Paul Brannan
01:49 AM Bug #763: Mini-unit should not auto-run tests when exiting due to an exception
[pbrannan@zem tmp]$ cat test.rb require 'test/unit' class MyTest < Test::Unit::TestCase def test_foo assert false, "this function should never get called" end end # Calling raise here should exit the application without running ...
Paul Brannan

11/19/2008

05:49 PM Revision 20286: * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value out of range...
* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value out of range of Time. [ruby-core:19919]
matz
02:17 PM Bug #762 (Closed): module_functionがpublicになっている
Applied in changeset r20285.
Yukihiro Matsumoto
02:15 PM Revision 20285: * node.h (NOEX_MODFUNC): should be include NOEX_PRIVATE. [ruby-dev:37124]
* node.h (NOEX_MODFUNC): should be include NOEX_PRIVATE. [ruby-dev:37124]
matz
09:29 AM Revision 20281: * ChangeLog: fixed date format.
* ChangeLog: fixed date format.
nobu
09:06 AM Revision 20280: * vm_exec.h (RUBY_VM_EXEC_H): fixed include guard.
* vm_exec.h (RUBY_VM_EXEC_H): fixed include guard.
nobu
08:52 AM Bug #762: module_functionがpublicになっている
module_functionがいつのまにかpublicになっています。 = ruby19 result RUBY_VERSION # => "1.9.0" module Baz module_function def double(x) x*2 end public_instance_methods # => [:double] private_instance_methods # => [] end = ru...
rubikitch .
03:18 AM Revision 20278: ChangeLog: correct file name
ChangeLog: correct file name
seki
03:05 AM Revision 20276: fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h.
fixed fails occasionally [ruby-dev:37119]. thanks, shinichiro.h.
seki
02:39 AM Revision 20275: * error.c (Init_syserr): moved function definition itself from template/known_e...
* error.c (Init_syserr): moved function definition itself from template/known_errors.inc.tmpl.
nobu
01:27 AM Feature #758 (Closed): speed up continuation in 1.9
Applied in changeset r20256.
Yusuke Endoh
01:24 AM Revision 20257: fixed NoMethodError problem from NaHi [ruby-dev:37110].
fixed NoMethodError problem from NaHi [ruby-dev:37110].
seki
01:19 AM Revision 20256: * cont.c (cont_mark, cont_capture, cont_restore_1): speed up continuation by co...
* cont.c (cont_mark, cont_capture, cont_restore_1): speed up continuation by copying only valid YARV stack. [ruby-dev:37106]
mame
12:26 AM Bug #731 (Feedback): Net::HTTPHeader []= method does not work as expected
Which version are you using? I cannot reproduce the problem.
Yukihiro Matsumoto
12:17 AM Bug #691 (Closed): Time::zone_utc? does not follow rfc2822
Applied in changeset r20251.
Yukihiro Matsumoto
12:14 AM Bug #726 (Closed): erb references $KCOD
fixed by r20240
Yukihiro Matsumoto
12:12 AM Revision 20252: * 2008-11-19
* 2008-11-19
svn
12:12 AM Revision 20251: * lib/time.rb: according to RFC2822, -0000 means local time, +0000 means UTC. ...
* lib/time.rb: according to RFC2822, -0000 means local time, +0000 means UTC. a patch from Chun Wang. [ruby-core:19578]
matz

11/18/2008

11:37 PM Bug #756 (Closed): lambda{} != lambda {}
Applied in changeset r20250.
Yukihiro Matsumoto
11:32 PM Bug #699 (Closed): removing Exception#initialize dumps core
これについては修正しないことにします
Yukihiro Matsumoto
11:31 PM Revision 20250: * proc.c (proc_eq): equivalence check should not done by pointer comparison, bu...
* proc.c (proc_eq): equivalence check should not done by pointer comparison, but should be based on iseq contents. [ruby-dev:37101]
matz
10:40 PM Bug #750 (Rejected): Pathname.[]
Yukihiro Matsumoto
10:39 PM Bug #668 (Closed): BigDecimal#to_r がありません
fixed by r20191
Yukihiro Matsumoto
09:56 PM Bug #736 (Closed): Range#include? が遅い
Yukihiro Matsumoto
09:29 PM Revision 20249: * lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete. a patch from ...
* lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete. a patch from Alan Johnson <alan.wayne.johnson at gmail.com> in [ruby-core:19982].
matz
04:32 PM Revision 20247: * lib/logger.rb (ProgName): fixed typo.
* lib/logger.rb (ProgName): fixed typo.
nobu
04:27 PM Bug #759 (Closed): Logger::ProgName should be svn-friendly
Applied in changeset r20245.
Nobuyoshi Nakada
04:18 PM Revision 20245: * lib/logger.rb (ProgName): fixed for svn, based on a patch from Nobuhiro IMAI ...
* lib/logger.rb (ProgName): fixed for svn, based on a patch from Nobuhiro IMAI at [ruby-dev:37108].
nobu
03:58 PM Revision 20244: * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line): use pos...
* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line): use possessive match for path retrieval to avoid huge recursion for insanely long path.
matz
03:51 PM Revision 20243: * re.c (rb_reg_desc): re might be NULL. * regerror.c (onig_error_code_to_format)...
* re.c (rb_reg_desc): re might be NULL. * regerror.c (onig_error_code_to_format): message updated.
matz
11:18 AM Bug #759: Logger::ProgName should be svn-friendly
logger.rb がログファイルの先頭に付けるヘッダですが、 CVS のころの名残りで、プログラム名が / になっているようです。 いつまで Subversion を利用するかは定かではありませんが、 とりあえずテストも書いてみました。
Nobuhiro IMAI
09:42 AM Revision 20242: * lib/optparse.rb (OptionParser::make_switch): makes default conversion to spla...
* lib/optparse.rb (OptionParser::make_switch): makes default conversion to splat. [ruby-list:45645]
nobu
12:48 AM Feature #758: speed up continuation in 1.9
遠藤です。 1.9 の継続は 1.8 に比べて極端に遅いようです。 $ time ruby18 -e 'i = 0; callcc {|c| $c = c }; i += 1; $c.call if i < 1000000' real 0m1.060s user 0m1.050s sys 0m0.010s $ time ruby19 -rcontinuation -e 'i = 0; callcc {|c| $c = c }; i += 1; $c.call i...
Yusuke Endoh

11/17/2008

06:05 PM Revision 20241: * enc/depend (LIBS): fixed for disable-shared. [ruby-dev:37103]
* enc/depend (LIBS): fixed for disable-shared. [ruby-dev:37103]
nobu
11:14 AM Revision 20240: remove -K option.
remove -K option.
seki
02:19 AM Revision 20239: * configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
* configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
nobu

11/16/2008

09:22 AM Bug #756: lambda{} != lambda {}
いつのまにかlambda {} == lambda {}でなくなったようです。 % ruby -ve 'p lambda{} == lambda {}' ruby 1.9.1 (2008-11-14 revision 20234) [x86_64-linux] false 1.8では成り立っていたのですが。 % ruby -ve 'p lambda{} == lambda {}' ruby 1.8.7 (2008-11...
Shyouhei Urabe
04:41 AM Bug #755: select in windows errantly accepts too many fd's
see the example for windows at http://redmine.ruby-lang.org/issues/show/670 http://redmine.ruby-lang.org/issues/show/721 is also related. Thanks! -=R
Roger Pack

11/15/2008

10:47 PM Bug #754 (Closed): String#subの第二引数が正しくマルチバイト文字列を処理していない
Applied in changeset r20237.
Nobuyoshi Nakada
10:46 PM Revision 20237: * re.c (rb_reg_regsub): returns -1 unless ascii as well as rb_enc_ascget(). [r...
* re.c (rb_reg_regsub): returns -1 unless ascii as well as rb_enc_ascget(). [ruby-dev:37097]
nobu
10:39 PM Bug #754: String#subの第二引数が正しくマルチバイト文字列を処理していない
String#subの第二引数が正しくマルチバイト文字列を処理していない >ruby19 -Ks -ve "puts 'test'.sub(/test/,'表0')" ruby 1.9.1 (2008-10-28 revision 19983) [i386-mingw32] 付est >ruby19 -Kn -e "puts 'test'.sub(/test/,%!\x95\x5c0!.force_encoding('SJIS'))" 付est cf. http:/...
Nobuyoshi Nakada
10:24 PM Revision 20236: * configure.in (LDSHARED): do not suppress debug info if higher debug level is ...
* configure.in (LDSHARED): do not suppress debug info if higher debug level is given, on cygwin and mingw.
nobu

11/14/2008

08:31 PM Revision 20235: * 2008-11-14
* 2008-11-14
svn
08:31 PM Revision 20233: * README.EXT, README.EXT.ja, vm_exec.c, vm_insnhelper.c: update filenames.
* README.EXT, README.EXT.ja, vm_exec.c, vm_insnhelper.c: update filenames.
mame

11/13/2008

07:30 PM Bug #751: Regexp.new(dummy_encoding_string)
http://mono.kmc.gr.jp/~yhara/d/?date=20081101#p03 のようなことが起きるので、dummy encodingの文字列で Regexp.newしたときは例外になった方が良いのではないでしょうか?
Kazuhiro NISHIYAMA
11:31 AM Revision 20230: * thread.c (rb_barrier_wait): gets rid of recursive deadlock.
* thread.c (rb_barrier_wait): gets rid of recursive deadlock.
nobu
06:08 AM Revision 20229: * thread.c (rb_barrier_{new,wait,release,destroy}): use Mutex so that circular ...
* thread.c (rb_barrier_{new,wait,release,destroy}): use Mutex so that circular requires fail with deadlock. [ruby-core:19821]
nobu
05:02 AM Bug #750: Pathname.[]
Dir.globとDir.[]とPathname.globが定義されているのに、なぜかPathname.[]が定義されていません。 なにか意図があるのでしょうか?
rubikitch .
03:01 AM Feature #749: String#indent, String#tabto, etc.
There are few indention related String extensions I find myself frequently reusing. Ruby really has nothing built-in that addresses this, so I'd like to the following methods, or something like them, ultimately make it into Ruby core. # Prese...
Thomas Sawyer

11/12/2008

05:52 PM Feature #747: /\A/u ignores BOM
/\A/uがBOMにヒットしないのが嬉しくないです。普通、BOMはあるとすれば文字列の先頭に付いていることが多いので、/\A/uがBOMにヒットするのが自然だと思います。 あるいは/\Z/と/\z/のようにBOMにヒットする/\a/としない/\A/とかあってもいいかもしれませんが、いずれにせよBOMを適切に先頭とみなしてくれるメタキャラクタを希望します。でないと毎回 /\A(\xEF\xBB\xBF)?/uとか書かないといけなくなって非常に面倒です。 % ~/target/b...
Shyouhei Urabe
07:18 AM Revision 20227: ruby.c (set_internal_encoding_once): fix typo in error string
ruby.c (set_internal_encoding_once): fix typo in error string
davidflanagan
05:24 AM Bug #743: Socket.gethostbyname returns odd values
from http://rubyforge.org/tracker/index.php?func=detail&aid=14979&group_id=426&atid=1698 ruby -rsocket -e 'p Socket.gethostbyname("127.0.0.1")' should return something like ["localhost", [], 2, "\177\000\000\001"] (it does with ruby 1.8.2 (...
Roger Pack
03:31 AM Revision 20224: * include/ruby/intern.h (rb_{external,locale}_str_new_cstr): optimized versions...
* include/ruby/intern.h (rb_{external,locale}_str_new_cstr): optimized versions for literal strings.
nobu
03:28 AM Revision 20223: * load.c (rb_require_safe): destroys barrier after successfully loaded, to get ...
* load.c (rb_require_safe): destroys barrier after successfully loaded, to get rid of loading same library again. [ruby-core:19798] * thread.c (rb_barrier_wait): can not wait destroyed barrier. * thread.c (rb_barrier_destroy): destroys barrie...
nobu
02:47 AM Bug #741 (Closed): 1.9.1-preview1 uri/generic.rb #check_path L484 bug/typo
Applied in changeset r20222.
Yukihiro Matsumoto
02:39 AM Revision 20222: * lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a symbol. [rub...
* lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a symbol. [ruby-core:19805]
matz
12:09 AM Revision 20216: * 2008-11-12
* 2008-11-12
svn
12:09 AM Revision 20215: * lib/rubygems/timer.rb: removed svn:executable. * lib/rubygems/validator.rb: dit...
* lib/rubygems/timer.rb: removed svn:executable. * lib/rubygems/validator.rb: ditto * test/cgi/test_cgi_modruby.rb: ditto * test/cgi/test_cgi_multipart.rb: ditto * test/cgi/test_cgi_session.rb: ditto: ditto * test/cgi/testdata/file1.html: ditto * ...
yugui

11/11/2008

11:14 PM Revision 20212: * man/ruby.1 (RUBYOPT): wrote which option can appear. (--yydebug): wrote "do n...
* man/ruby.1 (RUBYOPT): wrote which option can appear. (--yydebug): wrote "do not use". (--dump): wrote "do not use".
yugui
09:47 PM Bug #742: 1.9.1-preview1 build fails on Mac OS X 10.4
Using the configure options {{{--enable-shared --enable-pthread --without-tk}}} on OS X 10.4.11, build fails. This is the tail of the make output: {{{ cc -dynamic -bundle -undefined suppress -flat_namespace -o ../../../../.ext/i386-darwin8...
Florian Ebeling
08:50 PM Revision 20210: * configure.in: fix SEGV on Mac OS X 10.5.3 with pthread. a patch from Wataru K...
* configure.in: fix SEGV on Mac OS X 10.5.3 with pthread. a patch from Wataru Kimura in Bug #193 [ruby-core:17333].
kazu
08:42 PM Revision 20209: * lib/date.rb (inspect): reverted the previous change.
* lib/date.rb (inspect): reverted the previous change.
tadf
07:45 PM Revision 20191: * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved from bigdecimal/util, co...
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved from bigdecimal/util, converted into C. [ruby-dev:36805]
matz
05:57 PM Bug #721 (Closed): select in windows accepts too many fd's
Applied in changeset r20189.
Usaku NAKAMURA
05:54 PM Revision 20189: * win32/win32.c (rb_w32_accept): secure fd before accept because if error caus...
* win32/win32.c (rb_w32_accept): secure fd before accept because if error causes in securing, cannot restore the state of accepted socket. fixed [ruby-core:19728]
usa
02:42 PM Revision 20179: * test/ruby/test_transcode.rb: unnecessary setup method (setup_really_needed?) ...
* test/ruby/test_transcode.rb: unnecessary setup method (setup_really_needed?) removed
duerst
02:26 PM Revision 20178: * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb, macromania-tbl...
* enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb, macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb, ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb, ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb,...
duerst
12:20 PM Bug #741: 1.9.1-preview1 uri/generic.rb #check_path L484 bug/typo
in uri/generic.rb #check_path (L484) @parser.regexp[REL_PATH] should be @parser.regexp[:REL_PATH]
Christopher Kleckner
07:59 AM Revision 20177: trivial changes.
trivial changes.
tadf
07:57 AM Revision 20176: * 2008-11-11
* 2008-11-11
svn
07:57 AM Revision 20175: * lib/date.rb (inspect): changed the format.
* lib/date.rb (inspect): changed the format.
tadf
06:44 AM Feature #739: Regexp#match with position
Regexp#=~ returns the position of the match. Regexp#match lets you search a string from a certain position. It would be great if Regexp#match also returned the position along with MatchData. In the current version (ruby-1.9.1-preview1), rb_reg_...
Jeremy Stephens

11/10/2008

05:38 PM Revision 20170: * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method name change ...
* test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method name change from #index to #key and remove a duplicated test method.
knu
10:52 AM Revision 20169: * lib/delegate.rb (Delegator.delegating_block): should not refer DelegateClass ...
* lib/delegate.rb (Delegator.delegating_block): should not refer DelegateClass specific @delegate_dc_obj. a patch from Erik Hollensbe in [ruby-core:19671].
matz
09:57 AM Revision 20166: * win32/win32.c (ifs_open_socket): should retry without proto_buffer if cannot...
* win32/win32.c (ifs_open_socket): should retry without proto_buffer if cannot find the suitable protocol. a patch from Heesob Park. fixed [ruby-core:19713]
usa
09:51 AM Revision 20165: * 2008-11-10
* 2008-11-10
svn
09:51 AM Revision 20164: * struct.c (rb_struct_initialize_m): avoid unnecessary array allocation.
* struct.c (rb_struct_initialize_m): avoid unnecessary array allocation.
matz
05:43 AM Bug #736: Range#include? が遅い
Ruby 1.9でRange#include?がものすごい遅いようです。 require 'benchmark' RUBY_VERSION # => "1.8.7" Benchmark.bmbm(10) do |b| n = 100 b.report("include") { n.times{ ("an".."ruby").include? "elf" }} b.report("between") { n.times{ "e...
rubikitch .
05:25 AM Feature #735: Date#inspect
「inspectは人間に優しい文字列化」という観点から、Date#inspectの出力はふさわしくないと思います。 #<Date: 2008-11-10> やら #<DateTime 2008-11-10T05:22:03+09:00> のほうがわかりやすいです。 require 'date' Date.today # => #<Date: 4909561/2,0,2299161> Date.today.to_s # => "2008-11-10" Da...
rubikitch .

11/09/2008

08:43 PM Feature #729 (Rejected): curly brackets" and "begin end" blocks should behave syntactically and s...
You shouldn't mention principle of least surprise of YOURSELF in the proposal, for background varies for everyone. You have no rights to change the language (especially in incompatible way) to adopt your personal preference before accustoming ...
Yukihiro Matsumoto
02:46 PM Bug #732: $! in at_exit
遠藤です。 at_exit の中で $! が参照できません。 $ ruby19 -ve 'at_exit { p $! }; raise "foo"' ruby 1.9.0 (2008-11-09 revision 20163) [i686-linux] nil -e:1:in `<main>': foo (RuntimeError) スタックトレースを自分で整形して表示したいときに、1.8 の挙動の方が 便利です。 また、同じ動機で、$! = nil もや...
Yusuke Endoh
12:11 PM Bug #731: Net::HTTPHeader []= method does not work as expected
irb(main):001:0> require 'net/http' => true irb(main):002:0> x = Net::HTTP::Get.new('/') => #<Net::HTTP::Get GET> irb(main):003:0> x['abc']='def' => ["def"] The []= method in HTTPHeader needs to have a "return val" at the end.
Taral x
06:22 AM Bug #730: Infinite recursion on 'super' in dynamically generated modules
Note: Bug reported earlier (2007-12-21) on rubyforge, but still exists in 1.9.1 More detailed description at: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=16493&group_id=426 and http://pastie.org/132996 Take the following test c...
Sander Land
06:06 AM Revision 20163: * test/cgi/test_cgi_session.rb: properties.
* test/cgi/test_cgi_session.rb: properties.
nobu
05:10 AM Feature #729: curly brackets" and "begin end" blocks should behave syntactically and semantically...
(transported over from rubyforge #16111, as I still think this would be worth while...) Every now and then I run into a "principle of least surprise" violation wrt blocks in Ruby. The most primitive problem i have is this: why does the follo...
Tomas Pospisek
04:10 AM Revision 20162: * vm_dump.c (control_frame_dump): suppresses finished method name.
* vm_dump.c (control_frame_dump): suppresses finished method name.
nobu
03:38 AM Bug #724 (Closed): webrick httpresponse wrong content-length
fixed by r20152
Yukihiro Matsumoto
12:38 AM Revision 20161: fix test for 1.8
fix test for 1.8
xibbar
12:31 AM Revision 20160: * thread_pthread.c (thread_timer): checks working flags again.
* thread_pthread.c (thread_timer): checks working flags again.
nobu
12:03 AM Revision 20159: * 2008-11-09
* 2008-11-09
svn
12:03 AM Revision 20158: * lib/cgi/session/pstore.rb: fix indentation.
* lib/cgi/session/pstore.rb: fix indentation.
xibbar

11/08/2008

11:56 PM Revision 20157: fix debug code
fix debug code
xibbar
11:52 PM Revision 20156: * lib/cgi/session.rb (FileStore): use marshalized data. * test/cgi/session_dir: a...
* lib/cgi/session.rb (FileStore): use marshalized data. * test/cgi/session_dir: add a session directory in test. * test/cgi/test_cgi_session.rb: add a test.
xibbar
11:51 PM Bug #727: Signal(CLD) seems not to work on OS X
I've noticed differences in the handling of SIGCLD in 1.9. For example, the following code: Signal.trap("CLD") { puts "Child died" } fork && Process.wait now reports t.rb:2:in `wait': Interrupted system call (Errno:...
Dave Thomas
11:47 PM Bug #726: erb references $KCOD
$ erb -K SJIS /usr/local/rubybook/bin//erb:81: warning: variable $KCODE is no longer effective; ignored
Dave Thomas
09:57 PM Revision 20155: * lib/cgi/session.rb: remove debug code.
* lib/cgi/session.rb: remove debug code.
xibbar
09:36 PM Revision 20154: * lib/cgi/session.rb: fix indentation.
* lib/cgi/session.rb: fix indentation.
xibbar
08:30 PM Bug #724: webrick httpresponse wrong content-length
Webrick(httpresponse) fills HTTP response body with wrong content-type. ---- my variant of fix ---- --- lib/webrick/httpresponse.rb (revision 20147) +++ lib/webrick/httpresponse.rb (working copy) @@ -142,7 +142,7 @@ @header.del...
Maksim Melnikau
08:09 PM Revision 20153: merges r20050 from ruby_1_9_1 into trunk. * array.c (rb_ary_sort_bang): refactoring.
merges r20050 from ruby_1_9_1 into trunk. * array.c (rb_ary_sort_bang): refactoring.
yugui
06:47 PM Bug #559 (Closed): WEBrick should use #bytesize instead of #size
Applied in changeset r20152.
Yukihiro Matsumoto
06:41 PM Revision 20152: * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT): use #bytesize...
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT): use #bytesize instead of #size. a patch submitted from raspberry lemon in [ruby-core:18571]. * lib/webrick/httpauth/digestauth.rb, lib/webrick/httpproxy.rb, lib/webrick/htt...
matz
06:08 PM Bug #689 (Closed): reading after EOF with textmode
fixed by r20045
Yukihiro Matsumoto
06:05 PM Bug #704 (Closed): delegate.rb will only delegate to specifically-named delegate object
fixed by r15376
Yukihiro Matsumoto
06:00 PM Bug #697 (Closed): replacing array during sort may make assertion fail
fixed by r20026
Yukihiro Matsumoto
05:57 PM Bug #667 (Closed): yaml が Complex、Rational をうまくあつかえていない
fixed by r20126
Yukihiro Matsumoto
05:37 PM Bug #701 (Closed): Wrong behaviour of StringIO#ungetc
Applied in changeset r20150.
Yukihiro Matsumoto
05:32 PM Revision 20150: * ext/stringio/stringio.c (strio_ungetc): ungetc position should not be changed...
* ext/stringio/stringio.c (strio_ungetc): ungetc position should not be changed from 1.8. [ruby-core:19632]
matz
05:27 PM Bug #722 (Closed): optparse needs patch in 1.9
Applied in changeset r20149.
Yukihiro Matsumoto
05:17 PM Revision 20149: * lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond to :match. a...
* lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond to :match. a patch from keith cascio, <keith at ucla.edu>. [ruby-core:19730]
matz
12:15 PM Revision 20148: * ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash. [ruby-dev:37039] ...
* ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash. [ruby-dev:37039] * ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039]
matz
09:01 AM Bug #722: optparse needs patch in 1.9
Ruby 1.9 breaks this case because Symbol now responds to :match. Patch included. > ruby -r optparse -e 'OptionParser.new{ |o| o.on( "-t <tum>", :REQUIRED ){ |v| p v } }.parse!' -- -t foo /usr/local/lib/ruby/1.9.1/optparse.rb:326:...
Keith Cascio
07:41 AM Bug #721: select in windows accepts too many fd's
from http://redmine.ruby-lang.org/issues/show/670 the test files either hang or are uninterruptible, at least with 1.9 mingw SVN HEAD. Note that you may need to touch abc before running the tests (once), and that sometimes they hang on accep...
Roger Pack
07:10 AM Revision 20147: * configure.in: detect stdio buffer pointers for uClibc. a patch from Brian Ca...
* configure.in: detect stdio buffer pointers for uClibc. a patch from Brian Candler <B.Candler at pobox.com> in [ruby-core:12020]. [ruby-core:19713]
matz
07:07 AM Revision 20146: * ext/dbm/dbm.c (fdbm_index): make #index warn like Hash. * ext/dbm/dbm.c (fdbm_...
* ext/dbm/dbm.c (fdbm_index): make #index warn like Hash. * ext/dbm/dbm.c (fdbm_key): new method. * ext/sdbm/init.c: ditto.
matz
06:42 AM Revision 20145: * ext/curses/curses.c: curses encoding should obey locale. * ext/curses/curses.c...
* ext/curses/curses.c: curses encoding should obey locale. * ext/curses/curses.c (curses_getch): 1.9 getch should return one character string for single byte string. wchar_t support may follow in the future.
matz
05:47 AM Bug #703 (Closed): string output duplication occurs if the same file descriptor written to in dif...
Applied in changeset r20144.
Nobuyoshi Nakada
05:47 AM Revision 20144: * include/ruby/io.h (rb_io_t): added write_lock to serialize. [ruby-core:19668]...
* include/ruby/io.h (rb_io_t): added write_lock to serialize. [ruby-core:19668] * gc.c (gc_mark_children): mark write_lock. * gc.c (rb_gc_call_finalizer_at_exit): Mutex also needs to be deferred. * io.c (io_fflush, io_binwrite, fptr_finaliz...
nobu
05:35 AM Revision 20143: * safe.c (safe_setter): add warning for $SAFE=3.
* safe.c (safe_setter): add warning for $SAFE=3.
matz
01:48 AM Revision 20141: * thread_pthread.c (rb_thread_create_timer_thread): do not wait never coming si...
* thread_pthread.c (rb_thread_create_timer_thread): do not wait never coming signal if failed to create tiemr thread.
nobu
01:42 AM Revision 20140: * thread_pthread.c (native_cond_timedwait): returns error code. * thread_pthread...
* thread_pthread.c (native_cond_timedwait): returns error code. * thread_pthread.c (thread_timer): typo fixed.
nobu
01:14 AM Revision 20139: * 2008-11-08
* 2008-11-08
svn
01:14 AM Revision 20138: * thread_pthread.c (thread_timer, rb_thread_create_timer_thread): handshakes pr...
* thread_pthread.c (thread_timer, rb_thread_create_timer_thread): handshakes properly.
nobu

11/07/2008

10:52 PM Revision 20135: * inits.c (rb_call_inits): do not repeat.
* inits.c (rb_call_inits): do not repeat.
nobu
10:47 PM Revision 20134: * thread_pthread.c (thread_timer): fixed typo.
* thread_pthread.c (thread_timer): fixed typo.
nobu
10:42 PM Revision 20133: * thread_pthread.c (thread_timer): initializes mutex each time.
* thread_pthread.c (thread_timer): initializes mutex each time.
nobu
09:23 PM Revision 20132: * thread_win32.c (thread_start_func_1): use already gotten stack info.
* thread_win32.c (thread_start_func_1): use already gotten stack info.
nobu
12:37 PM Bug #717 (Closed): Unneccesary statement in lib/irb.rb
Applied in changeset r20129.
Yukihiro Matsumoto
12:27 PM Revision 20129: * lib/irb.rb (IRB::Irb#eval_input): remove extra @context.prompt_i. [ruby-core...
* lib/irb.rb (IRB::Irb#eval_input): remove extra @context.prompt_i. [ruby-core:19718]
matz
11:59 AM Revision 20128: * nkf.c: update to r1.188. fixes for 16bit environment.
* nkf.c: update to r1.188. fixes for 16bit environment.
naruse
10:12 AM Bug #717: Unneccesary statement in lib/irb.rb
In lib/irb.rb in the `eval_input` method around line 110, there is a `@context.prompt_i` too much, `else` doesn't care. This is the case in all versions of Ruby back to 1.8.2 (that's as far as i cared to look). The context: if ltype f = ...
Michael Fellinger
07:43 AM Revision 20127: * thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT when timed ...
* thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT when timed out.
nobu
07:36 AM Revision 20126: * lib/yaml/rubytypes.rb: support Rational and Complex as 1.8 does. a patch fro...
* lib/yaml/rubytypes.rb: support Rational and Complex as 1.8 does. a patch from Hiroshi Moriyama in [ruby-dev:36899].
matz
07:18 AM Revision 20125: * string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
* string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
matz
07:12 AM Revision 20124: * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always instead o...
* thread_pthread.c (thread_timer): uses pthread_cond_timedwait always instead of pthread_kill.
nobu
04:02 AM Revision 20123: * thread.c (thread_timer): uses timedwait on cygwin.
* thread.c (thread_timer): uses timedwait on cygwin.
nobu
02:03 AM Revision 20120: * lib/rexml/entity.rb (unnormalized): do not call document.record_entity_expans...
* lib/rexml/entity.rb (unnormalized): do not call document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. * test/rexml/test_document.rb: ditto.
shugo
01:24 AM Revision 20119: * 2008-11-07
* 2008-11-07
svn
01:24 AM Revision 20118: * tool/make-snapshot: binary encoding spec is no longer needed in 1.9.
* tool/make-snapshot: binary encoding spec is no longer needed in 1.9.
nobu

11/06/2008

10:21 PM Revision 20117: * thread.c (rb_thread_stop_timer_thread): terminates timer thread immediately.
* thread.c (rb_thread_stop_timer_thread): terminates timer thread immediately.
nobu
10:07 PM Feature #715: Ruby interpreter should understand UTF-8 symbols with special meaning
I would like the ruby interpreter to understand symbols such as the greater-than-or-equal sign, as an alias for'>='. This is not simply because it would look pretty, it would reduce the cognitive load on the programmer. At the moment many asc...
Jan Maurits Faber
09:38 PM Revision 20114: * 2008-11-06
* 2008-11-06
svn
09:38 PM Revision 20113: * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize, folevariant_initial...
* ext/win32ole/win32ole.c (fole_s_connect, fole_initialize, folevariant_initialize): check argument type of WIN32OLE.connect, WIN32OLE.new, WIN32OLE_VARIANT.new. * test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc): ditto. ...
suke

11/05/2008

06:43 PM Feature #712: M17N of erb
it seems that erb was not multilingualized yet. erb does not have -E or -U, but has -K.
Yuki Sonoda
06:32 PM Feature #711: M17N of irb
irb should support M17N. * supporting -E and -U. and possibly -K. * magic comment * String#encode instead of Kcode
Yuki Sonoda

11/04/2008

03:13 PM Feature #710: Pathname#=~
% ruby -r pathname -e 'p Pathname("foo") =~ /o/' nil % ruby -r ./lib/pathname.patched.rb -e 'p Pathname("foo") =~ /o/' 1
James M. Lawrence
01:10 PM Revision 20106: * lib/test/unit.rb: sorry, removed debug code.
* lib/test/unit.rb: sorry, removed debug code.
usa
01:09 PM Revision 20105: * lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname'' instead...
* lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname'' instead of ``-x name''.
usa
08:00 AM Revision 20104: * test/zlib/test_zlib.rb(test_readchar): compare in same type.
* test/zlib/test_zlib.rb(test_readchar): compare in same type.
takano32
03:28 AM Revision 20103: * array.c (rb_ary_join): do not repeat self in a recursive array. [ruby-dev:37019]
* array.c (rb_ary_join): do not repeat self in a recursive array. [ruby-dev:37019]
nobu
01:56 AM Revision 20102: * include/ruby/intern.h (rb_mutex_synchronize): fixed prototype. * thread.c (rb_...
* include/ruby/intern.h (rb_mutex_synchronize): fixed prototype. * thread.c (rb_mutex_synchronize): fixed function name.
nobu

11/03/2008

07:02 PM Feature #709: Enumerator#+
Enumerators could be directly composable: class Enumerator def +(other) Enumerator.new do |y| each { |e| y << e } other.each { |e| y << e } end end end if __FILE__ == $0 a = (1..3).to_enum + (10..12).to_enum...
Brian Candler
06:54 PM Feature #708: Lazy Enumerator#select, Enumerator#map etc.
There are a number of methods in Enumerable which build an Array of results from the entire collection - e.g. map, select, take etc. I propose that the Enumerator class have its own implementations of these methods, which return another Enumera...
Brian Candler
06:41 PM Feature #707: Documentation for Enumerator chaining
Enumerators now support a horizontal filter/chaining pattern: generator.filter1 { ... }.filter2 { ... }.filter3 { ... }.consumer The overall pattern for a filter is: Enumerator.new do |y| source.each do |input| # filter INPUT...
Brian Candler
04:32 PM Revision 20101: * missing.h: needs RUBY_EXTERN instead of extern for mswin.
* missing.h: needs RUBY_EXTERN instead of extern for mswin.
nobu
04:23 PM Revision 20100: * test/win32ole/test_win32ole_variant_outarg.rb: eol-style.
* test/win32ole/test_win32ole_variant_outarg.rb: eol-style.
nobu
01:13 PM Revision 20096: * array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more appropriatel...
* array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more appropriately. (ary_take_pos_flags): new enum. makes the fourth argument of rb_ary_take_first_or_last more descriptive. (rb_ary_partial): renamed rb_ary_partial0 more appro...
yugui
01:10 PM Revision 20095: * range.c (rb_range_beg_len): rb_raise takes C values as arguments. [BUG] range...
* range.c (rb_range_beg_len): rb_raise takes C values as arguments. [BUG] ranges turned into other value in a message of RangeError.
yugui
12:41 AM Revision 20092: * 2008-11-03
* 2008-11-03
svn
12:41 AM Revision 20091: * test/win32ole/test_win32ole_event.rb: rename test class. * test/win32ole/test_...
* test/win32ole/test_win32ole_event.rb: rename test class. * test/win32ole/test_win32ole_variant_outarg.rb: add in order to use ADO instead of Internet Explorer. remove test/win32ole/test_win32ole_variant_with_ie.rb. * test/win32ole/orig_dat...
suke
« Previous
 

Also available in: Atom