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
  • Loading branch information
simi committed Oct 19, 2023
2 parents 9f086e4 + cd87b40 commit 54a7a7a
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 @@ -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 54a7a7a

Please sign in to comment.