diff options
Diffstat (limited to 'lib/bundler/fetcher.rb')
-rw-r--r-- | lib/bundler/fetcher.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index e23521aa..a60adcab 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -101,12 +101,12 @@ module Bundler end - def initialize(remote_uri) + def initialize(remote) @redirect_limit = 5 # How many redirects to allow in one request @api_timeout = 10 # How long to wait for each API call @max_retries = 3 # How many retries for the API call - @remote = configured_uri_for(remote_uri) + @remote = remote Socket.do_not_reverse_lookup = true connection # create persistent connection @@ -396,10 +396,6 @@ module Bundler private - def configured_uri_for(uri) - Source::Rubygems::Remote.new(uri) - end - def fetch_uri @fetch_uri ||= begin if remote_uri.host == "rubygems.org" |