1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Use RbConfig::CONFIG['rubylibprefix']

It is defined since ruby 1.9.2.

https://github.com/rubygems/rubygems/commit/84981ca908
This commit is contained in:
Nobuyoshi Nakada 2019-08-20 13:56:04 +09:00
parent dd58c4ba35
commit 73af1c4d00

View file

@ -34,16 +34,9 @@ module Gem
'Gems',
RbConfig::CONFIG['ruby_version']
]
elsif RbConfig::CONFIG['rubylibprefix']
[
RbConfig::CONFIG['rubylibprefix'],
'gems',
RbConfig::CONFIG['ruby_version']
]
else
[
RbConfig::CONFIG['libdir'],
ruby_engine,
RbConfig::CONFIG['rubylibprefix'],
'gems',
RbConfig::CONFIG['ruby_version']
]