Exception: Gem::Resolver::Molinillo::VersionConflict
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ResolverError,
StandardError
|
|
Instance Chain:
self,
ResolverError,
StandardError
|
|
Inherits: |
Gem::Resolver::Molinillo::ResolverError
|
Defined in: | lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb |
Overview
An error caused by conflicts in version
Class Method Summary
-
.new(conflicts) ⇒ VersionConflict
constructor
Initializes a new error with the given version conflicts.
Instance Attribute Summary
Constructor Details
.new(conflicts) ⇒ VersionConflict
Initializes a new error with the given version conflicts.
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 60
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
Instance Attribute Details
#conflicts ⇒ {String
=> Resolution::Conflict
} (readonly)
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 56
attr_reader :conflicts