Sha256: d36eb597503267fdc97074f0b3e630715bda24f5da64c39c4067b555a27a7c86

Contents?: true

Size: 772 Bytes

Versions: 55

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Bundler
  class Fetcher
    class Index < Base
      def specs(_gem_names)
        Bundler.rubygems.fetch_all_remote_specs(remote, gem_remote_fetcher)
      rescue Gem::RemoteFetcher::FetchError => e
        case e.message
        when /certificate verify failed/
          raise CertificateFailureError.new(display_uri)
        when /401/
          raise BadAuthenticationError, remote_uri if remote_uri.userinfo
          raise AuthenticationRequiredError, remote_uri
        when /403/
          raise AuthenticationForbiddenError, remote_uri
        else
          raise HTTPError, "Could not fetch specs from #{display_uri} due to underlying error <#{e.message}>"
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 3 rubygems

Version Path
rubygems-update-3.6.3 bundler/lib/bundler/fetcher/index.rb
bundler-2.6.3 lib/bundler/fetcher/index.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bundler-2.5.5/lib/bundler/fetcher/index.rb
rubygems-update-3.6.2 bundler/lib/bundler/fetcher/index.rb
bundler-2.6.2 lib/bundler/fetcher/index.rb
rubygems-update-3.6.1 bundler/lib/bundler/fetcher/index.rb
bundler-2.6.1 lib/bundler/fetcher/index.rb
rubygems-update-3.6.0 bundler/lib/bundler/fetcher/index.rb
bundler-2.6.0 lib/bundler/fetcher/index.rb
rubygems-update-3.5.23 bundler/lib/bundler/fetcher/index.rb
bundler-2.5.23 lib/bundler/fetcher/index.rb
rubygems-update-3.5.22 bundler/lib/bundler/fetcher/index.rb
bundler-2.5.22 lib/bundler/fetcher/index.rb
rubygems-update-3.5.21 bundler/lib/bundler/fetcher/index.rb
bundler-2.5.21 lib/bundler/fetcher/index.rb
rubygems-update-3.5.20 bundler/lib/bundler/fetcher/index.rb
bundler-2.5.20 lib/bundler/fetcher/index.rb
rubygems-update-3.5.19 bundler/lib/bundler/fetcher/index.rb
bundler-2.5.19 lib/bundler/fetcher/index.rb
rubygems-update-3.5.18 bundler/lib/bundler/fetcher/index.rb