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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rage/cable/protocol/actioncable_v1_json.rb +9 -7
- data/lib/rage/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28c74a202068f676855b6837a45e5c32a614bad76c1af65178e3038f1f976439
|
4
|
+
data.tar.gz: 53d023461db804902636c61711c49c25dde614d2b4d0ca112821ba61af9bdcf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4e1169d7a67bb0720f721279de1fd1729f5eb7f75c005b6ca4ecdb54a465bcb4ca97fa16acebc0ff256a1f4ebc7017a29cb00dfc254b6df3a3e8a1535e1e62
|
7
|
+
data.tar.gz: 1133bae6fd831534848873917c61f5340bbe6ec65f446bcc07fa0b25c19c86b495afb03b029505ebe7d9569b50deb62dbca157d681f97fbeafab62a23b158d94
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
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.
|
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-
|
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.
|
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: []
|