Sha256: 3ce31f132d4de63551b8b9b1afbeb0fb62c753bbb5dc14b3c1c05fe6c65edad4

Contents?: true

Size: 629 Bytes

Versions: 2

Compression:

Stored size: 629 Bytes

Contents

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
    def initialize(remote_uri)
      @remote_uri = RubygemsMirror.to_uri(remote_uri)
      @has_api    = true # will be set to false if the rubygems index is ever fetched
      @@connection ||= Net::HTTP::Persistent.new nil, :ENV
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nexus-0.2.0 lib/bundler/monkey_patch.rb
nexus-0.1.0 lib/bundler/monkey_patch.rb