rsmp_schema 0.5 → 0.5.2

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: b0fe667b2e56247b88fa296646f5722440c9e8e6fa39b1df0a100ac9e41428b0
4
- data.tar.gz: e15a00378c0e0d111f5fb2e7a9c4a36b6ade8b5ff81ac228dd6d47ef29dca223
3
+ metadata.gz: d56697bd07d0433d3c87794ba60633b668ccb4973e80efa8733a6990e8aed9cf
4
+ data.tar.gz: d781453ca631feac00eea1e3c03e4fd8cf9205415b3329ed24872b220baefbc9
5
5
  SHA512:
6
- metadata.gz: ebae7d8552ff121ed8c6e7f33b7c71d16aba8a344daf9d74d9cceddb701400f6117f8a49e97b996a190bce7adc115132e1d940114f95bd8f71446c6ca9300eee
7
- data.tar.gz: f3a2b02f947c1da1bb3081898e16d0c5669bfbb3f4a97c220f0eeb1db435186cd61c911504af584b5c2bdb62ec89ed8645d00c42cf59458f6dfdef34d1b4f82f
6
+ metadata.gz: a56ae1db79d6061a5afbd1bdd3c90d690e4ff4747c362755da9bfea43297e553d1eca2da77900b939cebac595f1c5c4b7e25775f2f4c0136c6466200745fbca6
7
+ data.tar.gz: 98cc8cb64e54023328fafc831686f7c7590f0ab61da5e0b4e74670f6b8611eb21a9b9c6b6ca0894dedbba6fa16da2dbbdfb1bee83ba08a9adbbb4b309f61f2ba
data/Gemfile.lock CHANGED
@@ -1,55 +1,49 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.5)
5
- json_schemer (~> 0.2.21)
6
- thor (~> 1.2.1)
4
+ rsmp_schema (0.5.2)
5
+ json_schemer (~> 2.1.0)
6
+ thor (~> 1.3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.5.0)
12
- ecma-re-validator (0.4.0)
13
- regexp_parser (~> 2.2)
14
12
  hana (1.3.7)
15
- json_schemer (0.2.25)
16
- ecma-re-validator (~> 0.3)
13
+ json_schemer (2.1.0)
17
14
  hana (~> 1.3)
18
15
  regexp_parser (~> 2.0)
19
16
  simpleidn (~> 0.2)
20
- uri_template (~> 0.7)
21
- rake (13.0.6)
22
- regexp_parser (2.8.1)
23
- rspec (3.11.0)
24
- rspec-core (~> 3.11.0)
25
- rspec-expectations (~> 3.11.0)
26
- rspec-mocks (~> 3.11.0)
27
- rspec-core (3.11.0)
28
- rspec-support (~> 3.11.0)
29
- rspec-expectations (3.11.1)
17
+ rake (13.1.0)
18
+ regexp_parser (2.8.2)
19
+ rspec (3.12.0)
20
+ rspec-core (~> 3.12.0)
21
+ rspec-expectations (~> 3.12.0)
22
+ rspec-mocks (~> 3.12.0)
23
+ rspec-core (3.12.2)
24
+ rspec-support (~> 3.12.0)
25
+ rspec-expectations (3.12.3)
30
26
  diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.11.0)
32
- rspec-mocks (3.11.2)
27
+ rspec-support (~> 3.12.0)
28
+ rspec-mocks (3.12.6)
33
29
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.11.0)
35
- rspec-support (3.11.1)
30
+ rspec-support (~> 3.12.0)
31
+ rspec-support (3.12.1)
36
32
  simpleidn (0.2.1)
37
33
  unf (~> 0.1.4)
38
- thor (1.2.2)
34
+ thor (1.3.0)
39
35
  unf (0.1.4)
40
36
  unf_ext
41
- unf_ext (0.0.8.2)
42
- uri_template (0.7.0)
37
+ unf_ext (0.0.9.1)
43
38
 
44
39
  PLATFORMS
45
40
  ruby
46
41
 
47
42
  DEPENDENCIES
48
- bundler (~> 2.3.19)
49
- rake (~> 13.0.6)
43
+ rake (~> 13.1.0)
50
44
  rsmp_schema!
51
- rspec (~> 3.11.0)
52
- rspec-expectations (~> 3.11.0)
45
+ rspec (~> 3.12.0)
46
+ rspec-expectations (~> 3.12.3)
53
47
 
54
48
  BUNDLED WITH
55
- 2.4.20
49
+ 2.4.22
@@ -1,5 +1,5 @@
1
1
  module RSMP
2
2
  module Schema
