class Bundler::Molinillo::VersionConflict
An error caused by conflicts in version
def initialize(conflicts)
-
conflicts
({String => Resolution::Conflict}
) -- see {#conflicts}
def initialize(conflicts) pairs = [] conflicts.values.flatten.map(&:requirements).flatten.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 end