summaryrefslogtreecommitdiff
path: root/lib/bundler/runtime.rb
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2015-11-27 15:12:00 +0900
committerHomu <homu@barosl.com>2015-11-27 15:12:00 +0900
commit437f604956e629e1b96270d87f6fdb05b189de2d (patch)
treee01f1583c45652499610c07a95a28a5b869980f1 /lib/bundler/runtime.rb
parent50731b93d77fc8b4155d11306afb51d5e9534060 (diff)
parent046f2831c1518519c47b8b5be97c1ed8aef4e58c (diff)
downloadbundler-437f604956e629e1b96270d87f6fdb05b189de2d.tar.gz
Auto merge of #4124 - bundler:seg-rubocop, r=indirect
More rubocop_todo cleanup
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r--lib/bundler/runtime.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 179ce53ec4..63e345b04b 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -21,7 +21,7 @@ module Bundler
raise GemNotFound, "#{spec.full_name} is missing. Run `bundle` to get it."
end
- if activated_spec = Bundler.rubygems.loaded_specs(spec.name) and activated_spec.version != spec.version
+ if (activated_spec = Bundler.rubygems.loaded_specs(spec.name)) && activated_spec.version != spec.version
e = Gem::LoadError.new "You have already activated #{activated_spec.name} #{activated_spec.version}, " \
"but your Gemfile requires #{spec.name} #{spec.version}. Prepending " \
"`bundle exec` to your command may solve this."