зеркало из https://github.com/github/ruby.git
* lib/resolv.rb: fix a exception name in previous patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
16f4ecbc8c
Коммит
931226061b
|
@ -1,3 +1,7 @@
|
|||
Sat Oct 22 17:46:27 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb: fix a exception name in previous patch.
|
||||
|
||||
Sat Oct 22 17:43:33 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb: make timeout configurable for DNS query.
|
||||
|
|
|
@ -874,7 +874,7 @@ class Resolv
|
|||
values = Array(values)
|
||||
values.each do |t|
|
||||
Numeric === t or raise ArgumentError, "#{t.inspect} is not numeric"
|
||||
t > 0.0 or raise Argument, "timeout=#{t} must be postive"
|
||||
t > 0.0 or raise ArgumentError, "timeout=#{t} must be postive"
|
||||
end
|
||||
@timeouts = values
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче