mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove more unused code
https://github.com/rubygems/rubygems/commit/986e889a79
This commit is contained in:
parent
8d32f46d04
commit
d0da3a2a7f
Notes:
git
2021-08-31 19:07:01 +09:00
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue