[ruby/resolv] _1 is not provided in Ruby 2.5

https://github.com/ruby/resolv/commit/83f18e2a49
This commit is contained in:
Hiroshi SHIBATA 2024-11-26 09:22:59 +09:00 committed by git
parent 7be0d50514
commit 36f67f6bbb

View File

@ -89,8 +89,8 @@ class TestResolvDNS < Test::Unit::TestCase
# If we get to this point, we have a valid t & u socket
yield us.last, ts.last
ensure
ts.each { _1.close }
us.each { _1.close }
ts.each(&:close)
us.each(&:close)
end
else
# Explicitly specified port, don't retry the bind.