diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-08 22:41:03 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-08 22:41:03 +0000 |
commit | 7083cebeaea83096128fc5ccb5f60bfbe5bcc939 (patch) | |
tree | fb25c12a6cc01a1a8de5221d64da632418e194a3 /lib/rubygems.rb | |
parent | fa343a796fd256fc9098db7fdddf226fe5cbd181 (diff) |
* lib/rubygems: Update to RubyGems 2.0.4. See
https://github.com/rubygems/rubygems/blob/2.0/History.txt for changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41843 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..2c8dbee2a2 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -8,7 +8,7 @@ require 'rbconfig' module Gem - VERSION = '2.0.3' + VERSION = '2.0.4' 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 |