lib/bundler/mirror.rb in bundler-2.5.5 vs lib/bundler/mirror.rb in bundler-2.5.6
- old
+ new
@@ -45,11 +45,11 @@
private
def fetch_valid_mirror_for(uri)
downcased = uri.to_s.downcase
- mirror = @mirrors[downcased] || @mirrors[Bundler::URI(downcased).host] || Mirror.new(uri)
+ mirror = @mirrors[downcased] || @mirrors[Gem::URI(downcased).host] || Mirror.new(uri)
mirror.validate!(@prober)
mirror = Mirror.new(uri) unless mirror.valid?
mirror
end
end
@@ -72,11 +72,11 @@
def uri=(uri)
@uri = if uri.nil?
nil
else
- Bundler::URI(uri.to_s)
+ Gem::URI(uri.to_s)
end
@valid = nil
end
def fallback_timeout=(timeout)
@@ -124,10 +124,10 @@
@fallback = !fallback.nil?
@all = false
if uri == "all"
@all = true
else
- @uri = Bundler::URI(uri).absolute? ? Settings.normalize_uri(uri) : uri
+ @uri = Gem::URI(uri).absolute? ? Settings.normalize_uri(uri) : uri
end
@value = value
end
def all?