rsmp 0.9.8 → 0.9.9
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/Gemfile.lock +1 -1
- data/lib/rsmp/site_proxy.rb +1 -1
- data/lib/rsmp/tlc/traffic_controller.rb +4 -5
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71af49e549129bf32f9137a2799c91b43ba19e5e7adb15f777a181919c19dbd0
|
4
|
+
data.tar.gz: 15c8f8c96ed3838f0b0b948b5d0e9be895ec965a9f651a529a44b214426242ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33206373986495e8c8d9871c83d465d2961db86c2713e0056eb1e5a0fb6f153dc506c05f549bc52f6963f7aeb7e1b7f78f387b479893babe8f0d77cd0efbffe3
|
7
|
+
data.tar.gz: 125e125b49bb0a5d99234d8aa4bac4a3107de077fb7adc55a1e70cbf0544c0b163355cfac4a94eeae1e412b8951e4f5fab8d2846187e2d7479c626e0adf81530
|
data/Gemfile.lock
CHANGED
data/lib/rsmp/site_proxy.rb
CHANGED
@@ -72,7 +72,7 @@ module RSMP
|
|
72
72
|
else
|
73
73
|
super message
|
74
74
|
end
|
75
|
-
rescue RSMP::RepeatedAlarmError, RSMP::RepeatedStatusError => e
|
75
|
+
rescue RSMP::RepeatedAlarmError, RSMP::RepeatedStatusError, RSMP::TimestampError => e
|
76
76
|
str = "Rejected #{message.type} message,"
|
77
77
|
dont_acknowledge message, str, "#{e}"
|
78
78
|
notify_error e.exception("#{str}#{e.message} #{message.json}")
|
@@ -380,9 +380,8 @@ module RSMP
|
|
380
380
|
@node.verify_security_code 2, arg['securityCode']
|
381
381
|
input = arg['input'].to_i
|
382
382
|
idx = input - 1
|
383
|
-
unless
|
384
|
-
|
385
|
-
return
|
383
|
+
unless input>0 && input<=@num_inputs
|
384
|
+
raise MessageRejected.new("Can't force input #{input}, only have #{@num_inputs} inputs")
|
386
385
|
end
|
387
386
|
@input_forced[idx] = bool_string_to_digit arg['status']
|
388
387
|
if @input_forced[idx]
|
@@ -390,9 +389,9 @@ module RSMP
|
|
390
389
|
end
|
391
390
|
recompute_input idx
|
392
391
|
if @input_forced[idx]
|
393
|
-
log "Forcing input #{
|
392
|
+
log "Forcing input #{input} to #{@input_forced_values[idx]}", level: :info
|
394
393
|
else
|
395
|
-
log "Releasing input #{
|
394
|
+
log "Releasing input #{input}", level: :info
|
396
395
|
end
|
397
396
|
end
|
398
397
|
|
data/lib/rsmp/version.rb
CHANGED