Module: Bundler::Molinillo::Delegates::ResolutionState

Included in:
Resolver::Resolution
Defined in:
lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb

Overview

Delegates all ResolutionState methods to a ‘#state` property.

Instance Method Summary collapse

Instance Method Details

#activatedObject

the graph of activated dependencies



21
22
23
24
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 21

def activated
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.activated
end

#conflictsObject

unresolved conflicts, indexed by dependency name



45
46
47
48
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 45

def conflicts
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.conflicts
end

#depthObject

the depth of the resolution



39
40
41
42
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 39

def depth
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.depth
end

#nameObject

the name of the current requirement



9
10
11
12
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 9

def name
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.name
end

#possibilitiesObject

the possibilities to satisfy the current requirement



33
34
35
36
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 33

def possibilities
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.possibilities
end

#requirementObject

the current requirement



27
28
29
30
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 27

def requirement
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.requirement
end

#requirementsObject

currently unsatisfied requirements



15
16
17
18
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 15

def requirements
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.requirements
end

#unused_unwind_optionsObject

unwinds for previous conflicts that weren’t explored



51
52
53
54
# File 'lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb', line 51

def unused_unwind_options
  current_state = state || Bundler::Molinillo::ResolutionState.empty
  current_state.unused_unwind_options
end