[rubygems/rubygems] Reuse Gem::RemoteFetcher instance in bundler
Closes https://github.com/rubygems/rubygems/issues/7076 Bundler will now use the same (shared) remote fetcher instance that RubyGems uses. This will allow installs to use a shared connection pool, which represents a significant performance improvement on a clean install. https://github.com/rubygems/rubygems/commit/cd87b40fe1
This commit is contained in:
parent
af222d4db2
commit
205cbc09d3
@ -521,8 +521,7 @@ module Bundler
|
||||
|
||||
def gem_remote_fetcher
|
||||
require "rubygems/remote_fetcher"
|
||||
proxy = Gem.configuration[:http_proxy]
|
||||
Gem::RemoteFetcher.new(proxy)
|
||||
Gem::RemoteFetcher.fetcher
|
||||
end
|
||||
|
||||
def build(spec, skip_validation = false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user