Gets the hostname for address
from the DNS
resolver.
address
must be a Resolv::IPv4
, Resolv::IPv6
or a String
. Retrieved name will be a Resolv::DNS::Name
.
Gets all hostnames for address
from the DNS
resolver.
address
must be a Resolv::IPv4
, Resolv::IPv6
or a String
. Retrieved names will be Resolv::DNS::Name
instances.
Look up the typeclass
DNS
resource of name
.
name
must be a Resolv::DNS::Name
or a String
.
typeclass
should be one of the following:
Resolv::DNS::Resource::IN::ANY
Resolv::DNS::Resource::IN::CNAME
Resolv::DNS::Resource::IN::HINFO
Resolv::DNS::Resource::IN::MINFO
Resolv::DNS::Resource::IN::MX
Resolv::DNS::Resource::IN::NS
Resolv::DNS::Resource::IN::PTR
Resolv::DNS::Resource::IN::SOA
Resolv::DNS::Resource::IN::TXT
Returned resource is represented as a Resolv::DNS::Resource
instance, i.e. Resolv::DNS::Resource::IN::A
.
Looks up all typeclass
DNS
resources for name
. See getresource
for argument details.
Version of the gem
Override to display the usage for an individual gem command.
The text “[options]” is automatically appended to the usage text.
Create on demand parser.
Does this dependency require a prerelease?
The Requirement of the unresolved dependency (not Version).
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.
Filename of the gem being installed.
Indicate if this NameTuple
is for a prerelease version.
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.
Moves the gem spec
from source_uri
to the cache dir unless it is already there. If the source_uri is local the gem cache dir copy is always replaced.
Declare that a gem of name name
with reqs
requirements is needed.
A requirement is a prerelease if any of the versions inside of it are prereleases
A string representation of this Version
.
A version is considered a prerelease if it contains a letter.
Downloads spec
and writes it to dir
. See also Gem::RemoteFetcher#download
.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.
Loads Ruby format gemspec from file
.