3
- VERSION = "0.5"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
data/rsmp_schema.gemspec CHANGED
@@ -30,11 +30,10 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "json_schemer", "~> 0.2.21"
34
- spec.add_dependency "thor", "~> 1.2.1"
33
+ spec.add_dependency "json_schemer", "~> 2.1.0"
34
+ spec.add_dependency "thor", "~> 1.3.0"
35
35
 
36
- spec.add_development_dependency "bundler", "~> 2.3.19"
37
- spec.add_development_dependency "rake", "~> 13.0.6"
38
- spec.add_development_dependency "rspec", "~> 3.11.0"
39
- spec.add_development_dependency "rspec-expectations", "~> 3.11.0"
36
+ spec.add_development_dependency "rake", "~> 13.1.0"
37
+ spec.add_development_dependency "rspec", "~> 3.12.0"
38
+ spec.add_development_dependency "rspec-expectations", "~> 3.12.3"
40
39
  end
@@ -53,6 +53,15 @@
53
53
  }
54
54
  },
55
55
  "then": { "$ref": "alarm_suspended_resumed.json" }
56
+ },
57
+ {
58
+ "if": {
59
+ "required" : [ "aSp" ],
60
+ "properties" : {
61
+ "aSp" : { "enum" : [ "Acknowledge"] }
62
+ }
63
+ },
64
+ "then": { "$ref": "alarm_acknowledge.json" }
56
65
  }
57
66
  ]
58
67
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged",
7
+ "acknowledged", "NotAcknowledged" ]
8
+ },
9
+ "aTs" : { "$ref": "definitions.json#/timestamp" }
10
+ },
11
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "aTs" ]
12
+ }
@@ -54,6 +54,15 @@
54
54
  },
55
55
  "then": { "$ref": "../3.1.2/alarm_suspended_resumed.json" }
56
56
  },
57
+ {
58
+ "if": {
59
+ "required" : [ "aSp" ],
60
+ "properties" : {
61
+ "aSp" : { "enum" : [ "Acknowledge"] }
62
+ }
63
+ },
64
+ "then": { "$ref": "../3.1.2/alarm_acknowledge.json" }
65
+ },
57
66
  {
58
67
  "if": {
59
68
  "required" : [ "aSp" ],
@@ -18,7 +18,7 @@
18
18
  "description" : "Update interval in seconds, 0 means send when value changes"
19
19
  },
20
20
  "sOc" : {
21
- "$ref": "../3.1.2/definitions.json#/boolean",
21
+ "type": "boolean",
22
22
  "description" : "Whether to send an update as soon as the value changes"
23
23
  }
24
24
  },
@@ -21,7 +21,7 @@
21
21
  "aSp" : { "enum" : [ "Issue"] }
22
22
  }
23
23
  },
24
- "then": { "$ref": "../3.1.2/alarm_issue.json" }
24
+ "then": { "$ref": "../3.2/alarm_issue.json" }
25
25
  },
26
26
  {
27
27
  "if": {
@@ -47,7 +47,7 @@
47
47
  "sS" : { "enum" : [ "suspended", "notSuspended"] }
48
48
  }
49
49
  },
50
- "then": { "$ref": "../3.1.2/alarm_suspended_resumed.json" }
50
+ "then": { "$ref": "../3.2/alarm_suspended_resumed.json" }
51
51
  },
52
52
  {
53
53
  "if": {
@@ -57,6 +57,15 @@
57
57
  }
58
58
  },
59
59
  "then": { "$ref": "../3.1.5/alarm_request.json" }
60
+ },
61
+ {
62
+ "if": {
63
+ "required" : [ "aSp" ],
64
+ "properties" : {
65
+ "aSp" : { "enum" : [ "Acknowledge"] }
66
+ }
67
+ },
68
+ "then": { "$ref": "../3.2/alarm_acknowledge.json" }
60
69
  }
61
70
  ]
