rsmp 0.14.1 → 0.14.4

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: ba4c1b6249ff89f55eeed34cbff4d10afe0fb50c1857549e97762d72680f40fe
4
- data.tar.gz: 7b46db97a6a1366c9ec0ff2eb6a1262007644b91e0003ff2afd55ab0b3c47649
3
+ metadata.gz: 5e64ae77d559a6e735ec8711d46b96b43eb271fff39eab2a629740e3802d7741
4
+ data.tar.gz: 251ce96a7f0cbb758eb14b7d9c1dfa8b082191fc9c940a33f146ce2b323bdbef
5
5
  SHA512:
6
- metadata.gz: 7d3aeaf54ab86793ee3b4890f94a89989cc732b46b1fb4f192986be234c58587d1a9599577a64c75aab9645db7011a4ad4b86dc685f0c78197d15b99444c362b
7
- data.tar.gz: 223926d281192692ea70e62c916cb21b132fc489a492676318e23d8479c7b11cde0893d7e2e4adaa1cfa0f636df506ecbf50c04a440cbce2b951ecc98b0a43ed
6
+ metadata.gz: 10958a1786e44ba463617f91f1fbfcbe9ff476c812c49d489fc11c422b9299a9193acb7f92dbfd4c492d703e5e211fc6969eebc0b245493c93c11b1adb40f561
7
+ data.tar.gz: b07555499a530bb011721de9ee9a4673c05c5393bc7397ee96226d2985d571ec28d7c909a5fe3134da8c624162367e67e74848f8f812db5cb2f35fb233cd6a57
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.14.1)
4
+ rsmp (0.14.4)
5
5
  async (~> 1.30.3)
6
6
  async-io (~> 1.33.0)
7
7
  colorize (~> 0.8.1)
8
- rsmp_schema (~> 0.1.0)
8
+ rsmp_schema (~> 0.2.0)
9
9
  thor (~> 1.2.1)
10
10
 
11
11
  GEM
@@ -80,7 +80,7 @@ GEM
80
80
  nio4r (2.5.8)
81
81
  rake (13.0.6)
82
82
  regexp_parser (2.5.0)
83
- rsmp_schema (0.1.0)
83
+ rsmp_schema (0.2.0)
84
84
  json_schemer (~> 0.2.21)
85
85
  thor (~> 1.2.1)
86
86
  rspec (3.10.0)
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 /Issue/i
64
+ when /^Issue$/i
65
65
  AlarmIssue.new attributes
66
- when /Request/i
66
+ when /^Request$/i
67
67
  AlarmRequest.new attributes
68
- when /Acknowledge/i
68
+ when /^Acknowledge$/i
69
69
  AlarmAcknowledged.new attributes
70
- when /Suspend/i
71
- if attributes['sS'] =~ /suspended/i
70
+ when /^Suspend$/i
71
+ if attributes['sS'] =~ /^suspended$/i
72
72
  AlarmSuspended.new attributes
73
- elsif attributes['sS'] =~ /notSuspended/i
73
+ elsif attributes['sS'] =~ /^notSuspended$/i
74
74
  AlarmResumed.new attributes
75
75
  else
76
76
  AlarmSuspend.new attributes
77
77
  end
78
- when /Resume/i
78
+ when /^Resume$/i
79
79
  AlarmResume.new attributes
80
80
  else
81
81
  Alarm.new attributes
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.4"
3
3
  end
data/rsmp.gemspec CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency "async-io", "~> 1.33.0"
35
35
  spec.add_dependency "colorize", "~> 0.8.1"
36
36
  spec.add_dependency "thor", "~> 1.2.1"
37
- spec.add_dependency "rsmp_schema", "~> 0.1.0"
37
+ spec.add_dependency "rsmp_schema", "~> 0.2.0"
38
38
 
39
39
  spec.add_development_dependency "bundler", "~> 2.3.7"
40
40
  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.14.1
4
+ version: 0.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.1.0
75
+ version: 0.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.1.0
82
+ version: 0.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement