summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Metcalfe <git@patrickmetcalfe.com>2015-07-01 14:06:06 -0500
committerAndre Arko <andre@arko.net>2015-07-01 22:19:07 -0700
commit33f39f00b4479610f2108a75b81c4af75ae34859 (patch)
tree49f080e5e8b48a8e1458abba49a0be38439c45a8
parent1fd9d080a73fde2afed709b6a9a9fa4af57aeee7 (diff)
downloadbundler-33f39f00b4479610f2108a75b81c4af75ae34859.tar.gz
match by name
Because its faster and okay since all specs with the same name were already filtered out.
-rw-r--r--lib/bundler/installer/parallel_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb
index 373700638f..6e05f73cb9 100644
--- a/lib/bundler/installer/parallel_installer.rb
+++ b/lib/bundler/installer/parallel_installer.rb
@@ -36,8 +36,8 @@ class ParallelInstaller
# Checks installed dependencies against spec's dependencies to make
# sure needed dependencies have been installed.
def dependencies_installed?(all_specs)
- installed_specs = all_specs.select(&:installed?).map(&:spec)
- dependencies.all? {|d| installed_specs.include? d }
+ 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