aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/version.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-05 22:18:25 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-05 22:18:25 +0000
commitb9a4cf2aca343d8d9cd370775af927cd750a17b2 (patch)
treee5178ccf57c4c73fd0a083c4e821698430dd6332 /lib/rubygems/version.rb
parent62d37fb7dba91b6638554e786c9e3320786ac06a (diff)
downloadruby-b9a4cf2aca343d8d9cd370775af927cd750a17b2.tar.gz
* lib/rubygems: Update to RubyGems 2.2.2. Complete history at:
http://rubygems.rubyforge.org/rubygems-update/History_txt.html#label-2.2.2+%2F+2014-02-05 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/version.rb')
-rw-r--r--lib/rubygems/version.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb
index 28b2e09701..20663326ef 100644
--- a/lib/rubygems/version.rb
+++ b/lib/rubygems/version.rb
@@ -189,6 +189,8 @@ class Gem::Version
@@all = {}
def self.new version # :nodoc:
+ return super unless Gem::VERSION == self.class
+
@@all[version] ||= super
end