[rubygems/rubygems] In the rubies we support `Exception#path` is always there

https://github.com/rubygems/rubygems/commit/babf943144
This commit is contained in:
David Rodríguez 2020-06-29 18:40:34 +02:00 коммит произвёл Hiroshi SHIBATA
Родитель 07dc9691a8
Коммит 6b14249c98
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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
##