From 205cbc09d342c0c3db371ca8207d189e1c0186f1 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 19 Oct 2023 11:00:47 -0700 Subject: [PATCH] [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 --- lib/bundler/rubygems_integration.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index bb2f1ad107..4bdc285344 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -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)