Sets the resolver timeouts. This may be a single positive number or an array of positive numbers representing timeouts in seconds. If an array is specified, a DNS
request will retry and wait for each successive interval in the array until a successful response is received. Specifying nil
reverts to the default timeouts:
Example:
dns.timeouts = 3
Closes the DNS
resolver.
Gets all IP addresses for name
from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Registers for notifications of event ev
on the proxied TupleSpace
. See TupleSpace#notify
Creates a singleton RingFinger
and looks for a RingServer
. Returns the created RingFinger
.
Returns the first advertised TupleSpace
.
Called by TupleSpace
to notify this NotifyTemplateEntry
of a new event.
Retrieves a notification. Raises RequestExpiredError
when this NotifyTemplateEntry
expires.
Registers for notifications of event
. Returns a NotifyTemplateEntry
. See NotifyTemplateEntry
for examples of how to listen for notifications.
event
can be:
A tuple was added
A tuple was taken or moved
A tuple was lost after being overwritten or expiring
The TupleSpace
will also notify you of the ‘close’ event when the NotifyTemplateEntry
has expired.
True when the gem has been activated
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
Reset the authoritative instance of the command manager.
Merges the requirements of other
into this dependency
Changes in rubygems to lazily loading ‘rubygems/command` (in order to lazily load `optparse` as a side effect) affect bundler’s custom installer which uses ‘Gem::Command` without requiring it (up until bundler 2.2.29). This hook is to compensate for that missing require.
TODO: Remove when rubygems no longer supports running on bundler older than 2.2.29.
Creates a new package that will read or write to the file gem
.
A list of file names contained in this 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
Noop this out so there are no anchors
Cached RemoteFetcher
instance.
Resets HTTP connection connection
.