ruby-changes:3229
From: ko1@a...
Date: 26 Dec 2007 22:46:38 +0900
Subject: [ruby-changes:3229] naruse - Ruby:r14722 (ruby_1_8): * lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
naruse 2007-12-26 22:46:05 +0900 (Wed, 26 Dec 2007) New Revision: 14722 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/resolv.rb Log: * 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 int.arpa. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14722&r2=14721 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/resolv.rb?r1=14722&r2=14721 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 14721) +++ ruby_1_8/ChangeLog (revision 14722) @@ -1,3 +1,14 @@ +Wed Dec 26 22:27:45 2007 NARUSE, Yui <naruse@r...> + + * 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 + int.arpa. + Mon Dec 24 16:18:57 2007 Eric Hodel <drbrain@s...> * lib/rdoc/ri/ri_options.rb: Fix ri --help listing of gem ri paths. Index: ruby_1_8/lib/resolv.rb =================================================================== --- ruby_1_8/lib/resolv.rb (revision 14721) +++ ruby_1_8/lib/resolv.rb (revision 14722) @@ -1032,7 +1032,7 @@ def ==(other) # :nodoc: return false unless Name === other - return @labels == other.to_a && @absolute == other.absolute? + return @labels.join == other.to_a.join && @absolute == other.absolute? end alias eql? == # :nodoc: @@ -1262,7 +1262,7 @@ end def put_label(d) - self.put_string(d.string) + self.put_string(d.to_s) end end @@ -2180,7 +2180,7 @@ def to_name return DNS::Name.new( - @address.unpack("H32")[0].split(//).reverse + ['ip6', 'int']) + @address.unpack("H32")[0].split(//).reverse + ['ip6', 'arpa']) end def ==(other) # :nodoc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml