rsmp_schema 0.8.0 → 0.8.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: 92349304b2fa548c7495ff1bd83bd9890d7aab5886e87a213f1c11bd767fa944
4
- data.tar.gz: 9da5dcebad4286a2dd161ee06ef7eaa7351b0f4dbdddd0b7ca5d5c1d9fc49271
3
+ metadata.gz: 2d8ac2b603006eb33d7b058d737fbd36975d50a317017c88bdde86d07dabbead
4
+ data.tar.gz: ab032d884ca5b00c5c53fe4e4d8e58b0ea29f4d5ea0576579efd85c73222419b
5
5
  SHA512:
6
- metadata.gz: 3effc2a2059a58a223e13b357d9995be1f28cbe162e742993ef06b3b0bd6559f64dda2eff1e34b670f907fbc55835fe7a5b4a49b2b6139a8e76b0c9ea0bdc0aa
7
- data.tar.gz: 7093b400bd752a9defb3bece6ef8db540b3bec84d861cc5d88dee594f4ce8ad5387c1a730a179aa04ebf366d2e70ea5ca8b12644086a0105dbab750e134a45b7
6
+ metadata.gz: 1544d35ba5fe29095f307096f9e9e565744aa7aec3ed0b1ad25ad0f3256a3cc158fc3f87d4a922aab562889634975ea64f135882f1eb4ca1c2c86b5238cdaa3c
7
+ data.tar.gz: 89909e0a179be8d6e585b49b8a1059c391fd76056ce08918ca01f21ab3b8840485e48babeb83802f859eec7348fbba5b6bcec866f163fe41f7af6909a233e295
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.8.0)
4
+ rsmp_schema (0.8.2)
5
5
  json_schemer (~> 2.3.0)
6
6
  thor (~> 1.3.1)
7
7
 
@@ -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 version
144
- matched.to_s if matched
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 version
148
- "#{matched.to_s}.0" if matched
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
@@ -1,5 +1,5 @@
1
1
  module RSMP
2
2
  module Schema
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.2"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@
9
9
  "aS" : {
10
10
  "description" : "Active status",
11
11
  "type" : "string",
12
- "enum" : [ "inActive", "Active",
12
+ "enum" : [ "inActive", "Active", "inactive",
13
13
  "InActive", "active" ]
14
14
  },
15
15
  "sS" : {
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer