diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-22 16:33:18 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-22 16:33:18 +0000 |
commit | b264a7ac99aae23e0dfa3b677485db54ea9d5107 (patch) | |
tree | c81980ea4b5c9750fb1149b8011c2d092e7ffdcb /lib/rubygems.rb | |
parent | 65dc7d004e6a458155a5f1ddd42439695e1ef10c (diff) |
* lib/rubygems: Update to RubyGems 2.0.5.
The patch provided by drbrain (Eric Hodel). [ruby-core:55896]
[Backport #8617]
* test/rubygems: Tests for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 3622f7102d..ee9e56a0c8 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -8,7 +8,7 @@ require 'rbconfig' module Gem - VERSION = '2.0.3' + VERSION = '2.0.5' end # Must be first since it unloads the prelude from 1.9.2 @@ -173,7 +173,12 @@ module Gem # require will try to activate the more specific version. spec = Gem::Specification.find_inactive_by_path path - return false unless spec + + unless spec + spec = Gem::Specification.find_by_path path + return true if spec && spec.activated? + return false + end begin spec.activate |