mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
* lib/rubygems: Update to RubyGems 2.4.5.
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a0b80a4410
commit
97f80207d0
32 changed files with 458 additions and 103 deletions
|
@ -55,7 +55,14 @@ module Kernel
|
|||
gem_name = gem_name.name
|
||||
end
|
||||
|
||||
spec = Gem::Dependency.new(gem_name, *requirements).to_spec
|
||||
dep = Gem::Dependency.new(gem_name, *requirements)
|
||||
|
||||
loaded = Gem.loaded_specs[gem_name]
|
||||
|
||||
return false if loaded && dep.matches_spec?(loaded)
|
||||
|
||||
spec = dep.to_spec
|
||||
|
||||
Gem::LOADED_SPECS_MUTEX.synchronize {
|
||||
spec.activate
|
||||
} if spec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue