mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
Resolv::DNS::Label::Str. * lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string is not defined, so replace to_s. * lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by ip6.arpa. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
343a414ab0
commit
7ae8e804ed
2 changed files with 14 additions and 3 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
Wed Dec 26 22:47:31 2007 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
|
||||||
|
Resolv::DNS::Label::Str.
|
||||||
|
|
||||||
|
* lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string
|
||||||
|
is not defined, so replace to_s.
|
||||||
|
|
||||||
|
* lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by ip6.arpa.
|
||||||
|
|
||||||
|
|
||||||
Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/date/format.rb (_xmlschema): some improvements.
|
* lib/date/format.rb (_xmlschema): some improvements.
|
||||||
|
|
|
@ -1032,7 +1032,7 @@ class Resolv
|
||||||
|
|
||||||
def ==(other) # :nodoc:
|
def ==(other) # :nodoc:
|
||||||
return false unless Name === other
|
return false unless Name === other
|
||||||
return @labels == other.to_a && @absolute == other.absolute?
|
return @labels.join == other.to_a.join && @absolute == other.absolute?
|
||||||
end
|
end
|
||||||
|
|
||||||
alias eql? == # :nodoc:
|
alias eql? == # :nodoc:
|
||||||
|
@ -1262,7 +1262,7 @@ class Resolv
|
||||||
end
|
end
|
||||||
|
|
||||||
def put_label(d)
|
def put_label(d)
|
||||||
self.put_string(d.string)
|
self.put_string(d.to_s)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2191,7 +2191,7 @@ class Resolv
|
||||||
|
|
||||||
def to_name
|
def to_name
|
||||||
return DNS::Name.new(
|
return DNS::Name.new(
|
||||||
@address.unpack("H32")[0].split(//).reverse + ['ip6', 'int'])
|
@address.unpack("H32")[0].split(//).reverse + ['ip6', 'arpa'])
|
||||||
end
|
end
|
||||||
|
|
||||||
def ==(other) # :nodoc:
|
def ==(other) # :nodoc:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue