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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6e7b6922c4aad939b08a2235e05a79ef5662534ec401d204255671c2511ede1
4
- data.tar.gz: e81f0a7c38fb98317e18ebfb3879f43bd878a947de41b5d49e14953d5ed7f86e
3
+ metadata.gz: 96c6fb10c7c6e59410be4cbd59a29ca3cd157231e3e8800982616c0d036d82bb
4
+ data.tar.gz: 3f29330cabf6abf2f0e96c81cefd3765560ae6224e41dfc59061473951c0e756
5
5
  SHA512:
6
- metadata.gz: a8dc63658a0082778509d2da33b44e0e80573f1b0aef8fe76c05d816d34e9dd10084de81f38c37df20d6351a9b47b2a33836bbb4405a7143da028f82ef4e2558
7
- data.tar.gz: 005bd7b55911a289cd33f521a3850c00ade3622cdce377a1f79e57958925cbc86216b266ffaa6a58a58fdcf66822c5eb34ea48240ff8d29d581f8f2469aa0551
6
+ metadata.gz: 85c04e5637cefcf677546c2dbd887126276499c88d1e3261080957177f6e2a8853694134e28733ff9d77268a7ba574ec498801bf5f0752d92b919b8d64884012
7
+ data.tar.gz: ba575044445b063bff0751aeddf42849de980604f43d69765b62a39764a13e7f46ea220bc08bbc6ecabc0cdadc0a287c2ade6b3e846a8a823a101a4674420692
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.1.10)
4
+ rsmp (0.1.11)
5
5
  async (~> 1.23.0)
6
6
  async-io (~> 1.27.1)
7
7
  colorize (~> 0.8.1)
data/config/site.yaml CHANGED
@@ -12,13 +12,12 @@ rsmp_versions:
12
12
  - 3.1.4
13
13
 
14
14
  components:
15
- A1:
15
+ C1:
16
16
  type: main
17
17
 
18
18
  watchdog_interval: 1
19
19
  watchdog_timeout: 2
20
- acknowledgement_timeout: 2
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
@@ -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: true
32
- watchdogs: true
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, received at #{@latest_watchdog_received}, now is #{now}, diff #{now-latest}", level: :error
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
@@ -159,7 +159,7 @@ module RSMP
159
159
 
160
160
  def find_site site_id
161
161
  @proxies.each do |site|
162
- return site if site.site_id == site_id
162
+ return site if site_id == :any || site.site_id == site_id
163
163
  end
164
164
  nil
165
165
  end
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
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.10
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-16 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async