Return true if this spec can require file
.
The full path to the gem (install path + full name).
Full paths in the gem to add to $LOAD_PATH
when this gem is activated.
Return an array of extra arguments for the command. The extra arguments come from the gem configuration file read at program startup.
Adds extra args from ~/.gemrc
The name of the configuration file.
Builds Marshal
quick index gemspecs.
Writes the full .gemspec specification (in Ruby) to the gem home’s specifications/default directory.
Writes the .gem file to the cache directory
Downloads uri
to path
if necessary. If no path is given, it just passes the data.
Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
Return the best specification that contains the file matching path
.
Specification
attributes that must be non-nil
TODO: move to minitest
Allows tests to use a random (but controlled) port number instead of a hardcoded one. This helps CI tools when running parallels builds on the same builder slave.
Ask for a password. Does not echo response to terminal.
private method to assemble query
from attributes
, scope
, filter
and extensions
.
Writes a number of random generated bytes (currently 1024) to filename
which can be used to initialize the PRNG by calling ::load_random_file
in a later session.