Yields to a block and preserves the previous set of objects being printed.
Check whether the object_id id
is in the current buffer of objects to be pretty printed. Used to break cycles in chains of objects to be pretty printed.
Adds the object_id id
to the set of objects being pretty printed, so as to not repeat objects.
Removes an object from the set of objects being pretty printed.
Creates an RubyGems API to host
and path
with the given HTTP method
.
If allowed_push_host
metadata is present, then it will only allow that host.
Retrieves the pre-configured API key key
or terminates interaction with an error.
Allows Gem::OptionParser
to handle HTTP URIs.
Asks the user to answer question
with an answer from the given list
.
@return [String] a string suitable for debugging
Is there a path from ‘other` to `self` following edges in the dependency graph? @return whether there is a path following edges within this {#graph}
@return [RequirementState] the current state the resolution is
operating upon
Clear recorded tracing information.
Constant time memory comparison for fixed length strings, such as results of HMAC
calculations.
Returns true
if the strings are identical, false
if they are of the same length but not identical. If the length is different, ArgumentError
is raised.
Quietly ensure the Gem
directory dir
contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode
is given, missing directories are created with this mode.
World-writable directories will never be created.
Find
a Gem::Specification
of default gem from path
Creates a State
object from opts, which ought to be Hash
to create a new State
instance configured by opts, something else to create an unconfigured instance. If opts is a State
object, it is just returned.