From d35a2bd4dfdb974ff741736ad27b420c40365515 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 17 Nov 2014 03:55:02 +0000 Subject: * lib/rubygems/*, test/rubygems/*: Update to RubyGems 2.4.4 master (2f6e42e). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_remote_fetcher.rb | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'test/rubygems') diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 7e08a8c663..883e1bd8e4 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -77,30 +77,6 @@ gems: DIR = File.expand_path(File.dirname(__FILE__)) - module RemoteFetcherCleanup - refine Gem::RemoteFetcher do - def close_all - @pools.each_value {|pool| pool.close_all} - end - end - refine Gem::Request::ConnectionPools do - def close_all - @pools.each_value {|pool| pool.close_all} - end - end - refine Gem::Request::HTTPPool do - def close_all - until @queue.empty? - if connection = @queue.pop(true) and connection.started? - connection.finish - end - end - @queue.push(nil) - end - end - end - using RemoteFetcherCleanup - def setup @proxies = %w[http_proxy HTTP_PROXY http_proxy_user HTTP_PROXY_USER http_proxy_pass HTTP_PROXY_PASS no_proxy NO_PROXY] @old_proxies = @proxies.map {|k| ENV[k] } -- cgit v1.2.3