class Bundler::SourceList

def warn_on_git_protocol(source)

def warn_on_git_protocol(source)
  return if Bundler.settings["git.allow_insecure"]
  if /^git\:/.match?(source.uri)
    Bundler.ui.warn "The git source `#{source.uri}` uses the `git` protocol, " \
      "which transmits data without encryption. Disable this warning with " \
      "`bundle config set --local git.allow_insecure true`, or switch to the `https` " \
      "protocol to keep your data secure."
  end
end