This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
configured_uri_for(uri)
private
Adds credentials to the URI as
Fetcher#configured_uri_for does
# File lib/bundler/source/git/git_proxy.rb, line 212
def configured_uri_for(uri)
if /https?:/ =~ uri
remote = URI(uri)
config_auth = Bundler.settings[remote.to_s] || Bundler.settings[remote.host]
remote.userinfo ||= config_auth
remote.to_s
else
uri
end
end