Permalink
Browse files

Alphabetize DependencyResolver

  • Loading branch information...
1 parent 8b0a8cc commit d9a5ad455e12a9abb93483780334b55ad23d0df6 @drbrain drbrain committed Apr 3, 2013
Showing with 13 additions and 13 deletions.
  1. +13 −13 lib/rubygems/dependency_resolver.rb
@@ -58,6 +58,19 @@ def initialize needed, set = nil
@soft_missing = false
end
+ def requests s, act
+ reqs = []
+
+ s.dependencies.each do |d|
+ next if d.type == :development and not @development
+ reqs << Gem::DependencyResolver::DependencyRequest.new(d, act)
+ end
+
+ @set.prefetch reqs
+
+ reqs
+ end
+
##
# Proceed with resolution! Returns an array of ActivationRequest objects.
@@ -76,19 +89,6 @@ def resolve
res
end
- def requests s, act
- reqs = []
-
- s.dependencies.each do |d|
- next if d.type == :development and not @development
- reqs << Gem::DependencyResolver::DependencyRequest.new(d, act)
- end
-
- @set.prefetch reqs
-
- reqs
- end
-
##
# The meat of the algorithm. Given +needed+ DependencyRequest objects and
# +specs+ being a list to ActivationRequest, calculate a new list of

0 comments on commit d9a5ad4

Please sign in to comment.