зеркало из https://github.com/github/ruby.git
Try to continue on LoadError with gem_original_require
This commit is contained in:
Родитель
22d9bd944d
Коммит
d8148650f6
|
@ -54,8 +54,12 @@ module Kernel
|
|||
end
|
||||
|
||||
if resolved_path
|
||||
RUBYGEMS_ACTIVATION_MONITOR.exit
|
||||
return gem_original_require(resolved_path)
|
||||
begin
|
||||
RUBYGEMS_ACTIVATION_MONITOR.exit
|
||||
return gem_original_require(resolved_path)
|
||||
rescue LoadError
|
||||
RUBYGEMS_ACTIVATION_MONITOR.enter
|
||||
end
|
||||
end
|
||||
|
||||
if spec = Gem.find_unresolved_default_spec(path)
|
||||
|
|
Загрузка…
Ссылка в новой задаче