omq-cli 0.14.6 → 0.14.7

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: 6e3050d7165339cb111711aebe54240077303952ae7f8ff149bcbc04584bbd43
4
- data.tar.gz: a58e91a00af3189aa8ac183d39637744e34311f8e99f53ffdfaf8c5681f0ab31
3
+ metadata.gz: 330b38ce9d2070cd908c5e8028c3a44bb20baedbacd6398ffec8257333dc34fc
4
+ data.tar.gz: 8aa238f889aadbbf346fd709a733a5b59f574bd8e5e6c9a01cbfae06b507a6ff
5
5
  SHA512:
6
- metadata.gz: e1c6dbcd552e0d808a0a130eab0cda40c90a03636df335c132da2d6ca754cc94be66edd8798d0768d74b698c9886b88d887ab71d7bc25ed5478035d20899fae1
7
- data.tar.gz: 9ac43e61b051ae44e7475dc640109cc227dffc81cae115d515960880d0de95afadda75a993e1c965d73e4cbc13a770e94913c0b912f0355e7ec2084421577881
6
+ metadata.gz: d642f10effa6cde807518873a7651695c1e61fc490c8cefbe29a877cb2c5fc941561cdfa5ff073fbabf8c4d4463c766346098ef1924a3db6f9ba7182ebc22dce
7
+ data.tar.gz: 99a65f92098b4e37e7ce3d418f89a618feeb136f7469c9b351d20e7d6240cd8c343b68ea2777b8458efc97c6649ae13b51ca11a350f28c83217b243330701773
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.7 — 2026-04-14
4
+
5
+ ### Fixed
6
+
7
+ - **v0.14.6 regression: `-e`/`-E` pure-generator mode broke on a
8
+ TTY.** The new `config.stdin_is_tty` fallback was inserted into
9
+ the same `elsif` as `stdin_ready?`, so a bare `omq push -E '"foo"'`
10
+ on a terminal routed into `run_stdin_send` instead of firing the
11
+ generator once. `run_send_logic` now checks `@send_eval_proc`
12
+ before the TTY fallback, and the fallback is only taken when no
13
+ other send source is configured. Surfaced by the
14
+ "marshal send path: PushRunner sends raw object" trace-order
15
+ test in CI.
16
+
3
17
  ## 0.14.6 — 2026-04-14
4
18
 
5
19
  ### Fixed
@@ -207,11 +207,16 @@ module OMQ
207
207
  elsif config.data || config.file
208
208
  parts = eval_send_expr(read_next)
209
209
  send_msg(parts) if parts
210
- elsif stdin_ready? || config.stdin_is_tty
210
+ elsif stdin_ready?
211
211
  run_stdin_send(n)
212
212
  elsif @send_eval_proc
213
+ # Pure generator: -e/-E with no stdin input, fire once.
213
214
  parts = eval_send_expr(nil)
214
215
  send_msg(parts) if parts
216
+ elsif config.stdin_is_tty
217
+ # Bare interactive invocation on a terminal: read lines from
218
+ # the tty until the user hits ^D.
219
+ run_stdin_send(n)
215
220
  end
216
221
  end
217
222
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OMQ
4
4
  module CLI
5
- VERSION = "0.14.6"
5
+ VERSION = "0.14.7"
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.14.6
4
+ version: 0.14.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger