[rubygems/rubygems] Hack to get Gem::Specification#extensions_dir
documented
https://github.com/rubygems/rubygems/commit/625b8293f7
This commit is contained in:
parent
9afd2957ed
commit
e6e4b4884d
@ -351,9 +351,8 @@ module Gem
|
|||||||
end
|
end
|
||||||
|
|
||||||
def extensions_dir
|
def extensions_dir
|
||||||
Gem.default_ext_dir_for(base_dir) ||
|
@extensions_dir ||=
|
||||||
File.join(base_dir, "extensions", ORIGINAL_LOCAL_PLATFORM,
|
Gem.default_ext_dir_for(base_dir) || File.join(base_dir, "extensions", ORIGINAL_LOCAL_PLATFORM, Gem.extension_api_version)
|
||||||
Gem.extension_api_version)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -530,13 +530,6 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
|
|
||||||
attr_reader :required_rubygems_version
|
attr_reader :required_rubygems_version
|
||||||
|
|
||||||
##
|
|
||||||
# The version of RubyGems used to create this gem.
|
|
||||||
#
|
|
||||||
# Do not set this, it is set automatically when the gem is packaged.
|
|
||||||
|
|
||||||
attr_accessor :rubygems_version
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# The key used to sign this gem. See Gem::Security for details.
|
# The key used to sign this gem. See Gem::Security for details.
|
||||||
|
|
||||||
@ -724,6 +717,21 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
@test_files = Array files
|
@test_files = Array files
|
||||||
end
|
end
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# :section: Read-only attributes
|
||||||
|
|
||||||
|
##
|
||||||
|
# The version of RubyGems used to create this gem.
|
||||||
|
|
||||||
|
attr_accessor :rubygems_version
|
||||||
|
|
||||||
|
##
|
||||||
|
# The path where this gem installs its extensions.
|
||||||
|
|
||||||
|
def extensions_dir
|
||||||
|
@extensions_dir ||= super
|
||||||
|
end
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# :section: Specification internals
|
# :section: Specification internals
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user