Class: Bundler::Fetcher::GemRemoteFetcher

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

Instance Attribute Summary

Attributes inherited from Gem::RemoteFetcher

#headers

Instance Method Summary collapse

Methods inherited from Gem::RemoteFetcher

#cache_update_path, #close_all, #download, #download_to_cache, #fetch_file, #fetch_http, #fetch_path, #fetch_s3, fetcher, #https?, #initialize, #s3_uri_signer

Methods included from Gem::UserInteraction

#alert, #alert_error, #alert_warning, #ask, #ask_for_password, #ask_yes_no, #choose_from_list, #say, #terminate_interaction, #verbose

Methods included from Gem::DefaultUserInteraction

ui, #ui, ui=, #ui=, use_ui, #use_ui

Methods included from Gem::Text

#clean_text, #format_text, #levenshtein_distance, #min3, #truncate_text

Constructor Details

This class inherits a constructor from Gem::RemoteFetcher

Instance Method Details

#request(*args) ⇒ Object



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

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