Call the given block when invoked.
Normal command invocations just executes the execute
method of the command. Specifying an invocation block allows the test methods to override the normal action of a command to determine that it has been invoked correctly.
Register the Symbol
command
as a gem command.
Unregister the Symbol
command
as a gem command.
Return a sorted list of all command names as strings.
Does this dependency match spec
?
NOTE: This is not a convenience method. Unlike match?
this method returns true when spec
is a prerelease version even if this dependency is not a prerelease dependency.
Build various indices
Compresses indices on disk
Builds and installs indices.
Perform an in-place update of the repository from newly added gems.
Defaults to use Ruby’s program prefix and suffix.
Return an Array of Specifications contained within the gem_home
we’ll be installing into.
Extracts only the bin/ files from the gem into the gem directory. This is used by default gems to allow a gem-aware stub to function without the full gem installed.
Creates an installer for spec
that will install into gem_home
. If user
is true a user-install will be performed.
Indicate if this NameTuple
matches the current platform.
This is ported over from the yaml_tree in 1.9.3
Given a source at uri
, calculate what hostname to actually connect to query the data for it.
Dump only the raw version string, not the complete object. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.
Load custom marshal format. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.
A recommended version for use with a ~> Requirement.
returns an integer in (-infty, 0] a number closer to 0 means the dependency is less constraining
dependencies w/ 0 or 1 possibilities (ignoring version requirements) are given very negative values, so they always sort first, before dependencies that are unconstrained