Skip to content
Browse files

Fix a couple of bugs

  • Loading branch information...
1 parent 55986be commit eb4f0145f4d6f9a3750edc11ddd72ce12f8581e9 @ferrous26 committed Feb 12, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/rubygems-compile/compile_methods.rb
View
9 lib/rubygems-compile/compile_methods.rb
@@ -33,7 +33,7 @@ def dependencies_for specs
specs.map { |spec|
spec.runtime_dependencies.map { |dep|
deps = Gem.source_index.find_name(dep.name, dep.requirement)
- deps + dependencies_for(*deps)
+ deps + dependencies_for(deps)
}
}
end
@@ -44,8 +44,9 @@ def execution_list
return all_gemspecs if options[:all]
specs = get_all_gem_names.map { |gem|
- names = Gem::Specification.find_all_by_name(gem, options[:version])
- names << dependencies_for(names) unless options[:ignore]
+ gems = Gem::Specification.find_all_by_name(gem, options[:version])
+ gems << dependencies_for(gems) unless options[:ignore]
+ gems
}
specs.flatten!
specs.uniq!
@@ -64,7 +65,7 @@ def dependencies_for specs
specs.map { |spec|
spec.runtime_dependencies.map { |dep|
deps = Gem::Specification.find_all_by_name(dep.name, dep.requirement)
- deps + dependencies_for(*deps)
+ deps + dependencies_for(deps)
}
}
end

0 comments on commit eb4f014

Please sign in to comment.
Something went wrong with that request. Please try again.