Gem::Resolver

Given a set of Gem::Dependency objects as
needed and a way to query the set of available specs via
set, calculates a set of ActivationRequest objects which
indicate all the specs that should be activated to meet the all the
requirements.

Constants

If the DEBUG_RESOLVER
environment variable is set then debugging mode is enabled for the
resolver. This will display information about the state of the resolver
while a set of dependencies is being resolved.

List of dependencies that could not be found in the configured sources.

soft_missing[RW]

When a missing dependency, don’t stop. Just go on and record what was
missing.

stats[R]

Public Class Methods

compose_sets(*sets)click to toggle source

Combines sets into a ComposedSet that allows specification
lookup in a uniform manner. If one of the sets is itself a ComposedSet its sets are flattened
into the result ComposedSet.

# File rubygems/resolver.rb, line 57defself.compose_sets*setssets.compact!sets = sets.mapdo|set|casesetwhenGem::Resolver::ComposedSetthenset.setselsesetendend.flattencasesets.lengthwhen0thenraiseArgumentError, 'one set in the composition must be non-nil'when1thensets.firstelseGem::Resolver::ComposedSet.new(*sets)
endend

for_current_gems(needed)click to toggle source

Creates a Resolver that queries only against
the already installed gems for the needed dependencies.