method

apply_auth

ruby latest stable - Class: Bundler::Source::Rubygems::Remote

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

apply_auth(uri, auth)
private

No documentation available.

# File lib/bundler/source/rubygems/remote.rb, line 45
        def apply_auth(uri, auth)
          if auth && uri.userinfo.nil?
            uri = uri.dup
            uri.userinfo = auth
          end

          uri
        rescue URI::InvalidComponentError
          error_message = "Please CGI escape your usernames and passwords before "                            "setting them for authentication."
          raise HTTPError.new(error_message)
        end