diff options
author | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-07-01 14:06:06 -0500 |
---|---|---|
committer | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-07-01 14:06:06 -0500 |
commit | 45a253b502a3983845d711647275b30216d562ae (patch) | |
tree | 280ba8ad8bc33b26463cf56c10b8175e1ed8245d /lib/bundler/installer | |
parent | f0aa518a8d859b31a4bc4489afbed5d597289e9a (diff) | |
download | bundler-45a253b502a3983845d711647275b30216d562ae.tar.gz |
match by name
Because its faster and okay since all specs with the same name were
already filtered out.
Diffstat (limited to 'lib/bundler/installer')
-rw-r--r-- | lib/bundler/installer/parallel_installer.rb | 4 |
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 |