rsmp 0.24.0 → 0.25.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/Gemfile.lock +12 -18
- data/lib/rsmp/alarm_state.rb +3 -3
- data/lib/rsmp/component_proxy.rb +1 -1
- data/lib/rsmp/version.rb +1 -1
- data/rsmp.gemspec +1 -2
- metadata +5 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b77dfbb34755f7c072e86e1f39455d142211efcb6f476193797cba785cc0c60b
|
|
4
|
+
data.tar.gz: aee34f16de5528bc1db726fca0588ba4e8a98dc4d08d84ac6be85744843cb048
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07bd234e540bcf99e5157a5b30616eab6c3b77ba568f3c95382271c5942e29c762020349ffdb3183730dbda384a3b099a00136e631fb352696da2b45e3d8fa91
|
|
7
|
+
data.tar.gz: 552501d30c441d4b8fd43a01c592cee14cef7353508cecac4b37f9616d5a961baeb531b34feb0bd3741e6de4b101397301dca104652a3383b572fd9059bc3611
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rsmp (0.
|
|
4
|
+
rsmp (0.25.1)
|
|
5
5
|
async (~> 2.6.4)
|
|
6
6
|
async-io (~> 1.36.0)
|
|
7
7
|
colorize (~> 0.8.1)
|
|
8
|
-
rsmp_schema (~> 0.5)
|
|
9
|
-
thor (~> 1.2.2)
|
|
8
|
+
rsmp_schema (~> 0.5.1)
|
|
10
9
|
|
|
11
10
|
GEM
|
|
12
11
|
remote: https://rubygems.org/
|
|
@@ -18,12 +17,12 @@ GEM
|
|
|
18
17
|
cucumber (>= 4.0, < 9.0)
|
|
19
18
|
rspec-expectations (~> 3.4)
|
|
20
19
|
thor (~> 1.0)
|
|
21
|
-
async (2.6.
|
|
20
|
+
async (2.6.5)
|
|
22
21
|
console (~> 1.10)
|
|
23
22
|
fiber-annotation
|
|
24
23
|
io-event (~> 1.1)
|
|
25
24
|
timers (~> 4.1)
|
|
26
|
-
async-io (1.36.
|
|
25
|
+
async-io (1.36.1)
|
|
27
26
|
async
|
|
28
27
|
builder (3.2.4)
|
|
29
28
|
childprocess (4.1.0)
|
|
@@ -57,28 +56,24 @@ GEM
|
|
|
57
56
|
cucumber-messages (18.0.0)
|
|
58
57
|
cucumber-tag-expressions (4.1.0)
|
|
59
58
|
diff-lcs (1.5.0)
|
|
60
|
-
ecma-re-validator (0.4.0)
|
|
61
|
-
regexp_parser (~> 2.2)
|
|
62
59
|
ffi (1.16.2)
|
|
63
60
|
fiber-annotation (0.2.0)
|
|
64
61
|
fiber-local (1.0.0)
|
|
65
62
|
hana (1.3.7)
|
|
66
|
-
io-event (1.3.
|
|
67
|
-
json_schemer (
|
|
68
|
-
ecma-re-validator (~> 0.3)
|
|
63
|
+
io-event (1.3.3)
|
|
64
|
+
json_schemer (2.1.0)
|
|
69
65
|
hana (~> 1.3)
|
|
70
66
|
regexp_parser (~> 2.0)
|
|
71
67
|
simpleidn (~> 0.2)
|
|
72
|
-
uri_template (~> 0.7)
|
|
73
68
|
mime-types (3.5.1)
|
|
74
69
|
mime-types-data (~> 3.2015)
|
|
75
70
|
mime-types-data (3.2023.0808)
|
|
76
71
|
multi_test (1.1.0)
|
|
77
72
|
rake (13.0.6)
|
|
78
|
-
regexp_parser (2.8.
|
|
79
|
-
rsmp_schema (0.5)
|
|
80
|
-
json_schemer (~>
|
|
81
|
-
thor (~> 1.
|
|
73
|
+
regexp_parser (2.8.2)
|
|
74
|
+
rsmp_schema (0.5.1)
|
|
75
|
+
json_schemer (~> 2.1.0)
|
|
76
|
+
thor (~> 1.3.0)
|
|
82
77
|
rspec (3.12.0)
|
|
83
78
|
rspec-core (~> 3.12.0)
|
|
84
79
|
rspec-expectations (~> 3.12.0)
|
|
@@ -96,13 +91,12 @@ GEM
|
|
|
96
91
|
unf (~> 0.1.4)
|
|
97
92
|
sys-uname (1.2.3)
|
|
98
93
|
ffi (~> 1.1)
|
|
99
|
-
thor (1.
|
|
94
|
+
thor (1.3.0)
|
|
100
95
|
timecop (0.9.8)
|
|
101
96
|
timers (4.3.5)
|
|
102
97
|
unf (0.1.4)
|
|
103
98
|
unf_ext
|
|
104
|
-
unf_ext (0.0.
|
|
105
|
-
uri_template (0.7.0)
|
|
99
|
+
unf_ext (0.0.9.1)
|
|
106
100
|
|
|
107
101
|
PLATFORMS
|
|
108
102
|
arm64-darwin-22
|
data/lib/rsmp/alarm_state.rb
CHANGED
|
@@ -90,9 +90,9 @@ module RSMP
|
|
|
90
90
|
|
|
91
91
|
def differ_from_message? message
|
|
92
92
|
return true if RSMP::Clock.to_s(@timestamp) != message.attribute('aTs')
|
|
93
|
-
return true if message.attribute('ack') && @acknowledged != (message.attribute('ack') == '
|
|
94
|
-
return true if message.attribute('sS') && @suspended != (message.attribute('sS') == 'suspended')
|
|
95
|
-
return true if message.attribute('aS') && @active != (message.attribute('aS') == '
|
|
93
|
+
return true if message.attribute('ack') && @acknowledged != (message.attribute('ack').downcase == 'acknowledged')
|
|
94
|
+
return true if message.attribute('sS') && @suspended != (message.attribute('sS').downcase == 'suspended')
|
|
95
|
+
return true if message.attribute('aS') && @active != (message.attribute('aS').downcase == 'active')
|
|
96
96
|
return true if message.attribute('cat') && @category != message.attribute('cat')
|
|
97
97
|
return true if message.attribute('pri') && @priority != message.attribute('pri').to_i
|
|
98
98
|
#return true @rvs = message.attribute('rvs')
|
data/lib/rsmp/component_proxy.rb
CHANGED
|
@@ -26,7 +26,7 @@ module RSMP
|
|
|
26
26
|
uRt = subscription_list.dig(c_id,sCI,n,'uRt')
|
|
27
27
|
next if uRt.to_i > 0
|
|
28
28
|
sOc = subscription_list.dig(c_id,sCI,n,'sOc')
|
|
29
|
-
next if sOc ==
|
|
29
|
+
next if sOc == false
|
|
30
30
|
next if @allow_repeat_updates[sCI] && @allow_repeat_updates[sCI].include?(n)
|
|
31
31
|
new_values = {'s'=>s,'q'=>q}
|
|
32
32
|
old_values = @statuses.dig(sCI,n)
|
data/lib/rsmp/version.rb
CHANGED
data/rsmp.gemspec
CHANGED
|
@@ -33,8 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
spec.add_dependency "async", "~> 2.6.4"
|
|
34
34
|
spec.add_dependency "async-io", "~> 1.36.0"
|
|
35
35
|
spec.add_dependency "colorize", "~> 0.8.1"
|
|
36
|
-
spec.add_dependency "
|
|
37
|
-
spec.add_dependency "rsmp_schema", "~> 0.5"
|
|
36
|
+
spec.add_dependency "rsmp_schema", "~> 0.5.1"
|
|
38
37
|
|
|
39
38
|
spec.add_development_dependency "bundler", "~> 2.4.20"
|
|
40
39
|
spec.add_development_dependency "rake", "~> 13.0.6"
|
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.
|
|
4
|
+
version: 0.25.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emil Tin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async
|
|
@@ -52,34 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 0.8.1
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: thor
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 1.2.2
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 1.2.2
|
|
69
55
|
- !ruby/object:Gem::Dependency
|
|
70
56
|
name: rsmp_schema
|
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
|
72
58
|
requirements:
|
|
73
59
|
- - "~>"
|
|
74
60
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
61
|
+
version: 0.5.1
|
|
76
62
|
type: :runtime
|
|
77
63
|
prerelease: false
|
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
65
|
requirements:
|
|
80
66
|
- - "~>"
|
|
81
67
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
68
|
+
version: 0.5.1
|
|
83
69
|
- !ruby/object:Gem::Dependency
|
|
84
70
|
name: bundler
|
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -278,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
278
264
|
- !ruby/object:Gem::Version
|
|
279
265
|
version: '0'
|
|
280
266
|
requirements: []
|
|
281
|
-
rubygems_version: 3.4.
|
|
267
|
+
rubygems_version: 3.4.22
|
|
282
268
|
signing_key:
|
|
283
269
|
specification_version: 4
|
|
284
270
|
summary: RoadSide Message Protocol (RSMP) library.
|