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:
parent
dd58c4ba35
commit
73af1c4d00
1 changed files with 1 additions and 8 deletions
|
@ -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']
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue