class

Gem::Resolver

v2_1_10 - Show latest stable - Superclass: Object

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

DEBUG_RESOLVER = !ENV['DEBUG_RESOLVER'].nil?

State = Struct.new(:needed, :specs, :dep, :spec, :possibles, :conflicts) do\ndef summary # :nodoc:\nnd = needed.map { |s| s.to_s }.sort if nd\n\nif specs then\nss = specs.map { |s| s.full_name }.sort\nss.unshift ss.length\nend\n\nd = dep.to_s\nd << " from #{dep.requester.full_name}" if dep.requester\n\nps = possibles.map { |p| p.full_name }.sort\nps.unshift ps.length\n\ncs = conflicts.map do |(s, c)|\n[s.full_name, c.conflicting_dependencies.map { |cd| cd.to_s }]\nend\n\n{ :needed => nd, :specs => ss, :dep => d, :spec => spec.full_name,\n:possibles => ps, :conflicts => cs }\nend\nend

Attributes

[R]conflicts
[RW]development
[RW]ignore_dependencies
[R]missing
[RW]soft_missing
[R]stats

Files

  • lib/rubygems/resolver.rb