This method is used inside of several different objects to determine if special behavior is needed in the constructor.
Special behavior is needed if the array passed in as args
has true
or false
as its value, and if the second element of args
is a hash.
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 OptionParser
to handle HTTP URIs.
Asks the user to answer question
with an answer from the given list
.
Parses a Range
header value ranges_specifier
Parses a Range
header value ranges_specifier
@return [String] a string suitable for debugging
Is there a path from ‘other` to `self` following edges in the dependency graph? @return true iff there is a path following edges within this {#graph}
@return [RequirementState] the current state the resolution is
operating upon
Register an event handler p
which is called everytime a line in file_name
is executed.
Example:
Tracer.set_get_line_procs("example.rb", lambda { |line| puts "line number executed is #{line}" })
Clear recorded tracing information.
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