зеркало из https://github.com/github/ruby.git
* lib/resolv.rb (Resolv::DNS::Name#==): Compare an array of Label:Str
objects. Label#Str#== is case-insensitive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
69a7bb31f9
Коммит
e36d40f923
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 31 13:43:48 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* 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 <bmiller@rackspace.com>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Name#==): DNS is case-insensitive, so the
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче