summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
#