summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-16 00:14:16 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-16 00:14:16 +0000
commit28918eac58eb6e2681d10839ac0d1430b2a4f1f9 (patch)
tree3c2c9e36118efe1d9406acdd14c186788879bea3 /lib/rubygems.rb
parentcfe1458078b8cf36e490c516977c52e1faa9e88a (diff)
* 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
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb12
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