Sha256: 0172a349c348a70531fb44911e85277060a9b590862e323be8e4e6310d693ea0

Contents?: true

Size: 329 Bytes

Versions: 55

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require "rubygems/remote_fetcher"

module Bundler
  class Fetcher
    class GemRemoteFetcher < Gem::RemoteFetcher
      def request(*args)
        super do |req|
          req.delete("User-Agent") if headers["User-Agent"]
          yield req if block_given?
        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/gem_remote_fetcher.rb
bundler-2.6.3 lib/bundler/fetcher/gem_remote_fetcher.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bundler-2.5.5/lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.6.2 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.6.2 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.6.1 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.6.1 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.6.0 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.6.0 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.23 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.5.23 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.22 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.5.22 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.21 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.5.21 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.20 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.5.20 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.19 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb
bundler-2.5.19 lib/bundler/fetcher/gem_remote_fetcher.rb
rubygems-update-3.5.18 bundler/lib/bundler/fetcher/gem_remote_fetcher.rb