Class: Bundler::Fetcher::GemRemoteFetcher
- Inherits:
-
Gem::RemoteFetcher
- Object
- Gem::RemoteFetcher
- Bundler::Fetcher::GemRemoteFetcher
- Defined in:
- lib/bundler/fetcher/gem_remote_fetcher.rb
Instance Method Summary collapse
-
#initialize ⇒ GemRemoteFetcher
constructor
A new instance of GemRemoteFetcher.
- #request(*args) ⇒ Object
Constructor Details
#initialize ⇒ GemRemoteFetcher
Returns a new instance of GemRemoteFetcher.
8 9 10 11 12 |
# File 'lib/bundler/fetcher/gem_remote_fetcher.rb', line 8 def initialize(*) super @pool_size = 5 end |
Instance Method Details
#request(*args) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/bundler/fetcher/gem_remote_fetcher.rb', line 14 def request(*args) super do |req| req.delete("User-Agent") if headers["User-Agent"] yield req if block_given? end end |