From 28918eac58eb6e2681d10839ac0d1430b2a4f1f9 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 16 Oct 2013 00:14:16 +0000 Subject: * lib/rubygems: Update to RubyGems master commit 2a74263. This fixes several bugs in RubyGems 2.2.0.preview.1. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/rubygems.rb') 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 ||= [] @@ -822,6 +824,14 @@ module Gem @ruby 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+. -- cgit v1.2.1