зеркало из https://github.com/github/ruby.git
* lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated
string. Patch by Ryan Brunner. [ruby-core:58220] [Bug #9093] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e457f6312f
Коммит
e86a90420d
|
@ -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>
|
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
|
* io.c (rb_update_max_fd): Return immediately if the given fd is small
|
||||||
|
|
|
@ -1963,10 +1963,10 @@ class Resolv
|
||||||
attr_reader :strings
|
attr_reader :strings
|
||||||
|
|
||||||
##
|
##
|
||||||
# Returns the first string from +strings+.
|
# Returns the concatenated string from +strings+.
|
||||||
|
|
||||||
def data
|
def data
|
||||||
@strings[0]
|
@strings.join("")
|
||||||
end
|
end
|
||||||
|
|
||||||
def encode_rdata(msg) # :nodoc:
|
def encode_rdata(msg) # :nodoc:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче