diff options
| author | Edouard CHIN <chin.edouard@gmail.com> | 2025-04-04 01:08:56 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-04-22 11:27:23 +0900 |
| commit | cda29294a912521a72e28d773e6aa6845535616d (patch) | |
| tree | 64cbdb21b5ce0d9e8a042d051396554e04329752 /libexec | |
| parent | c2e58a90435e506fde3ca055dc9eb3faa2ed6412 (diff) | |
[rubygems/rubygems] Add the `bundle doctor subcommand` skeleton:
- The command can either be run using:
1. `bundle doctor --ssl`
2. `bundle doctor ssl`
The later is most useful when you need to specify
custom ssl options (such as the verify mode or the
TLS version when running the diagnostic).
The implementation will follow in the next commits.
https://github.com/rubygems/rubygems/commit/993d12874c
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ssl_check.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libexec/ssl_check.rb b/libexec/ssl_check.rb index 09dbede5e4..de761e0ab3 100644 --- a/libexec/ssl_check.rb +++ b/libexec/ssl_check.rb @@ -1,22 +1,6 @@ #!/usr/bin/env ruby # Encoding: utf-8 -if RUBY_VERSION < "2.7" - warn "!!! WARNING !!!", - "Ruby #{RUBY_VERSION} has reached end-of-life, and is unsupported.", - "This script may not work.", - "" -end - -if ARGV.include?("-h") || ARGV.include?("--help") - puts "USAGE: check.rb [HOSTNAME] [TLS_VERSION] [VERIFY]" - puts " default: check.rb rubygems.org auto VERIFY_PEER" - puts " example: check.rb github.com TLSv1_2 VERIFY_NONE" - exit 0 -end - -host = ARGV.shift || "rubygems.org" - require 'uri' require 'net/http' @@ -40,8 +24,6 @@ rescue LoadError end uri = URI("https://#{host}") -tls_version = ARGV.shift -verify_mode = ARGV.any? ? OpenSSL::SSL.const_get(ARGV.shift) : OpenSSL::SSL::VERIFY_PEER if defined?(RUBY_DESCRIPTION) ruby_version = RUBY_DESCRIPTION |
