diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-22 22:46:50 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-22 22:46:50 +0000 |
commit | 4c2304f0004e9f1784540f3d36976aad9eab1f68 (patch) | |
tree | fe5d7f52b7e01644d0a57316aab03299ed0ee5c8 /lib/rubygems/remote_fetcher.rb | |
parent | 66cc0fa4abde68ae360ba2d2cdf4e44bc833e33a (diff) | |
download | ruby-4c2304f0004e9f1784540f3d36976aad9eab1f68.tar.gz |
* lib/rubygems: Import RubyGems from master as of commit b165260
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/remote_fetcher.rb')
-rw-r--r-- | lib/rubygems/remote_fetcher.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index c10f9ebae8..f00555a1e2 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -324,7 +324,11 @@ class Gem::RemoteFetcher # connections to reduce connect overhead. def request(uri, request_class, last_modified = nil) - Gem::Request.new(uri, request_class, last_modified, @proxy).fetch + request = Gem::Request.new uri, request_class, last_modified, @proxy + + request.fetch do |req| + yield req if block_given? + end end def https?(uri) |