class Bundler::URI::Generic

def userinfo

Returns the userinfo, either as 'user' or 'user:password'.
def userinfo
  if @user.nil?
    nil
  elsif @password.nil?
    @user
  else
    @user + ':' + @password
  end
end