summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/security.rb3
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
##