class Bundler::URI::Generic

def check_userinfo(user, password = nil)


See also Bundler::URI::Generic.check_user, Bundler::URI::Generic.check_password.

pull +user+ and +password.
split, using Bundler::URI::Generic.split_userinfo, to
If +password+ is not provided, then +user+ is

Checks the +user+ and +password+.
def check_userinfo(user, password = nil)
  if !password
    user, password = split_userinfo(user)
  end
  check_user(user)
  check_password(password, user)
  return true
end