diff --git a/ChangeLog b/ChangeLog index 1f02c60a32..764160064a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 31 13:43:48 2014 Tanaka Akira + + * lib/resolv.rb (Resolv::DNS::Name#==): Compare an array of Label:Str + objects. Label#Str#== is case-insensitive. + Tue Dec 30 16:16:12 2014 Ben Miller * lib/resolv.rb (Resolv::DNS::Name#==): DNS is case-insensitive, so the diff --git a/lib/resolv.rb b/lib/resolv.rb index 5a4c0ebdc8..3f3ed41a47 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -1237,7 +1237,7 @@ class Resolv def ==(other) # :nodoc: return false unless Name === other return false unless @absolute == other.absolute? - return @labels.join('.').casecmp(other.to_a.join('.')).zero? + return @labels == other.to_a end alias eql? == # :nodoc: