summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnkit Kataria <ankitkataria28@gmail.com>2019-02-21 02:59:59 +0530
committerAnkit Kataria <ankitkataria28@gmail.com>2019-02-21 02:59:59 +0530
commita0b91e3ad4e9243bdf73ca4eab6e755d93318899 (patch)
tree07418e404afe40be247108d103ee53087a7f06f8 /lib
parent5dc368b07c407702a485ed53d8fd8a8ab40fa9ef (diff)
downloadbundler-a0b91e3ad4e9243bdf73ca4eab6e755d93318899.tar.gz
add check for already installed plugin
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 9e5032c079..88d88320e6 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -106,7 +106,7 @@ module Bundler
end
end
- if installed?(spec) && !force
+ if (installed?(spec) || Plugin.installed?(spec.name)) && !force
print_using_message "Using #{version_message(spec)}"
return nil # no post-install message
end