rage-rb 1.15.0 → 1.15.1

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: 537238bd77a6af0c53b59def61a4b94616ca11b8e0bb3f31613d06198c8da2f5
4
- data.tar.gz: 4597f16d331862d871aeacf18e701406b825e8208e8d41ec4d29f47d8ce6ce5e
3
+ metadata.gz: 28c74a202068f676855b6837a45e5c32a614bad76c1af65178e3038f1f976439
4
+ data.tar.gz: 53d023461db804902636c61711c49c25dde614d2b4d0ca112821ba61af9bdcf4
5
5
  SHA512:
6
- metadata.gz: 7c841546ab6547df2e3846000c2f47089e01d08f8702597df835a4b0d6a9920a9be4a65151e017d59e42c0c922d67887ae4d9403f4a2ae2fb048bddc54520c2a
7
- data.tar.gz: '0701518f1f90e2bb6e800272a7054aaec3f401b73002733d4b216febf3758aa2a480a1920d19160779efc7450e6dcd12c0ca97392c6c08a325c6617f39147a0e'
6
+ metadata.gz: eb4e1169d7a67bb0720f721279de1fd1729f5eb7f75c005b6ca4ecdb54a465bcb4ca97fa16acebc0ff256a1f4ebc7017a29cb00dfc254b6df3a3e8a1535e1e62
7
+ data.tar.gz: 1133bae6fd831534848873917c61f5340bbe6ec65f446bcc07fa0b25c19c86b495afb03b029505ebe7d9569b50deb62dbca157d681f97fbeafab62a23b158d94
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.15.1] - 2025-04-17
4
+
5
+ ### Fixed
6
+
7
+ - [Cable] Create a subscription only when the reactor is started (#146).
8
+
3
9
  ## [1.15.0] - 2025-04-02
4
10
 
5
11
  ### Added
@@ -73,13 +73,15 @@ class Rage::Cable::Protocol::ActioncableV1Json
73
73
  # Hash<String(stream name) => Set<Hash>(subscription params)>
74
74
  @subscription_identifiers = Hash.new { |hash, key| hash[key] = Set.new }
75
75
 
76
- # this is a fallback to synchronize subscription identifiers across different worker processes;
77
- # we expect connections to be distributed among all workers, so this code will almost never be called;
78
- # we also synchronize subscriptions with the master process so that the forks that are spun up instead
79
- # of the crashed ones also had access to the identifiers;
80
- Iodine.subscribe("cable:synchronize") do |_, subscription_msg|
81
- stream_name, params = Rage::ParamsParser.json_parse(subscription_msg)
82
- @subscription_identifiers[stream_name] << params
76
+ Iodine.on_state(:pre_start) do
77
+ # this is a fallback to synchronize subscription identifiers across different worker processes;
78
+ # we expect connections to be distributed among all workers, so this code will almost never be called;
79
+ # we also synchronize subscriptions with the master process so that the forks that are spun up instead
80
+ # of the crashed ones also had access to the identifiers;
81
+ Iodine.subscribe("cable:synchronize") do |_, subscription_msg|
82
+ stream_name, params = Rage::ParamsParser.json_parse(subscription_msg)
83
+ @subscription_identifiers[stream_name] << params
84
+ end
83
85
  end
84
86
 
85
87
  Iodine.on_state(:on_finish) do
data/lib/rage/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rage
4
- VERSION = "1.15.0"
4
+ VERSION = "1.15.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-02 00:00:00.000000000 Z
10
+ date: 2025-04-17 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: thor
@@ -94,7 +93,6 @@ dependencies:
94
93
  - - ">="
95
94
  - !ruby/object:Gem::Version
96
95
  version: '12.0'
97
- description:
98
96
  email:
99
97
  - rsamoi@icloud.com
100
98
  executables:
@@ -208,7 +206,6 @@ licenses:
208
206
  metadata:
209
207
  homepage_uri: https://github.com/rage-rb/rage
210
208
  source_code_uri: https://github.com/rage-rb/rage
211
- post_install_message:
212
209
  rdoc_options: []
213
210
  require_paths:
214
211
  - lib
@@ -223,8 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
220
  - !ruby/object:Gem::Version
224
221
  version: '0'
225
222
  requirements: []
226
- rubygems_version: 3.4.10
227
- signing_key:
223
+ rubygems_version: 3.6.2
228
224
  specification_version: 4
229
225
  summary: Fast web framework compatible with Rails.
230
226
  test_files: []