omq-cli 0.5.2 → 0.5.4
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/omq/cli/cli_parser.rb +2 -2
- data/lib/omq/cli/version.rb +1 -1
- data/lib/omq/cli.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c1b5dcd4986d66825e3111c70c7fdafacc726e0561974b134942365bc91513a
|
|
4
|
+
data.tar.gz: df996f5b87e3edbb171e4cbfc3ecdc64d6b6bd05d7e3d44dcab90d08b903ea58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abb90ac13df5ce70438110572e462e51420d2a3d8c9c3cc766a00bf2c1897952e6d75a4c7bd219c5c5cc25ef6ab5dafaea62ec6ebb3ed14633d70343a6edebd5
|
|
7
|
+
data.tar.gz: c86bae0d3eea9a489d6be29ad49a3eea56a0e6bc93dc62506d321a1ab84d7f61b8e6dbd9779805d365fcd85f6f213055ec2d0c41b84333ec26c65c56d8095e5a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.4 — 2026-04-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Fix `--compress` crash** — `Zstd` constant was uninitialized because
|
|
8
|
+
`zstd-ruby` was no longer required at startup. Now required when `-z` is parsed.
|
|
9
|
+
- **Fix `--msgpack` crash** — same issue. Now required when `--msgpack` is parsed.
|
|
10
|
+
|
|
11
|
+
## 0.5.3 — 2026-04-07
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **HTTPS debug endpoint uses localhost.rb** — `OMQ_DEBUG_URI=https://...` now
|
|
16
|
+
uses `Localhost::Authority` for self-signed TLS, fixing "no shared cipher"
|
|
17
|
+
errors when accessing the async-debug web UI in a browser.
|
|
18
|
+
|
|
3
19
|
## 0.5.2 — 2026-04-07
|
|
4
20
|
|
|
5
21
|
### Fixed
|
data/lib/omq/cli/cli_parser.rb
CHANGED
|
@@ -309,7 +309,7 @@ module OMQ
|
|
|
309
309
|
o.on("-Q", "--quoted", "C-style quoted with escapes") { opts[:format] = :quoted }
|
|
310
310
|
o.on( "--raw", "Raw binary, no framing") { opts[:format] = :raw }
|
|
311
311
|
o.on("-J", "--jsonl", "JSON Lines (array of strings per line)") { opts[:format] = :jsonl }
|
|
312
|
-
o.on( "--msgpack", "MessagePack arrays (binary stream)") { opts[:format] = :msgpack }
|
|
312
|
+
o.on( "--msgpack", "MessagePack arrays (binary stream)") { require "msgpack"; opts[:format] = :msgpack }
|
|
313
313
|
o.on("-M", "--marshal", "Ruby Marshal stream (binary, Array<String>)") { opts[:format] = :marshal }
|
|
314
314
|
|
|
315
315
|
o.separator "\nSubscription/groups:"
|
|
@@ -346,7 +346,7 @@ module OMQ
|
|
|
346
346
|
o.on("--conflate", "Keep only last message per subscriber (PUB/RADIO)") { opts[:conflate] = true }
|
|
347
347
|
|
|
348
348
|
o.separator "\nCompression:"
|
|
349
|
-
o.on("-z", "--compress", "Zstandard compression per frame") { opts[:compress] = true }
|
|
349
|
+
o.on("-z", "--compress", "Zstandard compression per frame") { require "zstd-ruby"; opts[:compress] = true }
|
|
350
350
|
|
|
351
351
|
o.separator "\nProcessing (-e = incoming, -E = outgoing):"
|
|
352
352
|
o.on("-e", "--recv-eval EXPR", "Eval Ruby for each incoming message ($F = parts)") { |v| opts[:recv_expr] = v }
|
data/lib/omq/cli/version.rb
CHANGED
data/lib/omq/cli.rb
CHANGED
|
@@ -211,7 +211,12 @@ module OMQ
|
|
|
211
211
|
if ENV["OMQ_DEBUG_URI"]
|
|
212
212
|
begin
|
|
213
213
|
require "async/debug"
|
|
214
|
-
debug_ep = Async::HTTP::Endpoint.parse
|
|
214
|
+
debug_ep = Async::HTTP::Endpoint.parse(ENV["OMQ_DEBUG_URI"])
|
|
215
|
+
if debug_ep.scheme == "https"
|
|
216
|
+
require "localhost"
|
|
217
|
+
debug_ep = Async::HTTP::Endpoint.parse(ENV["OMQ_DEBUG_URI"],
|
|
218
|
+
ssl_context: Localhost::Authority.fetch.server_context)
|
|
219
|
+
end
|
|
215
220
|
rescue LoadError
|
|
216
221
|
abort "OMQ_DEBUG_URI requires the async-debug gem: gem install async-debug"
|
|
217
222
|
end
|