rsmp 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/site.yaml +2 -3
- data/config/supervisor.yaml +2 -5
- data/lib/rsmp/proxy.rb +2 -2
- data/lib/rsmp/site.rb +0 -3
- data/lib/rsmp/supervisor.rb +1 -1
- 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: 96c6fb10c7c6e59410be4cbd59a29ca3cd157231e3e8800982616c0d036d82bb
|
4
|
+
data.tar.gz: 3f29330cabf6abf2f0e96c81cefd3765560ae6224e41dfc59061473951c0e756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85c04e5637cefcf677546c2dbd887126276499c88d1e3261080957177f6e2a8853694134e28733ff9d77268a7ba574ec498801bf5f0752d92b919b8d64884012
|
7
|
+
data.tar.gz: ba575044445b063bff0751aeddf42849de980604f43d69765b62a39764a13e7f46ea220bc08bbc6ecabc0cdadc0a287c2ade6b3e846a8a823a101a4674420692
|
data/Gemfile.lock
CHANGED
data/config/site.yaml
CHANGED
@@ -12,13 +12,12 @@ rsmp_versions:
|
|
12
12
|
- 3.1.4
|
13
13
|
|
14
14
|
components:
|
15
|
-
|
15
|
+
C1:
|
16
16
|
type: main
|
17
17
|
|
18
18
|
watchdog_interval: 1
|
19
19
|
watchdog_timeout: 2
|
20
|
-
acknowledgement_timeout:
|
21
|
-
store_messages: false
|
20
|
+
acknowledgement_timeout: 1
|
22
21
|
command_response_timeout: 1
|
23
22
|
status_response_timeout: 1
|
24
23
|
status_update_timeout: 1
|
data/config/supervisor.yaml
CHANGED
@@ -13,9 +13,6 @@ command_response_timeout: 1
|
|
13
13
|
status_response_timeout: 1
|
14
14
|
status_update_timeout: 1
|
15
15
|
|
16
|
-
sites:
|
17
|
-
any:
|
18
|
-
|
19
16
|
log:
|
20
17
|
active: true
|
21
18
|
color: true
|
@@ -28,6 +25,6 @@ log:
|
|
28
25
|
direction: true
|
29
26
|
level: false
|
30
27
|
json: true
|
31
|
-
acknowledgements:
|
32
|
-
watchdogs:
|
28
|
+
acknowledgements: false
|
29
|
+
watchdogs: false
|
33
30
|
|
data/lib/rsmp/proxy.rb
CHANGED
@@ -178,9 +178,9 @@ module RSMP
|
|
178
178
|
timeout = @settings["watchdog_timeout"]
|
179
179
|
latest = @latest_watchdog_received + timeout
|
180
180
|
left = latest - now
|
181
|
-
log "Check watchdog, time:#{timeout}, last:#{@latest_watchdog_received}, now: #{now}, latest:#{latest}, left #{left}, fail:#{left<0}", level: :debug
|
181
|
+
#log "Check watchdog, time:#{timeout}, last:#{@latest_watchdog_received}, now: #{now}, latest:#{latest}, left #{left}, fail:#{left<0}", level: :debug
|
182
182
|
if left < 0
|
183
|
-
log "No Watchdog within #{timeout} seconds
|
183
|
+
log "No Watchdog within #{timeout} seconds", level: :error
|
184
184
|
stop
|
185
185
|
return true
|
186
186
|
end
|
data/lib/rsmp/site.rb
CHANGED
@@ -39,9 +39,6 @@ module RSMP
|
|
39
39
|
'site_ready_timeout' => 1,
|
40
40
|
'reconnect_interval' => 0.1,
|
41
41
|
'send_after_connect' => true,
|
42
|
-
'components' => {
|
43
|
-
'C1' => {}
|
44
|
-
}
|
45
42
|
}
|
46
43
|
if options[:site_settings]
|
47
44
|
converted = options[:site_settings].map { |k,v| [k.to_s,v] }.to_h #convert symbol keys to string keys
|
data/lib/rsmp/supervisor.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Tin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|