mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove MacOS specific gem layout
MacOS should properly configure Ruby. They should not expect us to
maintain a different layout just for them.
ecad900925
This commit is contained in:
parent
717ad64f41
commit
afabef5a5a
Notes:
git
2021-08-31 19:07:08 +09:00
1 changed files with 2 additions and 20 deletions
|
@ -34,21 +34,7 @@ module Gem
|
||||||
# specified in the environment
|
# specified in the environment
|
||||||
|
|
||||||
def self.default_dir
|
def self.default_dir
|
||||||
path = if defined? RUBY_FRAMEWORK_VERSION
|
@default_dir ||= File.join(RbConfig::CONFIG['rubylibprefix'], 'gems', RbConfig::CONFIG['ruby_version'])
|
||||||
[
|
|
||||||
File.dirname(RbConfig::CONFIG['sitedir']),
|
|
||||||
'Gems',
|
|
||||||
RbConfig::CONFIG['ruby_version'],
|
|
||||||
]
|
|
||||||
else
|
|
||||||
[
|
|
||||||
RbConfig::CONFIG['rubylibprefix'],
|
|
||||||
'gems',
|
|
||||||
RbConfig::CONFIG['ruby_version'],
|
|
||||||
]
|
|
||||||
end
|
|
||||||
|
|
||||||
@default_dir ||= File.join(*path)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -197,11 +183,7 @@ module Gem
|
||||||
# The default directory for binaries
|
# The default directory for binaries
|
||||||
|
|
||||||
def self.default_bindir
|
def self.default_bindir
|
||||||
if defined? RUBY_FRAMEWORK_VERSION # mac framework support
|
RbConfig::CONFIG['bindir']
|
||||||
'/usr/local/bin'
|
|
||||||
else # generic install
|
|
||||||
RbConfig::CONFIG['bindir']
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.ruby_engine
|
def self.ruby_engine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue