diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-08-21 16:33:00 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | d0da3a2a7f48fb912d7617f19d18f32cb5d7eb56 (patch) | |
tree | e8ef9faec3c3c6c72809e405c986b09dbd345d9f /lib/bundler.rb | |
parent | 8d32f46d0447eb8df0ca816498bb29b7beb01eea (diff) |
[rubygems/rubygems] Remove more unused code
https://github.com/rubygems/rubygems/commit/986e889a79
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index ed5e1685ab..47f1fd248c 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -662,16 +662,11 @@ EOF end def configure_gem_path(env = ENV) - blank_home = env["GEM_HOME"].nil? || env["GEM_HOME"].empty? - if !use_system_gems? + unless use_system_gems? # this needs to be empty string to cause # PathSupport.split_gem_path to only load up the # Bundler --path setting as the GEM_PATH. env["GEM_PATH"] = "" - elsif blank_home - possibles = [Bundler.rubygems.gem_dir, Bundler.rubygems.gem_path] - paths = possibles.flatten.compact.uniq.reject(&:empty?) - env["GEM_PATH"] = paths.join(File::PATH_SEPARATOR) end end |