diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-11 06:23:18 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-11 06:23:18 +0000 |
commit | eda452e81b2e895a64d8580609c25542126bcae5 (patch) | |
tree | ba66f34df5ded8bed7f3ecf34a8667f7ac0027f2 | |
parent | ab52f186dc314e5a37adea80c83f619bf4631c1c (diff) | |
download | ruby-eda452e81b2e895a64d8580609c25542126bcae5.tar.gz |
merge revision(s) 15216:
* lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead
object_id with printf. [ruby-dev:33347]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/generic.rb | 3 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Jun 11 15:23:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead + object_id with printf. [ruby-dev:33347] + Wed Jun 11 15:00:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in: Remove wrong assumptions about Cygwin. a patch from diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 2b66adeb93..88b5078466 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1103,8 +1103,9 @@ module URI end end + @@to_s = Kernel.instance_method(:to_s) def inspect - sprintf("#<%s:%#0x URL:%s>", self.class.to_s, self.object_id, self.to_s) + @@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"} end def coerce(oth) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-11" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080611 -#define RUBY_PATCHLEVEL 168 +#define RUBY_PATCHLEVEL 169 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |