Class: Bundler::Fetcher::CompactIndex::ClientFetcher
- Inherits:
-
Struct
- Object
- Struct
- Bundler::Fetcher::CompactIndex::ClientFetcher
- Defined in:
- lib/bundler/fetcher/compact_index.rb
Instance Method Summary collapse
Instance Method Details
#call(path, headers) ⇒ Object
119 120 121 122 123 124 125 |
# File 'lib/bundler/fetcher/compact_index.rb', line 119 def call(path, headers) fetcher.downloader.fetch(fetcher.fetch_uri + path, headers) rescue NetworkDownError => e raise unless Bundler.feature_flag.allow_offline_install? && headers["If-None-Match"] ui.warn "Using the cached data for the new index because of a network error: #{e}" Gem::Net::HTTPNotModified.new(nil, nil, nil) end |