diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-20 13:56:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-20 17:00:13 +0900 |
commit | 73af1c4d0078dc3be0cbeca2445047be5c0d852b (patch) | |
tree | 3ab7ebd57a070deefe44f0c07baeb5e5073df05b | |
parent | dd58c4ba3576d5dc1489767a25de9540b79b0ef9 (diff) | |
download | ruby-73af1c4d0078dc3be0cbeca2445047be5c0d852b.tar.gz |
[rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']`
It is defined since ruby 1.9.2.
https://github.com/rubygems/rubygems/commit/84981ca908
-rw-r--r-- | lib/rubygems/defaults.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index cdc5fb7acb..d4ff4a262c 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -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'] ] |