62
71
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aTs" : { "$ref": "../3.1.2/definitions.json#/timestamp" }
9
+ },
10
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "aTs" ]
11
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aS" : {
9
+ "description" : "Active status",
10
+ "type" : "string",
11
+ "enum" : [ "inActive", "Active" ]
12
+ },
13
+ "sS" : {
14
+ "description" : "Suspend status",
15
+ "type" : "string",
16
+ "enum" : [ "suspended", "notSuspended" ]
17
+ },
18
+ "aTs" : { "$ref": "../3.1.2/definitions.json#/timestamp" },
19
+ "cat" : {
20
+ "description" : "Category",
21
+ "type" : "string",
22
+ "enum" : [ "T", "D" ]
23
+ },
24
+ "pri" : {
25
+ "description" : "Priority",
26
+ "type" : "string",
27
+ "enum" : [ "1", "2", "3" ]
28
+ },
29
+ "rvs" : {
30
+ "description" : "Return values",
31
+ "type" : "array",
32
+ "items" : {
33
+ "type" : "object",
34
+ "properties": {
35
+ "n" : { "description" : "Unique reference of the value", "type" : "string" },
36
+ "v" : { "description" : "Value", "type" : "string" }
37
+ },
38
+ "required" : [ "n", "v" ],
39
+ "additionalProperties": false
40
+ }
41
+ }
42
+ },
43
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "ack", "aS", "aTs", "sS", "cat", "pri", "rvs" ]
44
+ }
@@ -0,0 +1,44 @@
1
+ x{
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aS" : {
9
+ "description" : "Active status",
10
+ "type" : "string",
11
+ "enum" : [ "inActive", "Active" ]
12
+ },
13
+ "sS" : {
14
+ "description" : "Suspend status",
15
+ "type" : "string",
16
+ "enum" : [ "Suspended", "notSuspended" ]
17
+ },
18
+ "aTs" : { "$ref": "definitions.json#/timestamp" },
19
+ "cat" : {
20
+ "description" : "Category",
21
+ "type" : "string",
22
+ "enum" : [ "T", "D" ]
23
+ },
24
+ "pri" : {
25
+ "description" : "Priority",
26
+ "type" : "string",
27
+ "enum" : [ "1", "2", "3" ]
28
+ },
29
+ "rvs" : {
30
+ "description" : "Return values",
31
+ "type" : "array",
32
+ "items" : {
33
+ "type" : "object",
34
+ "properties": {
35
+ "n" : { "description" : "Unique reference of the value", "type" : "string" },
36
+ "v" : { "description" : "Value", "type" : "string" }
37
+ },
38
+ "required" : [ "n", "v" ],
39
+ "additionalProperties": false
40
+ }
41
+ }
42
+ },
43
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "ack", "aS", "aTs", "sS", "cat", "pri", "rvs" ]
44
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name" : "tlc",
3
3
  "description" : "Traffic Light Controllers",
4
- "version" : "1.2",
4
+ "version" : 1.2,
5
5
  "allOf" : [
6
6
  {
7
7
  "if" : {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.2
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-09-29 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer
@@ -16,84 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.21
19
+ version: 2.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.21
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.1
33
+ version: 1.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2.1
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 2.3.19
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 2.3.19
40
+ version: 1.3.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 13.0.6
47
+ version: 13.1.0
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 13.0.6
54
+ version: 13.1.0
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 3.11.0
61
+ version: 3.12.0
76
62
  type: :development
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: 3.11.0
68
+ version: 3.12.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rspec-expectations
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 3.11.0
75
+ version: 3.12.3
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 3.11.0
82
+ version: 3.12.3
97
83
  description: Validate RSMP message against RSMP JSON Schema. Support validating against
98
84
  core and different SXL's, in different versions.
99
85
  email:
@@ -124,6 +110,7 @@ files:
124
110
  - rsmp_schema.gemspec
125
111
  - schemas/core/3.1.2/aggregated_status.json
126
112
  - schemas/core/3.1.2/alarm.json
113
+ - schemas/core/3.1.2/alarm_acknowledge.json
127
114
  - schemas/core/3.1.2/alarm_issue.json
128
115
  - schemas/core/3.1.2/alarm_suspend_resume.json
129
116
  - schemas/core/3.1.2/alarm_suspended_resumed.json
@@ -156,6 +143,9 @@ files:
156
143
  - schemas/core/3.2.1/core.json
157
144
  - schemas/core/3.2.1/rsmp.json
158
145
  - schemas/core/3.2/alarm.json
146
+ - schemas/core/3.2/alarm_acknowledge.json
147
+ - schemas/core/3.2/alarm_issue.json
148
+ - schemas/core/3.2/alarm_suspended_resumed.json
159
149
  - schemas/core/3.2/core.json
160
150
  - schemas/core/3.2/rsmp.json
161
151
  - schemas/core/3.2/status_response.json
@@ -886,7 +876,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
886
876
  - !ruby/object:Gem::Version
887
877
  version: '0'
888
878
  requirements: []
889
- rubygems_version: 3.4.10
879
+ rubygems_version: 3.4.22
890
880
  signing_key:
891
881
  specification_version: 4
892
882
  summary: Validate RSMP message against RSMP JSON Schema.