ruby-changes:57190
From: Nobuyoshi <ko1@a...>
Date: Tue, 20 Aug 2019 17:00:59 +0900 (JST)
Subject: [ruby-changes:57190] Nobuyoshi Nakada: 73af1c4d00 (master): [rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']`
https://git.ruby-lang.org/ruby.git/commit/?id=73af1c4d00 From 73af1c4d0078dc3be0cbeca2445047be5c0d852b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 20 Aug 2019 13:56:04 +0900 Subject: [rubygems/rubygems] Use `RbConfig::CONFIG['rubylibprefix']` It is defined since ruby 1.9.2. https://github.com/rubygems/rubygems/commit/84981ca908 diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index cdc5fb7..d4ff4a2 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -34,16 +34,9 @@ module Gem https://github.com/ruby/ruby/blob/trunk/lib/rubygems/defaults.rb#L34 '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'] ] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/