rsmp 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/rsmp/supervisor_proxy.rb +3 -5
- data/lib/rsmp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca0e580278192b1577388628e8a761a8b0fe61f175c40bdd6c40fc62ab61d700
|
4
|
+
data.tar.gz: 0dd69084856cd0ba08acd74655c6a856bc6222a00bfbfb0031aff24c8df2c17a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa7f6e6f31e8d47369fb769a95d3a519262098d0821387ddfc29ef865e08ccd8f0cd49f65697eeb3ea28e0fb33783291feb2be9706784fc53891c4aaf8f6b66
|
7
|
+
data.tar.gz: 10b21ec864bb578e281686f1926303741d3182f42a2d6a82bb7a90f744fd4b50cfd704eeb773da99d96cdc1796a1876ea2b7f9d0296f303c4644d132f1d46761
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rsmp (0.7.
|
4
|
+
rsmp (0.7.5)
|
5
5
|
async (~> 1.29.1)
|
6
6
|
async-io (~> 1.32.1)
|
7
7
|
colorize (~> 0.8.1)
|
@@ -95,7 +95,7 @@ GEM
|
|
95
95
|
thor
|
96
96
|
thread_safe
|
97
97
|
rake (13.0.3)
|
98
|
-
regexp_parser (2.
|
98
|
+
regexp_parser (2.2.0)
|
99
99
|
rsmp_schemer (0.3.2)
|
100
100
|
json_schemer (~> 0.2.18)
|
101
101
|
rspec (3.10.0)
|
@@ -282,11 +282,7 @@ module RSMP
|
|
282
282
|
end
|
283
283
|
|
284
284
|
def fetch_last_sent_status component, code, name
|
285
|
-
|
286
|
-
@last_status_sent[component][code][name]
|
287
|
-
else
|
288
|
-
nil
|
289
|
-
end
|
285
|
+
@last_status_sent.dig component, code, name
|
290
286
|
end
|
291
287
|
|
292
288
|
def store_last_sent_status message
|
@@ -310,10 +306,12 @@ module RSMP
|
|
310
306
|
by_code.each_pair do |code,by_name|
|
311
307
|
by_name.each_pair do |name,subscription|
|
312
308
|
current = nil
|
309
|
+
should_send = false
|
313
310
|
if subscription[:interval] == 0
|
314
311
|
# send as soon as the data changes
|
315
312
|
if component_object
|
316
313
|
current, age = *(component_object.get_status code, name)
|
314
|
+
current = current.to_s
|
317
315
|
end
|
318
316
|
last_sent = fetch_last_sent_status component, code, name
|
319
317
|
if current != last_sent
|
data/lib/rsmp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Tin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|