Class: Bundler::Fetcher::GemRemoteFetcher

Inherits:
Gem::RemoteFetcher
  • Object
show all
Defined in:
lib/bundler/fetcher/gem_remote_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initializeGemRemoteFetcher

Returns a new instance of GemRemoteFetcher.



8
9
10
11
12
13
14
# File 'lib/bundler/fetcher/gem_remote_fetcher.rb', line 8

def initialize(*)
  super

  @pool_size = Bundler.settings.installation_parallelization
  ssl_ca_cert = Bundler.settings[:ssl_ca_cert]
  @cert_files << ssl_ca_cert if ssl_ca_cert
end

Instance Method Details

#request(*args) ⇒ Object



16
17
18
19
20
21
# File 'lib/bundler/fetcher/gem_remote_fetcher.rb', line 16

def request(*args)
  super do |req|
    req.delete("User-Agent") if headers["User-Agent"]
    yield req if block_given?
  end
end