ruby-changes:3441
From: ko1@a...
Date: 7 Jan 2008 19:13:28 +0900
Subject: [ruby-changes:3441] matz - Ruby:r14934 (trunk): * string.c (Init_String): sym_match arity spec was wrong. a patch
matz 2008-01-07 19:12:45 +0900 (Mon, 07 Jan 2008)
New Revision: 14934
Modified files:
trunk/ChangeLog
trunk/bootstraptest/test_knownbug.rb
trunk/string.c
Log:
* string.c (Init_String): sym_match arity spec was wrong. a patch
from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=14934&r2=14933&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14934&r2=14933&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14934&r2=14933&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14933)
+++ ChangeLog (revision 14934)
@@ -1,3 +1,8 @@
+Mon Jan 7 19:11:30 2008 Yukihiro Matsumoto <matz@r...>
+
+ * string.c (Init_String): sym_match arity spec was wrong. a patch
+ from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].
+
Mon Jan 7 18:10:33 2008 Tanaka Akira <akr@f...>
* string.c (str_gsub): move rb_enc_get(str) to out of loop.
Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb (revision 14933)
+++ bootstraptest/test_knownbug.rb (revision 14934)
@@ -83,7 +83,7 @@
end
end
- M::A.eval_str(<<END)
+ M::A.eval_str(<<-END)
workflow_rule do |r|
r.at 1
end
Index: string.c
===================================================================
--- string.c (revision 14933)
+++ string.c (revision 14934)
@@ -5975,7 +5975,7 @@
rb_define_method(rb_cSymbol, "length", sym_length, 0);
rb_define_method(rb_cSymbol, "size", sym_length, 0);
rb_define_method(rb_cSymbol, "empty?", sym_empty, 0);
- rb_define_method(rb_cSymbol, "match", sym_match, -1);
+ rb_define_method(rb_cSymbol, "match", sym_match, 1);
rb_define_method(rb_cSymbol, "upcase", sym_upcase, 0);
rb_define_method(rb_cSymbol, "downcase", sym_downcase, 0);
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml