ruby-changes:2221
From: ko1@a...
Date: 16 Oct 2007 01:28:39 +0900
Subject: [ruby-changes:2221] matz - Ruby:r13712 (trunk): * encoding.c (Init_Encoding): define #to_s to show encoding name
matz 2007-10-16 01:28:18 +0900 (Tue, 16 Oct 2007) New Revision: 13712 Modified files: trunk/ChangeLog trunk/encoding.c trunk/version.h Log: * encoding.c (Init_Encoding): define #to_s to show encoding name in to_s representation as well as #inspect. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=13712&r2=13711 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13712&r2=13711 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=13712&r2=13711 Index: encoding.c =================================================================== --- encoding.c (revision 13711) +++ encoding.c (revision 13712) @@ -518,6 +518,7 @@ { rb_cEncoding = rb_define_class("Encoding", rb_cObject); rb_undef_alloc_func(rb_cEncoding); + rb_define_method(rb_cEncoding, "to_s", enc_inspect, 0); rb_define_method(rb_cEncoding, "inspect", enc_inspect, 0); rb_define_method(rb_cEncoding, "name", enc_name, 0); rb_define_singleton_method(rb_cEncoding, "list", enc_list, 0); Index: ChangeLog =================================================================== --- ChangeLog (revision 13711) +++ ChangeLog (revision 13712) @@ -1,3 +1,8 @@ +Tue Oct 16 01:25:40 2007 Yukihiro Matsumoto <matz@r...> + + * encoding.c (Init_Encoding): define #to_s to show encoding name + in to_s representation as well as #inspect. + Mon Oct 15 13:24:08 2007 Nobuyoshi Nakada <nobu@r...> * numeric.c (flo_round): should be number but not rounding factor. Index: version.h =================================================================== --- version.h (revision 13711) +++ version.h (revision 13712) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-10-15" +#define RUBY_RELEASE_DATE "2007-10-16" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071015 +#define RUBY_RELEASE_CODE 20071016 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 15 +#define RUBY_RELEASE_DAY 16 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml