aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler
diff options
context:
space:
mode:
authorAndré Arko <mail@arko.net>2015-07-01 22:12:06 -0700
committerAndré Arko <mail@arko.net>2015-07-01 22:12:06 -0700
commitfafd671635036cb74c4bb28e3c1d25ce63a9d400 (patch)
tree9b05d66eceb04473b2400836e0b1b832a39dc8f4 /lib/bundler
parentd8c5e53b6e3115498e67b06158b42d59905a417e (diff)
parent8cc6a7d5aaa5e3097eb7eac101df134f8d068a10 (diff)
downloadbundler-fafd671635036cb74c4bb28e3c1d25ce63a9d400.tar.gz
Merge pull request #3800 from pducks32/wrong-order-parallel-installer
switch reject to select
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/installer/parallel_installer.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb
index 9c08c83b..6e05f73c 100644
--- a/lib/bundler/installer/parallel_installer.rb
+++ b/lib/bundler/installer/parallel_installer.rb
@@ -35,10 +35,9 @@ class ParallelInstaller
# Checks installed dependencies against spec's dependencies to make
# sure needed dependencies have been installed.
- def dependencies_installed?(remaining_specs)
- installed_specs = remaining_specs.reject(&:installed?).map(&:name)
- already_installed = lambda {|dep| installed_specs.include? dep.name }
- dependencies.all? {|d| already_installed[d] }
+ def dependencies_installed?(all_specs)
+ installed_specs = all_specs.select(&:installed?).map(&:name)
+ dependencies.all? {|d| installed_specs.include? d.name }
end
# Represents only the non-development dependencies and the ones that