summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-07 22:48:06 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-07 22:48:06 +0000
commit6041af45a36fb2f8b0a1c8c89825d1ec88833883 (patch)
treee4d995f31a83215c5e2193ffbcb7cf8b79160019
parent7fcf57412a627eb57ce028f9614b1f5113aec155 (diff)
* lib/uri/generic.rb (URI#inspect): remove Object id.
URI is considered that it doesn't require id. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/uri/generic.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9567a55..cc5a90e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 8 07:42:39 2014 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI#inspect): remove Object id.
+ URI is considered that it doesn't require id.
+
Wed Oct 8 05:22:42 2014 Eric Wong <e@80x24.org>
* ext/etc/etc.c (etc_systmpdir): set default tmplen correctly
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index 0169934..03701aa 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1450,9 +1450,8 @@ module URI
end
end
- @@to_s = Kernel.instance_method(:to_s)
def inspect
- @@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"}
+ "#<#{self.class} #{self}>"
end
#