Skip to content

Commit

Permalink
Merge pull request #7079 from rubygems/reuse-gem-remotefetcher-instan…
Browse files Browse the repository at this point in the history
…ce-in-bundler

Reuse Gem::RemoteFetcher instance in bundler

(cherry picked from commit 54a7a7a)
  • Loading branch information
simi authored and deivid-rodriguez committed Nov 8, 2023
1 parent d11c49c commit 7af1f96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bundler/lib/bundler/rubygems_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,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 7af1f96

Please sign in to comment.