class Bundler::Fetcher::Downloader

def validate_uri_scheme!(uri)

def validate_uri_scheme!(uri)
  return if /\Ahttps?\z/.match?(uri.scheme)
  raise InvalidOption,
    "The request uri `#{uri}` has an invalid scheme (`#{uri.scheme}`). " \
    "Did you mean `http` or `https`?"
end