class Bundler::Settings

def normalize_uri(uri)

TODO: is this the correct place to validate mirror URIs?
TODO: duplicates Rubygems#normalize_uri
def normalize_uri(uri)
  uri = uri.to_s
  uri = "#{uri}/" unless uri =~ %r[/\Z]
  uri = URI(uri)
  raise ArgumentError, "Gem mirror sources must be absolute URIs (configured: #{mirror_source})" unless uri.absolute?
  uri
end