ruby-changes:35760
From: naruse <ko1@a...>
Date: Wed, 8 Oct 2014 07:48:22 +0900 (JST)
Subject: [ruby-changes:35760] naruse:r47842 (trunk): * lib/uri/generic.rb (URI#inspect): remove Object id.
naruse 2014-10-08 07:48:06 +0900 (Wed, 08 Oct 2014) New Revision: 47842 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47842 Log: * lib/uri/generic.rb (URI#inspect): remove Object id. URI is considered that it doesn't require id. Modified files: trunk/ChangeLog trunk/lib/uri/generic.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47841) +++ ChangeLog (revision 47842) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Oct 8 07:42:39 2014 NARUSE, Yui <naruse@r...> + + * 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@8...> * ext/etc/etc.c (etc_systmpdir): set default tmplen correctly Index: lib/uri/generic.rb =================================================================== --- lib/uri/generic.rb (revision 47841) +++ lib/uri/generic.rb (revision 47842) @@ -1450,9 +1450,8 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/generic.rb#L1450 end end - @@to_s = Kernel.instance_method(:to_s) def inspect - @@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"} + "#<#{self.class} #{self}>" end # -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/