summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-10-19 11:00:47 -0700
committergit <svn-admin@ruby-lang.org>2023-10-19 21:40:21 +0000
commit205cbc09d342c0c3db371ca8207d189e1c0186f1 (patch)
tree894b3dcc47cdb6edccb1ce8797fc7b12425337bd /lib
parentaf222d4db27b018a5e4a406ec668c479c68c0446 (diff)
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/rubygems_integration.rb3
1 files changed, 1 insertions, 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)