1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "Try to revert the test failure with Ruby CI"

This reverts commit 8b27c23b5d.
This commit is contained in:
Hiroshi SHIBATA 2019-11-11 21:49:21 +09:00
parent 8b27c23b5d
commit f1f27da6c4
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -61,9 +61,13 @@ module Kernel
spec = dep.to_spec
Gem::LOADED_SPECS_MUTEX.synchronize do
spec.activate
end if spec
if spec
if Gem::LOADED_SPECS_MUTEX.owned?
spec.activate
else
Gem::LOADED_SPECS_MUTEX.synchronize { spec.activate }
end
end
end
private :gem