summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-07-11 10:04:39 +0200
committerHiroshi SHIBATA <[email protected]>2020-07-31 21:07:19 +0900
commitb84b4e8bfac71842f795985bea814575f0a1eccb (patch)
tree1b84eb57397e3c1f474b54dcc7394b415ed25a67
parentd3efba0950b3d73e9cea1b8cecf3d0b44323f77e (diff)
[rubygems/rubygems] Remove unnecessary stuff
The `rubygems/security` require already does this. https://github.com/rubygems/rubygems/commit/bbb444b6f1
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
-rw-r--r--lib/rubygems/commands/cert_command.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/commands/cert_command.rb b/lib/rubygems/commands/cert_command.rb
index 837cb9526f..e5355d3652 100644
--- a/lib/rubygems/commands/cert_command.rb
+++ b/lib/rubygems/commands/cert_command.rb
@@ -1,12 +1,6 @@
# frozen_string_literal: true
require 'rubygems/command'
require 'rubygems/security'
-begin
- require 'openssl'
-rescue LoadError => e
- raise unless (e.respond_to?(:path) && e.path == 'openssl') ||
- e.message =~ / -- openssl$/
-end
class Gem::Commands::CertCommand < Gem::Command
def initialize