rsmp_schema 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp_schema/schema.rb +6 -6
- data/lib/rsmp_schema/version.rb +1 -1
- data/schemas/core/3.1.2/alarm_issue.json +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: 2d8ac2b603006eb33d7b058d737fbd36975d50a317017c88bdde86d07dabbead
|
4
|
+
data.tar.gz: ab032d884ca5b00c5c53fe4e4d8e58b0ea29f4d5ea0576579efd85c73222419b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1544d35ba5fe29095f307096f9e9e565744aa7aec3ed0b1ad25ad0f3256a3cc158fc3f87d4a922aab562889634975ea64f135882f1eb4ca1c2c86b5238cdaa3c
|
7
|
+
data.tar.gz: 89909e0a179be8d6e585b49b8a1059c391fd76056ce08918ca01f21ab3b8840485e48babeb83802f859eec7348fbba5b6bcec866f163fe41f7af6909a233e295
|
data/Gemfile.lock
CHANGED
data/lib/rsmp_schema/schema.rb
CHANGED
@@ -139,13 +139,13 @@ module RSMP::Schema
|
|
139
139
|
# 3.1A3r3 >= 3.1
|
140
140
|
# return nil if string doesn't match
|
141
141
|
def self.sanitize_version version
|
142
|
-
# match normal z.y.z format
|
143
|
-
matched = /^\d+\.\d+\.\d+/.match
|
144
|
-
|
145
|
-
|
142
|
+
# match normal semver z.y.z format
|
143
|
+
if matched = /^\d+\.\d+\.\d+/.match(version)
|
144
|
+
matched.to_s
|
146
145
|
# match x.y format, and add patch version zero to get z.y.0
|
147
|
-
matched = /^\d+\.\d+/.match
|
148
|
-
|
146
|
+
elsif matched = /^\d+\.\d+/.match(version)
|
147
|
+
"#{matched.to_s}.0"
|
148
|
+
end
|
149
149
|
end
|
150
150
|
|
151
151
|
# find schema for a particular schema and version
|
data/lib/rsmp_schema/version.rb
CHANGED
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.8.
|
4
|
+
version: 0.8.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: 2024-09-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schemer
|