1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/uri/generic.rb (eql?): Check the class of the compared object.

Based on a patch by Peter McLain [ruby-core:27019]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2009-12-24 07:33:24 +00:00
parent c80535e50d
commit dbb14e218a
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Dec 24 16:32:30 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* 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@ruby-lang.org>
* regexec.c (match_at): follow enclen's change.

View file

@ -1066,6 +1066,7 @@ module URI
end
def eql?(oth)
self.class == oth.class &&
parser == oth.parser &&
self.component_ary.eql?(oth.component_ary)
end