Skip to content

Commit 2f54422

Browse files
hsbtmatzbot
authored andcommitted
[rubygems/rubygems] Update namespace Gem::Resolver::Molinillo to Gem::Molinillo
rubygems/rubygems@6c4caf3ab0
1 parent b31995d commit 2f54422

21 files changed

+56
-56
lines changed

lib/rubygems/resolver.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def requests(s, act, reqs=[]) # :nodoc:
167167
reqs
168168
end
169169

170-
include Molinillo::UI
170+
include Gem::Molinillo::UI
171171

172172
def output
173173
@output ||= debug? ? $stdout : File.open(IO::NULL, "w")
@@ -177,14 +177,14 @@ def debug?
177177
DEBUG_RESOLVER
178178
end
179179

180-
include Molinillo::SpecificationProvider
180+
include Gem::Molinillo::SpecificationProvider
181181

182182
##
183183
# Proceed with resolution! Returns an array of ActivationRequest objects.
184184

185185
def resolve
186-
Molinillo::Resolver.new(self, self).resolve(@needed.map {|d| DependencyRequest.new d, nil }).tsort.map(&:payload).compact
187-
rescue Molinillo::VersionConflict => e
186+
Gem::Molinillo::Resolver.new(self, self).resolve(@needed.map {|d| DependencyRequest.new d, nil }).tsort.map(&:payload).compact
187+
rescue Gem::Molinillo::VersionConflict => e
188188
conflict = e.conflicts.values.first
189189
raise Gem::DependencyResolutionError, Conflict.new(conflict.requirement_trees.first.first, conflict.existing, conflict.requirement)
190190
ensure

lib/rubygems/vendor/molinillo/lib/molinillo.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
require_relative 'molinillo/modules/ui'
77
require_relative 'molinillo/modules/specification_provider'
88

9-
# Gem::Resolver::Molinillo is a generic dependency resolution algorithm.
10-
module Gem::Resolver::Molinillo
9+
# Gem::Molinillo is a generic dependency resolution algorithm.
10+
module Gem::Molinillo
1111
end

lib/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
# frozen_string_literal: true
22

3-
module Gem::Resolver::Molinillo
3+
module Gem::Molinillo
44
# @!visibility private
55
module Delegates
6-
# Delegates all {Gem::Resolver::Molinillo::ResolutionState} methods to a `#state` property.
6+
# Delegates all {Gem::Molinillo::ResolutionState} methods to a `#state` property.
77
module ResolutionState
8-
# (see Gem::Resolver::Molinillo::ResolutionState#name)
8+
# (see Gem::Molinillo::ResolutionState#name)
99
def name
10-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
10+
current_state = state || Gem::Molinillo::ResolutionState.empty
1111
current_state.name
1212
end
1313

14-
# (see Gem::Resolver::Molinillo::ResolutionState#requirements)
14+
# (see Gem::Molinillo::ResolutionState#requirements)
1515
def requirements
16-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
16+
current_state = state || Gem::Molinillo::ResolutionState.empty
1717
current_state.requirements
1818
end
1919

20-
# (see Gem::Resolver::Molinillo::ResolutionState#activated)
20+
# (see Gem::Molinillo::ResolutionState#activated)
2121
def activated
22-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
22+
current_state = state || Gem::Molinillo::ResolutionState.empty
2323
current_state.activated
2424
end
2525

26-
# (see Gem::Resolver::Molinillo::ResolutionState#requirement)
26+
# (see Gem::Molinillo::ResolutionState#requirement)
2727
def requirement
28-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
28+
current_state = state || Gem::Molinillo::ResolutionState.empty
2929
current_state.requirement
3030
end
3131

32-
# (see Gem::Resolver::Molinillo::ResolutionState#possibilities)
32+
# (see Gem::Molinillo::ResolutionState#possibilities)
3333
def possibilities
34-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
34+
current_state = state || Gem::Molinillo::ResolutionState.empty
3535
current_state.possibilities
3636
end
3737

38-
# (see Gem::Resolver::Molinillo::ResolutionState#depth)
38+
# (see Gem::Molinillo::ResolutionState#depth)
3939
def depth
40-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
40+
current_state = state || Gem::Molinillo::ResolutionState.empty
4141
current_state.depth
4242
end
4343

44-
# (see Gem::Resolver::Molinillo::ResolutionState#conflicts)
44+
# (see Gem::Molinillo::ResolutionState#conflicts)
4545
def conflicts
46-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
46+
current_state = state || Gem::Molinillo::ResolutionState.empty
4747
current_state.conflicts
4848
end
4949

50-
# (see Gem::Resolver::Molinillo::ResolutionState#unused_unwind_options)
50+
# (see Gem::Molinillo::ResolutionState#unused_unwind_options)
5151
def unused_unwind_options
52-
current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
52+
current_state = state || Gem::Molinillo::ResolutionState.empty
5353
current_state.unused_unwind_options
5454
end
5555
end

lib/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
# frozen_string_literal: true
22

