[前][次][番号順一覧][スレッド一覧]

ruby-changes:32563

From: akr <ko1@a...>
Date: Sat, 18 Jan 2014 23:01:48 +0900 (JST)
Subject: [ruby-changes:32563] akr:r44642 (trunk): * lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated

akr	2014-01-18 23:01:43 +0900 (Sat, 18 Jan 2014)

  New Revision: 44642

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44642

  Log:
    * lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated
      string.
      Patch by Ryan Brunner.  [ruby-core:58220] [Bug #9093]

  Modified files:
    trunk/ChangeLog
    trunk/lib/resolv.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44641)
+++ ChangeLog	(revision 44642)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan 18 22:57:44 2014  Tanaka Akira  <akr@f...>
+
+	* lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated
+	  string.
+	  Patch by Ryan Brunner.  [ruby-core:58220] [Bug #9093]
+
 Sat Jan 18 22:35:15 2014  Tanaka Akira  <akr@f...>
 
 	* io.c (rb_update_max_fd): Return immediately if the given fd is small
Index: lib/resolv.rb
===================================================================
--- lib/resolv.rb	(revision 44641)
+++ lib/resolv.rb	(revision 44642)
@@ -1963,10 +1963,10 @@ class Resolv https://github.com/ruby/ruby/blob/trunk/lib/resolv.rb#L1963
         attr_reader :strings
 
         ##
-        # Returns the first string from +strings+.
+        # Returns the concatenated string from +strings+.
 
         def data
-          @strings[0]
+          @strings.join("")
         end
 
         def encode_rdata(msg) # :nodoc:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]