True when the gem has been activated
Version of the gem
Create on demand parser.
The Requirement of the unresolved dependency (not Version).
Ensure path
and path with extension
are identical.
Parse obj
, returning an [op, version]
pair. obj
can be a String
or a Gem::Version
.
If obj
is a String
, it can be either a full requirement specification, like ">= 1.2"
, or a simple version number, like "1.2"
.
parse("> 1.0") # => [">", Gem::Version.new("1.0")] parse("1.0") # => ["=", Gem::Version.new("1.0")] parse(Gem::Version.new("1.0")) # => ["=, Gem::Version.new("1.0")]
A string representation of this Version
.
Parses the uri, raising if it’s invalid
Parses the uri, returning the original uri if it’s invalid
Returns the parser to be used.
Unless a URI::Parser
is defined, DEFAULT_PARSER is used.
Returns true if URI
does not have a scheme (e.g. http:// or https://) specified.
Returns extensions.
Setter for extensions val
.
uri
Parses uri
and constructs either matching URI
scheme object (File
, FTP
, HTTP
, HTTPS
, LDAP
, LDAPS
, or MailTo
) or URI::Generic
.
p = URI::Parser.new p.parse("ldap://ldap.example.com/dc=example?user=john") #=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>