- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
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
State = Struct.new(:needed, :specs, :dep, :spec, :possibles, :conflicts) do def summary # :nodoc: nd = needed.map { |s| s.to_s }.sort if nd if specs then ss = specs.map { |s| s.full_name }.sort ss.unshift ss.length end d = dep.to_s d << " from #{dep.requester.full_name}" if dep.requester ps = possibles.map { |p| p.full_name }.sort ps.unshift ps.length cs = conflicts.map do |(s, c)| [s.full_name, c.conflicting_dependencies.map { |cd| cd.to_s }] end { :needed => nd, :specs => ss, :dep => d, :spec => spec.full_name, :possibles => ps, :conflicts => cs } end end
DEBUG_RESOLVER = !ENV['DEBUG_RESOLVER'].nil?
Attributes
[RW] | soft_missing |
When a missing dependency, don’t stop. Just go on and record what was missing. |
[R] | stats | |
[R] | missing |
List of dependencies that could not be found in the configured sources. |
[RW] | ignore_dependencies |
When true, no dependencies are looked up for requested gems. |
[RW] | development |
Set to true if development dependencies should be considered. |
[R] | conflicts |
Contains all the conflicts encountered while doing resolution |