class Bundler::Fetcher::Downloader

def validate_uri_scheme!(uri)

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