class Bundler::URI::Generic
def check_user(v)
with a user component defined.
Can not have a registry or opaque component defined,
and against the Bundler::URI::Parser Regexp for :USERINFO.
Checks the user +v+ component for RFC2396 compliance
def check_user(v) if @opaque raise InvalidURIError, "can not set user with opaque" end return v unless v if parser.regexp[:USERINFO] !~ v raise InvalidComponentError, "bad component(expected userinfo component or user component): #{v}" end return true end