Reset the authoritative instance of the command manager.
Filename of the gem being installed.
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.
Parses and redacts uri
An ‘empty?` line is one that was originally left empty in the source code, while a “hidden” line is one that we’ve since marked as “invisible”