diff options
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 7ad35c0c4c..1c84356bd7 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -439,6 +439,18 @@ module Gem end ## + # The extension API version of ruby. This includes the static vs non-static + # distinction as extensions cannot be shared between the two. + + def self.extension_api_version # :nodoc: + if 'no' == RbConfig::CONFIG['ENABLE_SHARED'] then + "#{ruby_api_version}-static" + else + ruby_api_version + end + end + + ## # Returns a list of paths matching +glob+ that can be used by a gem to pick # up features from other gems. For example: # |