rsmp 0.48.1 → 0.48.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e7604bb4ca158d85f6c21f6b6d5c309d5ff0a716d875bdfd89074ff7405784f
4
- data.tar.gz: 5533038b6986bab14162789688ded65984b0567b3d39d1aa1f83ae34ab9402e1
3
+ metadata.gz: b7679302307b859b55883853c8c6e68e0312ce424a669a8f8a6518cf12e87332
4
+ data.tar.gz: 4751ec87842c6c2e5eea8df0c7de2d5225357260ac2738ea2eb9effdd119f1ca
5
5
  SHA512:
6
- metadata.gz: f9c3a5b15a0f8e73a13bfa1df9462ac930f86a26e7d59af60959c75c251fa6a731024ed4b7a749c0d6ef1c962914dbd9794f293e8b03fd9080ffc8be9cd1dd3b
7
- data.tar.gz: ccd011065b7bfcc6f65adf506b9c5e1b5ec6702900af7a2110437a8653533b08ebd097988a604964e7dc619fccede56c6a9c7c3e4af08cc7234ad1342b831cbc
6
+ metadata.gz: ae23356f9e9b4d1daff2bb8fda1a085a49a3ae832cf204ded0f17c20c7e722a0d9f9d9708ce8734de3d5e2aeebcb7d55e8b97a56523985904246c0036f85929d
7
+ data.tar.gz: fa43ab65b703f93a4abbe07cab0ad08c144b931a2df4b5580a9a8841d2a748989557fa2fa65e658e1f9a67942cd737ad70018d8922342294cc717394ac2093b0
data/CHANGELOG.md CHANGED
@@ -702,3 +702,6 @@ Initial release.
702
702
 
703
703
  ## 0.48.1
704
704
  - fix command responses and collectors for `v=nil` with `age=undefined` or `age=unknown`
705
+
706
+ ## 0.48.2
707
+ - fix legacy TLC M0001 schemas to use scalar command arguments
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp (0.48.1)
4
+ rsmp (0.48.2)
5
5
  async (~> 2.39)
6
6
  colorize (~> 1.1)
7
7
  io-endpoint (~> 0.17)
@@ -15,7 +15,7 @@ GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
17
  ast (2.4.3)
18
- async (2.40.0)
18
+ async (2.41.0)
19
19
  console (~> 1.29)
20
20
  fiber-annotation
21
21
  io-event (~> 1.11)
@@ -33,7 +33,7 @@ GEM
33
33
  fiber-storage (1.0.1)
34
34
  hana (1.3.7)
35
35
  io-endpoint (0.17.2)
36
- io-event (1.16.4)
36
+ io-event (1.19.1)
37
37
  io-stream (0.13.1)
38
38
  json (2.20.0)
39
39
  json_schemer (2.5.0)
data/lib/rsmp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RSMP
2
- VERSION = '0.48.1'.freeze
2
+ VERSION = '0.48.2'.freeze
3
3
  end
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -461,18 +461,21 @@ objects:
461
461
  YellowFlash: Enables yellow flash
462
462
  Dark: Enables dark mode
463
463
  securityCode:
464
- type: string_list
464
+ type: string
465
465
  description: Security code 2
466
466
  timeout:
467
- type: integer_list
467
+ type: integer_as_string
468
468
  description: |-
469
469
  Time in minutes until controller automatically reverts to previous functional position.
470
470
  0=no automatic return
471
471
  min: 0
472
472
  max: 1440
473
473
  intersection:
474
- type: integer_list
475
- description: Intersection number
474
+ type: integer_as_string
475
+ description: |-
476
+ Intersection number.
477
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
478
+ 0: All intersections
476
479
  min: 0
477
480
  max: 255
478
481
  command: setValue
