diff options
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index f63a9b77af..7ad35c0c4c 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -8,7 +8,7 @@ require 'rbconfig' module Gem - VERSION = '2.2.0.preview.1' + VERSION = '2.2.0' end # Must be first since it unloads the prelude from 1.9.2 @@ -139,6 +139,7 @@ module Gem build_info cache doc + extensions gems specifications ] @@ -158,6 +159,7 @@ module Gem @path_to_default_spec_map = {} @platforms = [] @ruby = nil + @ruby_api_version = nil @sources = nil @post_build_hooks ||= [] @@ -823,6 +825,14 @@ module Gem end ## + # Returns a String containing the API compatibility version of Ruby + + def self.ruby_api_version + @ruby_api_version ||= + "#{ConfigMap[:MAJOR]}.#{ConfigMap[:MINOR]}.#{ConfigMap[:TEENY]}" + end + + ## # Returns the latest release-version specification for the gem +name+. def self.latest_spec_for name |