summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/resolv.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 36c6256..2ced7f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Jan 18 22:57:44 2014 Tanaka Akira <akr@fsij.org>
+
+ * 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@fsij.org>
* io.c (rb_update_max_fd): Return immediately if the given fd is small
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 0c2b68e..3194d76 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -1963,10 +1963,10 @@ class Resolv
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: