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.
Find
a Gem::Specification
of default gem from path
Remove needless Gem::Specification
of default gem from unresolved default gem list
Initializes a copy of a {DependencyGraph}, ensuring that all {#vertices} are properly copied. @param [DependencyGraph] other the graph to copy.
Adds a section with title
and content
to the parser help view. Used for adding command arguments and default arguments.
Remove everything in the DependencyList
that matches but doesn’t satisfy items in dependencies
(a hash of gem names to arrays of dependencies).
Search through all unresolved deps and sub-dependencies and return specs that contain the file matching path
.
Creates the initial state for the resolution, based upon the {#requested} dependencies @return [DependencyState] the initial state for the resolution
Used to detect if the gem is bundled in older version of Ruby, but not detectable as default gem (see BasicSpecification#default_gem?).
Reset nil attributes to their default values to make the spec valid
Unwinds the states stack because a conflict has been encountered @return [void]
@return [Integer] The index to which the resolution should unwind in the
case of conflict.