From 36f67f6bbbacb242e2c9e8fbd6d07ac706287ba2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 26 Nov 2024 09:22:59 +0900 Subject: [PATCH] [ruby/resolv] _1 is not provided in Ruby 2.5 https://github.com/ruby/resolv/commit/83f18e2a49 --- test/resolv/test_dns.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index fb5842f048..1d921b8377 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -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.