method

compact_index_request

ruby latest stable - Class: Bundler::Fetcher::CompactIndex

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

compact_index_request(method_name)
public

No documentation available.

# File lib/bundler/fetcher/compact_index.rb, line 11
      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
            # Fail since we got a 401 from the server.
            raise
          rescue HTTPError => e
            Bundler.ui.trace(e)
            nil
          end
        end
      end