lib/bundler/settings.rb: Always respect Bundler.ruby_scope #2083

Closed
wants to merge 2 commits into
from
View
@@ -84,10 +84,10 @@ def without
# @local_config["BUNDLE_PATH"] should be prioritized over ENV["BUNDLE_PATH"]
def path
key = key_for(:path)
- path = ENV[key] || @global_config[key]
+ path = ENV[key]
return path if path && !@local_config.key?(key)
- if path = self[:path]
+ if path = self[:path] || @global_config[key]
"#{path}/#{Bundler.ruby_scope}"
else
Bundler.rubygems.gem_dir