@@ -188,10 +188,10 @@
188
188
  "commands" : {
189
189
  "M0001" : {
190
190
  "required" : {
191
- "intersection" : "integer_list",
192
- "securityCode" : "string_list",
191
+ "intersection" : "integer_as_string",
192
+ "securityCode" : "string",
193
193
  "status" : "string",
194
- "timeout" : "integer_list"
194
+ "timeout" : "integer_as_string"
195
195
  }
196
196
  },
197
197
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -590,18 +590,21 @@ objects:
590
590
  YellowFlash: Enables yellow flash
591
591
  Dark: Enables dark mode
592
592
  securityCode:
593
- type: string_list
593
+ type: string
594
594
  description: Security code 2
595
595
  timeout:
596
- type: integer_list
596
+ type: integer_as_string
597
597
  description: |-
598
598
  Time in minutes until controller automatically reverts to previous functional position.
599
599
  0=no automatic return
600
600
  min: 0
601
601
  max: 1440
602
602
  intersection:
603
- type: integer_list
604
- description: Intersection number
603
+ type: integer_as_string
604
+ description: |-
605
+ Intersection number.
606
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
607
+ 0: All intersections
605
608
  min: 0
606
609
  max: 255
607
610
  command: setValue
@@ -235,10 +235,10 @@
235
235
  "commands" : {
236
236
  "M0001" : {
237
237
  "required" : {
238
- "intersection" : "integer_list",
239
- "securityCode" : "string_list",
238
+ "intersection" : "integer_as_string",
239
+ "securityCode" : "string",
240
240
  "status" : "string",
241
- "timeout" : "integer_list"
241
+ "timeout" : "integer_as_string"
242
242
  }
243
243
  },
244
244
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -728,18 +728,21 @@ objects:
728
728
  YellowFlash: Enables yellow flash
729
729
  Dark: Enables dark mode
730
730
  securityCode:
731
- type: string_list
731
+ type: string
732
732
  description: Security code 2
733
733
  timeout:
734
- type: integer_list
734
+ type: integer_as_string
735
735
  description: |-
736
736
  Time in minutes until controller automatically reverts to previous functional position.
737
737
  0=no automatic return
738
738
  min: 0
739
739
  max: 1440
740
740
  intersection:
741
- type: integer_list
742
- description: Intersection number
741
+ type: integer_as_string
742
+ description: |-
743
+ Intersection number.
744
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
745
+ 0: All intersections
743
746
  min: 0
744
747
  max: 255
745
748
  command: setValue
@@ -267,10 +267,10 @@
267
267
  "commands" : {
268
268
  "M0001" : {
269
269
  "required" : {
270
- "intersection" : "integer_list",
271
- "securityCode" : "string_list",
270
+ "intersection" : "integer_as_string",
271
+ "securityCode" : "string",
272
272
  "status" : "string",
273
- "timeout" : "integer_list"
273
+ "timeout" : "integer_as_string"
274
274
  }
275
275
  },
276
276
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -825,18 +825,21 @@ objects:
825
825
  YellowFlash: Enables yellow flash
826
826
  Dark: Enables dark mode
827
827
  securityCode:
828
- type: string_list
828
+ type: string
829
829
  description: Security code 2
830
830
  timeout:
831
- type: integer_list
831
+ type: integer_as_string
832
832
  description: |-
833
833
  Time in minutes until controller automatically reverts to previous functional position.
834
834
  0=no automatic return
835
835
  min: 0
836
836
  max: 1440
837
837
  intersection:
838
- type: integer_list
839
- description: Intersection number
838
+ type: integer_as_string
839
+ description: |-
840
+ Intersection number.
841
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
842
+ 0: All intersections
840
843
  min: 0
841
844
  max: 255
842
845
  command: setValue
@@ -290,10 +290,10 @@
290
290
  "commands" : {
291
291
  "M0001" : {
292
292
  "required" : {
293
- "intersection" : "integer_list",
294
- "securityCode" : "string_list",
293
+ "intersection" : "integer_as_string",
294
+ "securityCode" : "string",
295
295
  "status" : "string",
296
- "timeout" : "integer_list"
296
+ "timeout" : "integer_as_string"
297
297
  }
298
298
  },
299
299
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -461,18 +461,21 @@ objects:
461
461
  YellowFlash: Enables yellow flash
462
462
  Dark: Enables dark mode
463
463
  securityCode:
464
- type: string_list
464
+ type: string
465
465
  description: Security code 2
466
466
  timeout:
467
- type: integer_list
467
+ type: integer_as_string
468
468
  description: |-
469
469
  Time in minutes until controller automatically reverts to previous functional position.
470
470
  0=no automatic return
471
471
  min: 0
472
472
  max: 1440
473
473
  intersection:
474
- type: integer_list
475
- description: Intersection number
474
+ type: integer_as_string
475
+ description: |-
476
+ Intersection number.
477
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
478
+ 0: All intersections
476
479
  min: 0
477
480
  max: 255
478
481
  command: setValue
@@ -200,10 +200,10 @@
200
200
  "commands" : {
201
201
  "M0001" : {
202
202
  "required" : {
203
- "intersection" : "integer_list",
204
- "securityCode" : "string_list",
203
+ "intersection" : "integer_as_string",
204
+ "securityCode" : "string",
205
205
  "status" : "string",
206
- "timeout" : "integer_list"
206
+ "timeout" : "integer_as_string"
207
207
  }
208
208
  },
209
209
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -461,18 +461,21 @@ objects:
461
461
  YellowFlash: Enables yellow flash
462
462
  Dark: Enables dark mode
463
463
  securityCode:
464
- type: string_list
464
+ type: string
465
465
  description: Security code 2
466
466
  timeout:
467
- type: integer_list
467
+ type: integer_as_string
468
468
  description: |-
469
469
  Time in minutes until controller automatically reverts to previous functional position.
470
470
  0=no automatic return
471
471
  min: 0
472
472
  max: 1440
473
473
  intersection:
474
- type: integer_list
475
- description: Intersection number
474
+ type: integer_as_string
475
+ description: |-
476
+ Intersection number.
477
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
478
+ 0: All intersections
476
479
  min: 0
477
480
  max: 255
478
481
  command: setValue
@@ -188,10 +188,10 @@
188
188
  "commands" : {
189
189
  "M0001" : {
190
190
  "required" : {
191
- "intersection" : "integer_list",
192
- "securityCode" : "string_list",
191
+ "intersection" : "integer_as_string",
192
+ "securityCode" : "string",
193
193
  "status" : "string",
194
- "timeout" : "integer_list"
194
+ "timeout" : "integer_as_string"
195
195
  }
196
196
  },
197
197
  "M0002" : {
@@ -54,7 +54,7 @@
54
54
  "properties" : {
55
55
  "v" : {
56
56
  "description" : "Security code 2",
57
- "$ref" : "../defs/definitions.json#/string_list"
57
+ "type" : "string"
58
58
  }
59
59
  }
60
60
  }
@@ -71,7 +71,7 @@
71
71
  "properties" : {
72
72
  "v" : {
73
73
  "description" : "Time in minutes until controller automatically reverts to previous functional position.\n0=no automatic return",
74
- "$ref" : "../defs/definitions.json#/integer_list"
74
+ "$ref" : "../defs/definitions.json#/integer"
75
75
  }
76
76
  }
77
77
  }
@@ -87,8 +87,8 @@
87
87
  "then" : {
88
88
  "properties" : {
89
89
  "v" : {
90
- "description" : "Intersection number",
91
- "$ref" : "../defs/definitions.json#/integer_list"
90
+ "description" : "Intersection number.\nCommand only applies to specified intersection. Other intersections remains in their respective operating mode(s).\n0: All intersections",
91
+ "$ref" : "../defs/definitions.json#/integer"
92
92
  }
93
93
  }
94
94
  }
@@ -461,18 +461,21 @@ objects:
461
461
  YellowFlash: Enables yellow flash
462
462
  Dark: Enables dark mode
463
463
  securityCode:
464
- type: string_list
464
+ type: string
465
465
  description: Security code 2
466
466
  timeout:
467
- type: integer_list
467
+ type: integer_as_string
468
468
  description: |-
469
469
  Time in minutes until controller automatically reverts to previous functional position.
470
470
  0=no automatic return
471
471
  min: 0
472
472
  max: 1440
473
473
  intersection:
474
- type: integer_list
475
- description: Intersection number
474
+ type: integer_as_string
475
+ description: |-
476
+ Intersection number.
477
+ Command only applies to specified intersection. Other intersections remains in their respective operating mode(s).
478
+ 0: All intersections
476
479
  min: 0
477
480
  max: 255
478
481
  command: setValue
@@ -188,10 +188,10 @@
188
188
  "commands" : {
189
189
  "M0001" : {
190
190
  "required" : {
191
- "intersection" : "integer_list",
192
- "securityCode" : "string_list",
191
+ "intersection" : "integer_as_string",
192
+ "securityCode" : "string",
193
193
  "status" : "string",
194
- "timeout" : "integer_list"
194
+ "timeout" : "integer_as_string"
195
195
  }
196
196
  },
197
197
  "M0002" : {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.1
4
+ version: 0.48.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin