ruby-changes:11662
From: nobu <ko1@a...>
Date: Tue, 28 Apr 2009 07:14:10 +0900 (JST)
Subject: [ruby-changes:11662] Ruby:r23301 (trunk): * lib/pp.rb (Struct#pretty_print): coerce to a string since
nobu 2009-04-28 07:13:50 +0900 (Tue, 28 Apr 2009) New Revision: 23301 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23301 Log: * lib/pp.rb (Struct#pretty_print): coerce to a string since anonymous class has name no longer. [ruby-dev:38349] Modified files: trunk/ChangeLog trunk/lib/pp.rb trunk/version.h Index: ChangeLog =================================================================== --- ChangeLog (revision 23300) +++ ChangeLog (revision 23301) @@ -1,3 +1,8 @@ +Tue Apr 28 07:13:48 2009 Nobuyoshi Nakada <nobu@r...> + + * lib/pp.rb (Struct#pretty_print): coerce to a string since + anonymous class has name no longer. [ruby-dev:38349] + Mon Apr 27 16:47:12 2009 Nobuyoshi Nakada <nobu@r...> * configure.in (ruby_version): uses sed instead of grep if the Index: lib/pp.rb =================================================================== --- lib/pp.rb (revision 23300) +++ lib/pp.rb (revision 23301) @@ -361,7 +361,7 @@ class Struct def pretty_print(q) - q.group(1, '#<struct ' + PP.mcall(self, Kernel, :class).name, '>') { + q.group(1, sprintf("#<struct %s", PP.mcall(self, Kernel, :class).name), '>') { q.seplist(PP.mcall(self, Struct, :members), lambda { q.text "," }) {|member| q.breakable q.text member.to_s Index: version.h =================================================================== --- version.h (revision 23300) +++ version.h (revision 23301) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2009-04-27" +#define RUBY_RELEASE_DATE "2009-04-28" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 4 -#define RUBY_RELEASE_DAY 27 +#define RUBY_RELEASE_DAY 28 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/