3-
module Gem::Resolver::Molinillo
3+
module Gem::Molinillo
44
module Delegates
5-
# Delegates all {Gem::Resolver::Molinillo::SpecificationProvider} methods to a
5+
# Delegates all {Gem::Molinillo::SpecificationProvider} methods to a
66
# `#specification_provider` property.
77
module SpecificationProvider
8-
# (see Gem::Resolver::Molinillo::SpecificationProvider#search_for)
8+
# (see Gem::Molinillo::SpecificationProvider#search_for)
99
def search_for(dependency)
1010
with_no_such_dependency_error_handling do
1111
specification_provider.search_for(dependency)
1212
end
1313
end
1414

15-
# (see Gem::Resolver::Molinillo::SpecificationProvider#dependencies_for)
15+
# (see Gem::Molinillo::SpecificationProvider#dependencies_for)
1616
def dependencies_for(specification)
1717
with_no_such_dependency_error_handling do
1818
specification_provider.dependencies_for(specification)
1919
end
2020
end
2121

22-
# (see Gem::Resolver::Molinillo::SpecificationProvider#requirement_satisfied_by?)
22+
# (see Gem::Molinillo::SpecificationProvider#requirement_satisfied_by?)
2323
def requirement_satisfied_by?(requirement, activated, spec)
2424
with_no_such_dependency_error_handling do
2525
specification_provider.requirement_satisfied_by?(requirement, activated, spec)
2626
end
2727
end
2828

29-
# (see Gem::Resolver::Molinillo::SpecificationProvider#dependencies_equal?)
29+
# (see Gem::Molinillo::SpecificationProvider#dependencies_equal?)
3030
def dependencies_equal?(dependencies, other_dependencies)
3131
with_no_such_dependency_error_handling do
3232
specification_provider.dependencies_equal?(dependencies, other_dependencies)
3333
end
3434
end
3535

36-
# (see Gem::Resolver::Molinillo::SpecificationProvider#name_for)
36+
# (see Gem::Molinillo::SpecificationProvider#name_for)
3737
def name_for(dependency)
3838
with_no_such_dependency_error_handling do
3939
specification_provider.name_for(dependency)
4040
end
4141
end
4242

43-
# (see Gem::Resolver::Molinillo::SpecificationProvider#name_for_explicit_dependency_source)
43+
# (see Gem::Molinillo::SpecificationProvider#name_for_explicit_dependency_source)
4444
def name_for_explicit_dependency_source
4545
with_no_such_dependency_error_handling do
4646
specification_provider.name_for_explicit_dependency_source
4747
end
4848
end
4949

50-
# (see Gem::Resolver::Molinillo::SpecificationProvider#name_for_locking_dependency_source)
50+
# (see Gem::Molinillo::SpecificationProvider#name_for_locking_dependency_source)
5151
def name_for_locking_dependency_source
5252
with_no_such_dependency_error_handling do
5353
specification_provider.name_for_locking_dependency_source
5454
end
5555
end
5656

57-
# (see Gem::Resolver::Molinillo::SpecificationProvider#sort_dependencies)
57+
# (see Gem::Molinillo::SpecificationProvider#sort_dependencies)
5858
def sort_dependencies(dependencies, activated, conflicts)
5959
with_no_such_dependency_error_handling do
6060
specification_provider.sort_dependencies(dependencies, activated, conflicts)
6161
end
6262
end
6363

64-
# (see Gem::Resolver::Molinillo::SpecificationProvider#allow_missing?)
64+
# (see Gem::Molinillo::SpecificationProvider#allow_missing?)
6565
def allow_missing?(dependency)
6666
with_no_such_dependency_error_handling do
6767
specification_provider.allow_missing?(dependency)

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require_relative 'dependency_graph/log'
66
require_relative 'dependency_graph/vertex'
77

8-
module Gem::Resolver::Molinillo
8+
module Gem::Molinillo
99
# A directed acyclic graph that is tuned to hold named dependencies
1010
class DependencyGraph
1111
include Enumerable

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Gem::Resolver::Molinillo
3+
module Gem::Molinillo
44
class DependencyGraph
55
# An action that modifies a {DependencyGraph} that is reversible.
66
# @abstract

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative 'action'
4-
module Gem::Resolver::Molinillo
4+
module Gem::Molinillo
55
class DependencyGraph
66
# @!visibility private
77
# (see DependencyGraph#add_edge_no_circular)

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative 'action'
4-
module Gem::Resolver::Molinillo
4+
module Gem::Molinillo
55
class DependencyGraph
66
# @!visibility private
77
# (see DependencyGraph#add_vertex)

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative 'action'
4-
module Gem::Resolver::Molinillo
4+
module Gem::Molinillo
55
class DependencyGraph
66
# @!visibility private
77
# (see DependencyGraph#delete_edge)

lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative 'action'
4-
module Gem::Resolver::Molinillo
4+
module Gem::Molinillo
55
class DependencyGraph
66
# @!visibility private
77
# @see DependencyGraph#detach_vertex_named

0 commit comments

Comments
 (0)