True when the gem has been activated
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
Reset the authoritative instance of the command manager.
Merges the requirements of other
into this dependency
Changes in rubygems to lazily loading ‘rubygems/command` (in order to lazily load `optparse` as a side effect) affect bundler’s custom installer which uses ‘Gem::Command` without requiring it (up until bundler 2.2.29). This hook is to compensate for that missing require.
TODO: Remove when rubygems no longer supports running on bundler older than 2.2.29.
Creates a new package that will read or write to the file gem
.
A list of file names contained in this gem
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
Noop this out so there are no anchors
Cached RemoteFetcher
instance.
Resets HTTP connection connection
.
Concatenates the new
requirements onto this requirement.
true if this gem has no requirements.
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Removes all sources from the SourceList
.
Returns true if there are no sources in this SourceList
.
Returns the first source in the list.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.