class Bundler::Molinillo::VersionConflict

def initialize(conflicts, specification_provider)

Parameters:
  • specification_provider (SpecificationProvider) -- see {#specification_provider}
  • conflicts ({String => Resolution::Conflict}) -- see {#conflicts}
def initialize(conflicts, specification_provider)
  pairs = []
  conflicts.values.flat_map(&:requirements).each do |conflicting|
    conflicting.each do |source, conflict_requirements|
      conflict_requirements.each do |c|
        pairs << [c, source]
      end
    end
  end
  super "Unable to satisfy the following requirements:\n\n" \
    "#{pairs.map { |r, d| "- `#{r}` required by `#{d}`" }.join("\n")}"
  @conflicts = conflicts
  @specification_provider = specification_provider
end