rsmp 0.14.3 → 0.14.4
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/message.rb +7 -7
- 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: 5e64ae77d559a6e735ec8711d46b96b43eb271fff39eab2a629740e3802d7741
|
|
4
|
+
data.tar.gz: 251ce96a7f0cbb758eb14b7d9c1dfa8b082191fc9c940a33f146ce2b323bdbef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10958a1786e44ba463617f91f1fbfcbe9ff476c812c49d489fc11c422b9299a9193acb7f92dbfd4c492d703e5e211fc6969eebc0b245493c93c11b1adb40f561
|
|
7
|
+
data.tar.gz: b07555499a530bb011721de9ee9a4673c05c5393bc7397ee96226d2985d571ec28d7c909a5fe3134da8c624162367e67e74848f8f812db5cb2f35fb233cd6a57
|
data/Gemfile.lock
CHANGED
data/lib/rsmp/message.rb
CHANGED
|
@@ -61,21 +61,21 @@ module RSMP
|
|
|
61
61
|
|
|
62
62
|
def self.build_alarm attributes
|
|
63
63
|
case attributes["aSp"]
|
|
64
|
-
when
|
|
64
|
+
when /^Issue$/i
|
|
65
65
|
AlarmIssue.new attributes
|
|
66
|
-
when
|
|
66
|
+
when /^Request$/i
|
|
67
67
|
AlarmRequest.new attributes
|
|
68
|
-
when
|
|
68
|
+
when /^Acknowledge$/i
|
|
69
69
|
AlarmAcknowledged.new attributes
|
|
70
|
-
when
|
|
71
|
-
if attributes['sS'] =~
|
|
70
|
+
when /^Suspend$/i
|
|
71
|
+
if attributes['sS'] =~ /^suspended$/i
|
|
72
72
|
AlarmSuspended.new attributes
|
|
73
|
-
elsif attributes['sS'] =~
|
|
73
|
+
elsif attributes['sS'] =~ /^notSuspended$/i
|
|
74
74
|
AlarmResumed.new attributes
|
|
75
75
|
else
|
|
76
76
|
AlarmSuspend.new attributes
|
|
77
77
|
end
|
|
78
|
-
when
|
|
78
|
+
when /^Resume$/i
|
|
79
79
|
AlarmResume.new attributes
|
|
80
80
|
else
|
|
81
81
|
Alarm.new attributes
|
data/lib/rsmp/version.rb
CHANGED