Resets HTTP connection connection
.
Add deps
Gem::Dependency
objects to the set.
Installs gems for this RequestSet
using the Gem::Installer
options
.
If a block
is given an activation request
and installer
are yielded. The installer
will be nil
if a gem matching the request was already installed.
Resolve the requested dependencies and return an Array
of Specification objects to be activated.
Factory method to create a Version
object. Input may be a Version
or a String
. Intended to simplify client code.
ver1 = Version.create('1.3.17') # -> (Version object) ver2 = Version.create(ver1) # -> (ver1) ver3 = Version.create(nil) # -> nil
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Proceed with resolution! Returns an array of ActivationRequest
objects.
Creates server sockets based on the addresses option. If no addresses were given a server socket for all interfaces is created.
Replaces this SourceList
with the sources in other
See <<
for acceptable items in other
.
Returns the first source in the list.
Performs the uninstall of the gem. This removes the spec, the Gem directory, and the cached .gem file.
the spec of the gem to be uninstalled
the list of all such gems
Warning: this method modifies the list
parameter. Once it has uninstalled a gem, it is removed from that list.
Normalize the URI
by adding “http://” if it is missing.
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"]
Executes the given command
with the options
parameter.
Example:
print sh.system("ls", "-l") sh.system("ls", "-l") | sh.head > STDOUT
Clears the command hash table.