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.
Extracts S3 configuration for S3 bucket
Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
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.
Iterates through the header names in the header, passing capitalized header names to the code block.
Note that header names are capitalized systematically; capitalization may not match that used by the remote HTTP
server in its response.
Returns an enumerator if no block is given.
Sets the content type in an HTTP
header. The type
should be a full HTTP
content type, e.g. “text/html”. The params
are an optional Hash
of parameters to add after the content type, e.g. {‘charset’ => ‘iso-8859-1’}
Yields to a block and preserves the previous set of objects being printed.