ruby-changes:3230
From: ko1@a...
Date: 26 Dec 2007 22:50:47 +0900
Subject: [ruby-changes:3230] naruse - Ruby:r14723 (trunk): * lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
naruse 2007-12-26 22:50:31 +0900 (Wed, 26 Dec 2007)
New Revision: 14723
Modified files:
trunk/ChangeLog
trunk/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 ip6.arpa.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14723&r2=14722
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/resolv.rb?r1=14723&r2=14722
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14722)
+++ ChangeLog (revision 14723)
@@ -1,3 +1,14 @@
+Wed Dec 26 22:47:31 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 ip6.arpa.
+
+
Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@d...>
* lib/date/format.rb (_xmlschema): some improvements.
Index: lib/resolv.rb
===================================================================
--- lib/resolv.rb (revision 14722)
+++ lib/resolv.rb (revision 14723)
@@ -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
@@ -2191,7 +2191,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