Sha256: 4602443c99225febeed4bc14200f3cba05a3a59cc11e412789c92ad261a99bbb

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 Bytes

Contents

module Bundler
  module Source
    autoload :Rubygems, 'bundler/source/rubygems'
    autoload :Path,     'bundler/source/path'
    autoload :Git,      'bundler/source/git'

    def self.mirror_for(uri)
      uri = URI(uri.to_s) unless uri.is_a?(URI)

      # Settings keys are all downcased
      mirrors = Bundler.settings.gem_mirrors
      normalized_key = URI(uri.to_s.downcase)

      mirrors[normalized_key] || uri
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bundler-1.5.3 lib/bundler/source.rb
bundler-1.5.2 lib/bundler/source.rb
bundler-1.5.1 lib/bundler/source.rb
bundler-1.5.0 lib/bundler/source.rb
bundler-1.5.0.rc.2 lib/bundler/source.rb
bundler-1.5.0.rc.1 lib/bundler/source.rb