omq-cli 0.5.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e279857e2f3a00719143f4a8e4acec228ec3dd4fff595762d8a46aa7d9205ac2
4
- data.tar.gz: 9fd8f925a13d9e0f54eeea65f4b13153547b270173c3e1904d82318c50b08981
3
+ metadata.gz: 9c1b5dcd4986d66825e3111c70c7fdafacc726e0561974b134942365bc91513a
4
+ data.tar.gz: df996f5b87e3edbb171e4cbfc3ecdc64d6b6bd05d7e3d44dcab90d08b903ea58
5
5
  SHA512:
6
- metadata.gz: 729730a75a5173ba8217e4ae3d28bafa42257332d0b8082df3b8267f224f398dd8da93dfa7db05970580dc40fe23bc511a3d4864b0fea75db1a5b55795b537a4
7
- data.tar.gz: ae2e82d0661e30cb7746f10b82d489d4bbbbcfd77df134ac4ebc6e7fbef0bc107cd26761ad7c0dc7b52368a1c017095033fca53acdc33fe8028d3facab3b643a
6
+ metadata.gz: abb90ac13df5ce70438110572e462e51420d2a3d8c9c3cc766a00bf2c1897952e6d75a4c7bd219c5c5cc25ef6ab5dafaea62ec6ebb3ed14633d70343a6edebd5
7
+ data.tar.gz: c86bae0d3eea9a489d6be29ad49a3eea56a0e6bc93dc62506d321a1ab84d7f61b8e6dbd9779805d365fcd85f6f213055ec2d0c41b84333ec26c65c56d8095e5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.5.3 — 2026-04-07
4
12
 
5
13
  ### Fixed
@@ -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 }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OMQ
4
4
  module CLI
5
- VERSION = "0.5.3"
5
+ VERSION = "0.5.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omq-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger