ruby-changes:14338
From: marcandre <ko1@a...>
Date: Thu, 24 Dec 2009 16:41:07 +0900 (JST)
Subject: [ruby-changes:14338] Ruby:r26168 (trunk): * lib/uri/generic.rb (eql?): Check the class of the compared object.
marcandre 2009-12-24 16:33:24 +0900 (Thu, 24 Dec 2009) New Revision: 26168 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26168 Log: * lib/uri/generic.rb (eql?): Check the class of the compared object. Based on a patch by Peter McLain [ruby-core:27019] Modified files: trunk/ChangeLog trunk/lib/uri/generic.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26167) +++ ChangeLog (revision 26168) @@ -1,3 +1,8 @@ +Thu Dec 24 16:32:30 2009 Marc-Andre Lafortune <ruby-core@m...> + + * lib/uri/generic.rb (eql?): Check the class of the compared object. + Based on a patch by Peter McLain [ruby-core:27019] + Thu Dec 24 15:20:03 2009 NARUSE, Yui <naruse@r...> * regexec.c (match_at): follow enclen's change. Index: lib/uri/generic.rb =================================================================== --- lib/uri/generic.rb (revision 26167) +++ lib/uri/generic.rb (revision 26168) @@ -1066,6 +1066,7 @@ end def eql?(oth) + self.class == oth.class && parser == oth.parser && self.component_ary.eql?(oth.component_ary) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/