diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-07 15:39:17 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-07 15:39:17 +0200 |
commit | 6091a7124b16cfcedea3c499832f418969e8ea4a (patch) | |
tree | 6a3697830fb91003cbc2271e940e6c68b9b694d7 | |
parent | 017e19f924827d9bd1019f82d605492463ad244d (diff) | |
download | bundler-remove_global_path_appends_ruby_scope.tar.gz |
Remove now unnecessary append_ruby_scope fieldremove_global_path_appends_ruby_scope
-rw-r--r-- | lib/bundler/settings.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index f670bf8779..277f831c92 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -209,17 +209,17 @@ module Bundler key = key_for(:path) path = ENV[key] || @global_config[key] if path && !@temporary.key?(key) && !@local_config.key?(key) - return Path.new(path, true, false, false) + return Path.new(path, false, false) end system_path = self["path.system"] || (self[:disable_shared_gems] == false) - Path.new(self[:path], true, system_path, Bundler.feature_flag.default_install_uses_path?) + Path.new(self[:path], system_path, Bundler.feature_flag.default_install_uses_path?) end - Path = Struct.new(:explicit_path, :append_ruby_scope, :system_path, :default_install_uses_path) do + Path = Struct.new(:explicit_path, :system_path, :default_install_uses_path) do def path path = base_path - path = File.join(path, Bundler.ruby_scope) if append_ruby_scope && !use_system_gems? + path = File.join(path, Bundler.ruby_scope) unless use_system_gems? path end |