зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] In the rubies we support `Exception#path` is always there
https://github.com/rubygems/rubygems/commit/babf943144
This commit is contained in:
Родитель
07dc9691a8
Коммит
6b14249c98
|
@ -11,8 +11,7 @@ require 'fileutils'
|
|||
begin
|
||||
require 'openssl'
|
||||
rescue LoadError => e
|
||||
raise unless (e.respond_to?(:path) && e.path == 'openssl') ||
|
||||
e.message =~ / -- openssl$/
|
||||
raise unless e.path == 'openssl'
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Загрузка…
Ссылка в новой задаче