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