[rubygems/rubygems] Remove MacOS specific extra GEM_PATH

They should properly configure `GEM_PATH` instead.

3bd9ae33ca
This commit is contained in:
David Rodríguez 2021-08-08 10:40:11 +02:00 committed by Hiroshi SHIBATA
parent afabef5a5a
commit d01c3111c2
Notes: git 2021-08-31 19:07:07 +09:00
3 changed files with 3 additions and 55 deletions

View file

@ -462,20 +462,8 @@ By default, this RubyGems will install gem as:
lib_dir = RbConfig::CONFIG[site_or_vendor]
bin_dir = RbConfig::CONFIG['bindir']
else
# Apple installed RubyGems into libdir, and RubyGems <= 1.1.0 gets
# confused about installation location, so switch back to
# sitelibdir/vendorlibdir.
if defined?(APPLE_GEM_HOME) and
# just in case Apple and RubyGems don't get this patched up proper.
(prefix == RbConfig::CONFIG['libdir'] or
# this one is important
prefix == File.join(RbConfig::CONFIG['libdir'], 'ruby'))
lib_dir = RbConfig::CONFIG[site_or_vendor]
bin_dir = RbConfig::CONFIG['bindir']
else
lib_dir = File.join prefix, 'lib'
bin_dir = File.join prefix, 'bin'
end
lib_dir = File.join prefix, 'lib'
bin_dir = File.join prefix, 'bin'
end
unless install_destdir.empty?