Sha256: be640335646de762f157876cd647b5bb90425fb27e66f2ddfad56cb981184928

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 Bytes

Contents

require 'bundler'
require 'bundler/fetcher'
require 'bundler/rubygems_integration'
require 'bundler/rubygems_mirror'
module Bundler
  class RubygemsIntegration
    def download_gem(spec, uri, path)
      uri = RubygemsMirror.to_uri(uri)
      Gem::RemoteFetcher.fetcher.download(spec, uri, path)
    end
  end
end
module Bundler
  # Handles all the fetching with the rubygems server
  class Fetcher    
    alias :initialize_old :initialize

    def initialize(remote_uri)
      initialize_old RubygemsMirror.to_uri(remote_uri)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nexus-1.2.1 lib/bundler/monkey_patch.rb
nexus-1.2.0 lib/bundler/monkey_patch.rb
nexus-1.1.0 lib/bundler/monkey_patch.rb
nexus-1.0.1 lib/bundler/monkey_patch.rb
nexus-1.0.0 lib/bundler/monkey_patch.rb
nexus-0.2.5 lib/bundler/monkey_patch.rb