diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-30 07:03:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-30 07:03:47 +0000 |
commit | a0325ea70402a11c3d04cafd43753344bb2648c7 (patch) | |
tree | b85a77d5dedee3d9fcfb5db33a47e3b9ff41bab1 /lib/resolv.rb | |
parent | 5cc1e95be3f552b907b3f5cfc2d1d79907087273 (diff) | |
download | ruby-a0325ea70402a11c3d04cafd43753344bb2648c7.tar.gz |
resolv.rb: dots differences
* lib/resolv.rb (Resolv::DNS::Name): names with different dots
should be different.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index c19aeacd05..f6971bf500 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -1236,7 +1236,8 @@ class Resolv def ==(other) # :nodoc: return false unless Name === other - return @labels.join == other.to_a.join && @absolute == other.absolute? + return @labels.join('.') == other.to_a.join('.') && + @absolute == other.absolute? end alias eql? == # :nodoc: |