class Bundler::Fetcher::CompactIndex
def self.compact_index_request(method_name)
def self.compact_index_request(method_name) method = instance_method(method_name) undef_method(method_name) define_method(method_name) do |*args, &blk| begin method.bind(self).call(*args, &blk) rescue NetworkDownError, CompactIndexClient::Updater::MisMatchedChecksumError => e raise HTTPError, e.message rescue AuthenticationRequiredError # We got a 401 from the server. Just fail. raise rescue HTTPError => e Bundler.ui.trace(e) nil end end end