Reset the authoritative instance of the command manager.
Verifies that this gem:
Contains a valid gem specification
Contains a contents archive
The contents archive is not corrupt
After verification the gem specification from the gem is available from spec
Resets HTTP connection connection
.
Declare that a gem of name name
with reqs
requirements is needed.
Factory method to create a Gem::Requirement
object. Input may be a Version, a String, or nil. Intended to simplify client code.
If the input is “weird”, the default version requirement is returned.
Factory method to create a Version
object. Input may be a Version
or a String. Intended to simplify client code.
ver1 = Version.create('1.3.17') # -> (Version object) ver2 = Version.create(ver1) # -> (ver1) ver3 = Version.create(nil) # -> nil
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Replaces this SourceList
with the sources in other
See <<
for acceptable items in other
.
Returns true if there are no sources in this SourceList
.
Reset the list of known specs, running pre and post reset hooks registered in Gem.
Abbreviate the spec for downloading. Abbreviated specs are only used for searching, downloading and related activities and do not need deployment specific information (e.g. list of files). So we abbreviate the spec, making it much smaller for quicker downloads.
Recursively walk dependencies of this spec, executing the block
for each hop.
Constructs a new Gem::Requirement
.
See IO.foreach
when path
is a file.
See Dir.foreach
when path
is a directory.
Clears the command hash table.
replace self by other URI
object
v
String
public setter for the scheme component v
. (with validation)
see also URI::Generic.check_scheme
require 'uri' uri = URI.parse("http://my.example.com") uri.scheme = "https" # => "https" uri #=> #<URI::HTTP:0x000000008e89e8 URL:https://my.example.com>
Sets the cookie expiration to the time t
. The expiration time may be a false value to disable expiration or a Time
or HTTP format time string to set the expiration date.
Retrieves the expiration time as a Time