rsmp 0.19.2 → 0.19.3
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 +13 -4
- data/lib/rsmp/message.rb +14 -6
- data/lib/rsmp/site.rb +2 -2
- 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: 8702928138cf433b9d0744b92af2d9e535292342ba5e18bd22fcc3985f341a11
|
|
4
|
+
data.tar.gz: 27a689a67e585f1da3c40feeda85468f9d7a7306c19437be156d4162b55f7024
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91b20a0cee412984bd269083fd67864175c0c0c1d5627cd9003369cc63e1413c97e9c3b49c135e7328f372fcec9d95cd1f8c0edc54bf692400c4a20109d66137
|
|
7
|
+
data.tar.gz: dadfc9ba3cfba8ddd0dc82318299a78ef4f7101ff9708e61d3bbe1b54280aac42f9d5111bf9e102dbf8a0b4f1d0c401dbc4471f55b0a760713ab4374be83e781
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rsmp (0.19.
|
|
4
|
+
rsmp (0.19.3)
|
|
5
5
|
async (~> 1.30.3)
|
|
6
6
|
async-io (~> 1.34.3)
|
|
7
7
|
colorize (~> 0.8.1)
|
|
@@ -27,7 +27,8 @@ GEM
|
|
|
27
27
|
builder (3.2.4)
|
|
28
28
|
childprocess (4.1.0)
|
|
29
29
|
colorize (0.8.1)
|
|
30
|
-
console (1.
|
|
30
|
+
console (1.17.2)
|
|
31
|
+
fiber-annotation
|
|
31
32
|
fiber-local
|
|
32
33
|
contracts (0.17)
|
|
33
34
|
cucumber (8.0.0)
|
|
@@ -58,12 +59,14 @@ GEM
|
|
|
58
59
|
ecma-re-validator (0.4.0)
|
|
59
60
|
regexp_parser (~> 2.2)
|
|
60
61
|
ffi (1.15.5)
|
|
62
|
+
fiber-annotation (0.2.0)
|
|
61
63
|
fiber-local (1.0.0)
|
|
62
64
|
hana (1.3.7)
|
|
63
|
-
json_schemer (0.2.
|
|
65
|
+
json_schemer (0.2.25)
|
|
64
66
|
ecma-re-validator (~> 0.3)
|
|
65
67
|
hana (~> 1.3)
|
|
66
68
|
regexp_parser (~> 2.0)
|
|
69
|
+
simpleidn (~> 0.2)
|
|
67
70
|
uri_template (~> 0.7)
|
|
68
71
|
mime-types (3.4.1)
|
|
69
72
|
mime-types-data (~> 3.2015)
|
|
@@ -71,7 +74,7 @@ GEM
|
|
|
71
74
|
multi_test (1.1.0)
|
|
72
75
|
nio4r (2.5.9)
|
|
73
76
|
rake (13.0.6)
|
|
74
|
-
regexp_parser (2.8.
|
|
77
|
+
regexp_parser (2.8.1)
|
|
75
78
|
rsmp_schema (0.4.0)
|
|
76
79
|
json_schemer (~> 0.2.21)
|
|
77
80
|
thor (~> 1.2.1)
|
|
@@ -88,11 +91,16 @@ GEM
|
|
|
88
91
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
92
|
rspec-support (~> 3.12.0)
|
|
90
93
|
rspec-support (3.12.0)
|
|
94
|
+
simpleidn (0.2.1)
|
|
95
|
+
unf (~> 0.1.4)
|
|
91
96
|
sys-uname (1.2.3)
|
|
92
97
|
ffi (~> 1.1)
|
|
93
98
|
thor (1.2.2)
|
|
94
99
|
timecop (0.9.6)
|
|
95
100
|
timers (4.3.5)
|
|
101
|
+
unf (0.1.4)
|
|
102
|
+
unf_ext
|
|
103
|
+
unf_ext (0.0.8.2)
|
|
96
104
|
uri_template (0.7.0)
|
|
97
105
|
|
|
98
106
|
PLATFORMS
|
|
@@ -102,6 +110,7 @@ PLATFORMS
|
|
|
102
110
|
x86_64-darwin-19
|
|
103
111
|
x86_64-darwin-20
|
|
104
112
|
x86_64-darwin-21
|
|
113
|
+
x86_64-darwin-22
|
|
105
114
|
x86_64-linux
|
|
106
115
|
|
|
107
116
|
DEPENDENCIES
|
data/lib/rsmp/message.rb
CHANGED
|
@@ -246,7 +246,7 @@ module RSMP
|
|
|
246
246
|
end
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
-
class
|
|
249
|
+
class AlarmAcknowledge < Alarm
|
|
250
250
|
def initialize attributes = {}
|
|
251
251
|
super({
|
|
252
252
|
"aSp" => "Acknowledge",
|
|
@@ -254,18 +254,18 @@ module RSMP
|
|
|
254
254
|
end
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
-
class
|
|
257
|
+
class AlarmAcknowledged < Alarm
|
|
258
258
|
def initialize attributes = {}
|
|
259
259
|
super({
|
|
260
|
-
"aSp" => "
|
|
260
|
+
"aSp" => "Acknowledge",
|
|
261
|
+
"ack" => "acknowledged"
|
|
261
262
|
}.merge attributes)
|
|
262
263
|
end
|
|
263
264
|
end
|
|
264
|
-
|
|
265
|
-
class AlarmResume < Alarm
|
|
265
|
+
class AlarmSuspend < Alarm
|
|
266
266
|
def initialize attributes = {}
|
|
267
267
|
super({
|
|
268
|
-
"aSp" => "
|
|
268
|
+
"aSp" => "Suspend",
|
|
269
269
|
}.merge attributes)
|
|
270
270
|
end
|
|
271
271
|
end
|
|
@@ -279,6 +279,14 @@ module RSMP
|
|
|
279
279
|
end
|
|
280
280
|
end
|
|
281
281
|
|
|
282
|
+
class AlarmResume < Alarm
|
|
283
|
+
def initialize attributes = {}
|
|
284
|
+
super({
|
|
285
|
+
"aSp" => "Resume",
|
|
286
|
+
}.merge attributes)
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
282
290
|
class AlarmResumed < Alarm
|
|
283
291
|
def initialize attributes = {}
|
|
284
292
|
super({
|
data/lib/rsmp/site.rb
CHANGED
|
@@ -97,12 +97,12 @@ module RSMP
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
def alarm_acknowledged alarm_state
|
|
100
|
-
alarm =
|
|
100
|
+
alarm = AlarmAcknowledged.new( alarm_state.to_hash )
|
|
101
101
|
send_alarm alarm
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
def alarm_suspended_or_resumed alarm_state
|
|
105
|
-
alarm =
|
|
105
|
+
alarm = AlarmSuspended.new( alarm_state.to_hash.merge('aSp' => 'Suspend') )
|
|
106
106
|
send_alarm alarm
|
|
107
107
|
end
|
|
108
108
|
|
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.19.
|
|
4
|
+
version: 0.19.3
|
|
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-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: async
|