hoper 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 798cbae90f317375ef1727bc3b11f3807a8162f68a757a799cc50eb8c18ccc69
4
- data.tar.gz: 7336e24d62394b00bb3ee1ef2619016be10b6cf444f2147e7ba2c8943a9e2682
3
+ metadata.gz: 8e6f3743b6dc72bb43f8f8581dabfe05d41fab094d0fd548196d22515368859a
4
+ data.tar.gz: 1bf041f7cbf8f5e14c928d3c85b59d748488469db8fa602a475d40bea054ab56
5
5
  SHA512:
6
- metadata.gz: 0f701f780f3b81a7abaa85e15680103c314b81da5f1789e5b973409c440f212bb3ad2ddaa31c4e0be93b77b15edbb7451ed3f79dd289affbe9ef41f60ff2fa0a
7
- data.tar.gz: 00ca7e0c1e7b67089df3bbe8206a8562fcc3d6a32e41859770884a061e86b332afdc366882128575398a8a1bd3e2e9f077a5b44e9d2c8694262d0340c44296ac
6
+ metadata.gz: d6f063d86bc46f111bad3cbcf8fc8c1389d5c307ab43c1a06643d7f0e9953ab0635bf34e9eae2630755711251ea8f26c61d29f886a2807816e7c33de456272b3
7
+ data.tar.gz: ddbeaa08d3dc1fbf8f69915a5a54e250a9cd18472dc4fc3bd3746b43bc5c7f370d223ca2cd037db5069b87fc7d50066fa73b92b8d62caf67b1e26ccf4c7d2386
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Fixed
6
+ - Clear guidance for the `certificate verify failed (unable to get certificate CRL)` error,
7
+ caused by an outdated `openssl` Ruby gem running against OpenSSL 3.6+ (common on macOS
8
+ with Homebrew). Hoper now suggests `gem update openssl` instead of `--insecure`.
9
+
3
10
  ## 1.0.0
4
11
 
5
12
  Complete modernization.
data/README.md CHANGED
@@ -99,11 +99,22 @@ bundle install
99
99
  bundle exec rake test
100
100
  ```
101
101
 
102
- CI runs the test suite on Ubuntu, macOS and Windows against Ruby 3.1–3.4. Tests use a local
102
+ CI runs the test suite on Ubuntu, macOS and Windows (Ruby 4.0), plus the oldest supported Ruby (3.1) on Ubuntu. Tests use a local
103
103
  in-process HTTP server, so they don't need network access.
104
104
 
105
- To release a new version, update `lib/hoper/version.rb` and `CHANGELOG.md`, then run
106
- `bundle exec rake release`.
105
+ ### Releasing
106
+
107
+ Releases are automated with GitHub Actions and RubyGems Trusted Publishing:
108
+
109
+ 1. Bump `lib/hoper/version.rb` and add a section to `CHANGELOG.md`; merge to `master`.
110
+ 2. Tag and push:
111
+
112
+ ```bash
113
+ git tag v1.2.3 && git push origin v1.2.3
114
+ ```
115
+
116
+ The `Release` workflow checks the tag matches the version, runs the tests, publishes the gem
117
+ to RubyGems.org and creates a GitHub Release with the CHANGELOG notes.
107
118
 
108
119
  ## Contributing
109
120
 
data/lib/hoper/tracer.rb CHANGED
@@ -90,6 +90,18 @@ module Hoper
90
90
  raise InvalidURLError, "Not a valid http(s) URL: #{url}"
91
91
  end
92
92
 
93
+ # Known bug: the system OpenSSL 3.6+ combined with an outdated `openssl`
94
+ # Ruby gem fails every verification with "unable to get certificate CRL"
95
+ # even for valid certificates. Updating the gem fixes it.
96
+ def self.tls_hint(message)
97
+ if message.include?("unable to get certificate CRL")
98
+ "\n Your Ruby 'openssl' gem (#{OpenSSL::VERSION}) is incompatible with " \
99
+ "#{OpenSSL::OPENSSL_LIBRARY_VERSION}. Fix it with: gem update openssl"
100
+ else
101
+ " (use --insecure to skip verification)"
102
+ end
103
+ end
104
+
93
105
  private
94
106
 
95
107
  def request(uri)
@@ -150,7 +162,7 @@ module Hoper
150
162
  when Net::OpenTimeout, Net::ReadTimeout, Net::WriteTimeout, Timeout::Error
151
163
  "Timed out after #{timeout}s#{where}"
152
164
  when OpenSSL::SSL::SSLError
153
- "TLS error#{where}: #{error.message} (use --insecure to skip verification)"
165
+ "TLS error#{where}: #{error.message}#{self.class.tls_hint(error.message)}"
154
166
  else
155
167
  "#{error.class}: #{error.message}"
156
168
  end
data/lib/hoper/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hoper
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Aramburu
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-11-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: 'Hoper follows HTTP redirects step by step and shows each hop with its
14
13
  status code and timing, until the final URL. Pure Ruby, no native extensions: works
@@ -39,7 +38,6 @@ metadata:
39
38
  changelog_uri: https://github.com/gabamnml/hoper/blob/master/CHANGELOG.md
40
39
  bug_tracker_uri: https://github.com/gabamnml/hoper/issues
41
40
  rubygems_mfa_required: 'true'
42
- post_install_message:
43
41
  rdoc_options: []
44
42
  require_paths:
45
43
  - lib
@@ -54,8 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
52
  - !ruby/object:Gem::Version
55
53
  version: '0'
56
54
  requirements: []
57
- rubygems_version: 3.5.3
58
- signing_key:
55
+ rubygems_version: 4.0.20
59
56
  specification_version: 4
60
57
  summary: Trace every redirect (hop) a URL goes through.
61
58
  test_files: []