omq-cli 0.14.7 → 0.14.8
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/base_runner.rb +4 -3
- data/lib/omq/cli/transient_monitor.rb +1 -1
- data/lib/omq/cli/version.rb +1 -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: 108eeb712d98cda6762591002a5a7a6e24d341b579c6f9734f5a8d78adb2e481
|
|
4
|
+
data.tar.gz: a603b8c354cb14b6cfa8aed2a13798f9e9a51ecf34c31ab83b6119a36e9a88bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03210f226733ee6baa9acf26fc5e37617dbe6ca8040bd73529701d60994999d1a0baa8571b10852654892e1add49333c6c8bc38c442d91a349c4c0e49a749379
|
|
7
|
+
data.tar.gz: bfd7327cb515ae2133de3ec152b3c6f7ee5c68398b74f46fbd00d4ae060569bc782d4332e043e4b9eb1f0a53dd0ba5fa33ab84a72c322708e3aceee5febaad89
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.8 — 2026-04-14
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **`BaseRunner#log` lines now carry the `omq:` prefix and honor
|
|
8
|
+
`--timestamps`.** `log "Peer connected"` used to emit a bare
|
|
9
|
+
`Peer connected` to stderr, while every other stderr line went
|
|
10
|
+
through `Term` and rendered as `omq: connecting to …`,
|
|
11
|
+
`omq: disconnected …`, etc. Mixing the two was jarring — a
|
|
12
|
+
single `omq push` run produced both `omq: connecting to …` and
|
|
13
|
+
`Peer connected` back-to-back. `#log` now routes through
|
|
14
|
+
`Term.log_prefix` and emits `{prefix}omq: {msg}`, and the three
|
|
15
|
+
existing messages are lowercased to match the rest of the
|
|
16
|
+
stderr vocabulary (`peer connected`, `subscriber joined`,
|
|
17
|
+
`all peers disconnected, exiting`).
|
|
18
|
+
|
|
3
19
|
## 0.14.7 — 2026-04-14
|
|
4
20
|
|
|
5
21
|
### Fixed
|
data/lib/omq/cli/base_runner.rb
CHANGED
|
@@ -148,7 +148,7 @@ module OMQ
|
|
|
148
148
|
def wait_for_peer
|
|
149
149
|
wait_body = proc do
|
|
150
150
|
@sock.peer_connected.wait
|
|
151
|
-
log "
|
|
151
|
+
log "peer connected"
|
|
152
152
|
wait_for_subscriber
|
|
153
153
|
apply_grace_period
|
|
154
154
|
end
|
|
@@ -164,7 +164,7 @@ module OMQ
|
|
|
164
164
|
def wait_for_subscriber
|
|
165
165
|
return unless %w[pub xpub].include?(config.type_name)
|
|
166
166
|
@sock.subscriber_joined.wait
|
|
167
|
-
log "
|
|
167
|
+
log "subscriber joined"
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
|
|
@@ -529,7 +529,8 @@ module OMQ
|
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
def log(msg)
|
|
532
|
-
|
|
532
|
+
return unless config.verbose >= 1
|
|
533
|
+
$stderr.write("#{Term.log_prefix(config.timestamps)}omq: #{msg}\n")
|
|
533
534
|
end
|
|
534
535
|
|
|
535
536
|
|
|
@@ -19,7 +19,7 @@ module OMQ
|
|
|
19
19
|
task.async do
|
|
20
20
|
@barrier.wait
|
|
21
21
|
sock.all_peers_gone.wait unless sock.connection_count == 0
|
|
22
|
-
log_fn.call("
|
|
22
|
+
log_fn.call("all peers disconnected, exiting")
|
|
23
23
|
sock.reconnect_enabled = false
|
|
24
24
|
if config.send_only?
|
|
25
25
|
task.stop
|
data/lib/omq/cli/version.rb
CHANGED