omq 0.28.6 → 0.28.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: ab1b687e71313324356754b6310952c84c996163db7907d1a3720a625c7c08e7
4
- data.tar.gz: de2cc415b3b172b0f6fc766ffa94f037ac88fa5cdf8b20cb2d9dab24eb6b2f1c
3
+ metadata.gz: 7ba6c1a230231646b3a6c62e2989df1b7e1cc8a0f221ecaa36866d34fa1d0e37
4
+ data.tar.gz: c8fd13bec0c8bc71ce65d7986fc90e2d4269a00c9aceecde3f15f5594ec83550
5
5
  SHA512:
6
- metadata.gz: 1eb7301a2eb5523af9dc7e1cce62177a00b67c8882d861cdebd5ce4b8b69674014709dde7ac965f211f6e368acc63750fa4a12a355dcaa6dba1e386c9d39a6e0
7
- data.tar.gz: 498561ceb534866f0280b081b3e99e9b8979415ea36dadb9e0613b04d699236ee2dc20d7af16b903d819a14b321d6c9410623cc10071a0b1b503293f22519738
6
+ metadata.gz: 2e628c0814a1596514e7ec4f845689c90392c74d5d45652c1e6efa8c85acc801cb88a04d0a5acaa95a6696467d76ea609cac2b93e7de00347fb980104a81564a
7
+ data.tar.gz: e69d5a0698a8f2a2879378dbd35b983e0e45ef52ea323c3a439947b5f657a734333cdec0c869389bf186dabc92beee3fba0093f5498cf67f6ab49ca7e243a868
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.28.7] - 2026-08-02
6
+
7
+ ### Fixed
8
+
9
+ - Resolved `RADIO` subscriber readiness when a peer sends `JOIN`, so
10
+ callers waiting on `subscriber_joined` can synchronize with `DISH`.
11
+
5
12
  ## [0.28.6] - 2026-08-01
6
13
 
7
14
  ### Changed
@@ -20,6 +20,7 @@ module OMQ
20
20
  # @return [Async::LimitedQueue]
21
21
  #
22
22
  attr_reader :send_queue
23
+ attr_reader :subscriber_joined
23
24
 
24
25
 
25
26
  # @param engine [Engine]
@@ -29,6 +30,7 @@ module OMQ
29
30
  @connections = []
30
31
  @groups = {} # connection => Set of joined groups (or ANY_GROUPS for UDP)
31
32
  @send_queue = Routing.build_queue(engine.options.send_hwm, :block)
33
+ @subscriber_joined = Async::Promise.new
32
34
  @on_mute = engine.options.on_mute
33
35
  @send_pump_started = false
34
36
  @conflate = engine.options.conflate
@@ -175,6 +177,7 @@ module OMQ
175
177
  case cmd.name
176
178
  when "JOIN"
177
179
  @groups[conn]&.add(cmd.data)
180
+ @subscriber_joined.resolve(conn) unless @subscriber_joined.resolved?
178
181
  when "LEAVE"
179
182
  @groups[conn]&.delete(cmd.data)
180
183
  end
data/lib/omq/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OMQ
4
- VERSION = "0.28.6"
4
+ VERSION = "0.28.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.6
4
+ version: 0.28.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger