Creates a new package that will read or write to the file 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
Initialization tasks without the “yield self” or define operations.
Create the Rake tasks and actions specified by this Gem::PackageTask
. (define
is automatically called if a block is given to new
).
Noop this out so there are no anchors
Performs a Net::HTTP
request of type request_class
on uri
returning a Net::HTTP
response object. request maintains a table of persistent connections to reduce connect overhead.
Creates server sockets based on the addresses option. If no addresses were given a server socket for all interfaces is created.
Returns the first source in the list.
Returns true if this source list includes other
which may be a Gem::Source
or a source URI
.
Returns a Gem::StubSpecification
for every installed gem
A detailed description of this gem. See also summary
Recursively walk dependencies of this spec, executing the block
for each hop.
Finds the path to the Ruby executable
Prints a formatted backtrace to the errors stream if backtraces are enabled.
See IO.unlink when path
is a file.
See Dir.unlink
when path
is a directory.
Tests if the given command
exists in file1
, or optionally file2
.
Example:
sh[?e, "foo"] sh[:e, "foo"] sh["e", "foo"] sh[:exists?, "foo"] sh["exists?", "foo"]