Class: Gem::Molinillo::Resolver::Resolution::Conflict

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb,
lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb

Overview

A conflict that the resolution process encountered

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activated_by_name{String=>Object}

the already-activated specs.

Returns:

  • ({String=>Object})

    the current value of activated_by_name



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def activated_by_name
  @activated_by_name
end

#existingObject?

the existing spec that was in conflict with the #possibility

Returns:

  • (Object, nil)

    the current value of existing



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def existing
  @existing
end

#locked_requirementObject

the relevant locking requirement.

Returns:

  • (Object)

    the current value of locked_requirement



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def locked_requirement
  @locked_requirement
end

#possibility_setObject

the set of specs that was unable to be activated due to a conflict.

Returns:

  • (Object)

    the current value of possibility_set



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def possibility_set
  @possibility_set
end

#requirementObject

the requirement that immediately led to the conflict

Returns:

  • (Object)

    the current value of requirement



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def requirement
  @requirement
end

#requirement_treesArray<Array<Object>>

the different requirement trees that led to every requirement for the conflicting name.

Returns:

  • (Array<Array<Object>>)

    the current value of requirement_trees



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def requirement_trees
  @requirement_trees
end

#requirements{String,Nil=>[Object]}

the requirements that caused the conflict

Returns:

  • ({String,Nil=>[Object]})

    the current value of requirements



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def requirements
  @requirements
end

#underlying_errorObject

an error that has occurred during resolution, and will be raised at the end of it if no resolution is found.

Returns:

  • (Object)

    the current value of underlying_error



20
21
22
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 20

def underlying_error
  @underlying_error
end

Instance Method Details

#possibilityObject

Returns a spec that was unable to be activated due to a conflict.

Returns:

  • (Object)

    a spec that was unable to be activated due to a conflict



33
34
35
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/resolution.rb', line 33

def possibility
  possibility_set && possibility_set.latest_version
end