diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | encoding.c | 1 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Tue Oct 16 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * 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@ruby-lang.org> * numeric.c (flo_round): should be number but not rounding factor. diff --git a/encoding.c b/encoding.c index ab8a020a01..dd01fba94a 100644 --- a/encoding.c +++ b/encoding.c @@ -518,6 +518,7 @@ Init_Encoding(void) { 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); @@ -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[]; |