Skip to content

Commit

Permalink
[rubygems/rubygems] Reuse Gem::RemoteFetcher instance in bundler
Browse files Browse the repository at this point in the history
Closes rubygems/rubygems#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.

rubygems/rubygems@cd87b40fe1
  • Loading branch information
segiddins authored and matzbot committed Oct 19, 2023
1 parent af222d4 commit 205cbc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/bundler/rubygems_integration.rb
Expand Up @@ -521,8 +521,7 @@ def download_gem(spec, uri, cache_dir)

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)
Expand Down

0 comments on commit 205cbc0

Please sign in to comment.