ruby-changes:14627
From: yugui <ko1@a...>
Date: Sat, 30 Jan 2010 21:42:47 +0900 (JST)
Subject: [ruby-changes:14627] Ruby:r26472 (ruby_1_9_1): merges r25243 from trunk into ruby_1_9_1.
yugui 2010-01-30 21:42:32 +0900 (Sat, 30 Jan 2010) New Revision: 26472 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26472 Log: merges r25243 from trunk into ruby_1_9_1. -- * struct.c (rb_struct_select): Struct#select should return enumerator when no block given. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/struct.c branches/ruby_1_9_1/version.h Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 26471) +++ ruby_1_9_1/ChangeLog (revision 26472) @@ -1,3 +1,8 @@ +Tue Oct 6 18:56:09 2009 Yukihiro Matsumoto <matz@r...> + + * struct.c (rb_struct_select): Struct#select should return + enumerator when no block given. + Sun Jan 10 17:25:24 2010 Nobuyoshi Nakada <nobu@r...> * lib/webrick/accesslog.rb : Escape needed. Index: ruby_1_9_1/struct.c =================================================================== --- ruby_1_9_1/struct.c (revision 26471) +++ ruby_1_9_1/struct.c (revision 26472) @@ -750,6 +750,7 @@ if (argc > 0) { rb_raise(rb_eArgError, "wrong number of arguments (%d for 0)", argc); } + RETURN_ENUMERATOR(s, 0, 0); result = rb_ary_new(); for (i = 0; i < RSTRUCT_LEN(s); i++) { if (RTEST(rb_yield(RSTRUCT_PTR(s)[i]))) { Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 26471) +++ ruby_1_9_1/version.h (revision 26472) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 378 +#define RUBY_PATCHLEVEL 379 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/