summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerri Miller <kerrizor@github.com>2017-03-17 17:13:32 -0700
committerKerri Miller <kerrizor@github.com>2017-03-17 17:13:32 -0700
commit40225103233cbe021232ce61e9b7fe270f4e08df (patch)
tree7d19a648938f65ebc29e9f93b4b15470278bb685
parent473c609fdc63d09b0c11f3bab25937ac13393dc6 (diff)
downloadbundler-40225103233cbe021232ce61e9b7fe270f4e08df.tar.gz
Account for differing behavior in hash#select between 1.8.7 and 1.9.3+
-rw-r--r--lib/bundler/plugin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb
index 8e203823ee..66f485ef8e 100644
--- a/lib/bundler/plugin.rb
+++ b/lib/bundler/plugin.rb
@@ -38,7 +38,7 @@ module Bundler
save_plugins names, specs
rescue PluginError => e
if specs
- specs_to_delete = specs.select {|k, _v| names.include?(k) && !index.commands.values.include?(k) }
+ specs_to_delete = Hash[specs.select {|k, _v| names.include?(k) && !index.commands.values.include?(k) }]
specs_to_delete.values.each {|spec| Bundler.rm_rf(spec.full_gem_path) }
end