class Bundler::URI::Generic

def escape_userpass(v)

Escapes 'user:password' +v+ based on RFC 1738 section 3.1.
def escape_userpass(v)
  parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/
end