diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-29 18:40:34 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-31 21:07:19 +0900 |
commit | 6b14249c9817b7afdad57de8b444c2ee4f42cd30 (patch) | |
tree | 14e0921c2249ebdcb33ea4d0e6f520795f0fad31 /lib | |
parent | 07dc9691a8221fecf4da32358ab8897529dc7b5c (diff) |
[rubygems/rubygems] In the rubies we support `Exception#path` is always there
https://github.com/rubygems/rubygems/commit/babf943144
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/security.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb index 93bc6588e6..5c67bf5f1b 100644 --- a/lib/rubygems/security.rb +++ b/lib/rubygems/security.rb @@ -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 ## |