determinator 2.8.0 → 2.9.0

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: 9dcdd00664fa1b47134a36911b0d0319c98d8fdb3c012b54342f97a160f63424
4
- data.tar.gz: b85ac99ae90d9e5b5fd009227f2f07f39dea8ce8a3ba6854cb7cd524850c785a
3
+ metadata.gz: f7c5b0103e26f752c64d792674d30d854f7265f2a48ad3d546e4f2a758bb811a
4
+ data.tar.gz: 99f0c278fd6b91fb1f20fcced167dcd8b70020b78d80be9803bc88ecdadfc7ae
5
5
  SHA512:
6
- metadata.gz: 845d3d1f0b96da3835a3ca7aec37dbdbaeac4a10d574277111f1642ccb55ff4b86abd420363a943f430efad68071bc34720d9fd03ba35cbcd12fd62332cb392b
7
- data.tar.gz: bf1f7889514902a82c72db708d030e789228abbc5237c94c3869d19bf5cee8a8888527d49f220c3f2d0afc12ce8d726dfaf9f00070f4bbc64c080bc79d155fd6
6
+ metadata.gz: ed644f22e58a4d761eae0cff9d8f14b5ab257fd962d2d3bd5734679b38b5ba12d7dee61632710dbd0b116c0dd846ca2952b12ad0184252f8789b74a8fc62847b
7
+ data.tar.gz: 78fd4b1d2de15e59fe1f417dc2703b37e643d8a08af493bcd1c4c51208493eab2fba82ab37b8b60af420b9d22e6402f4b570291a4d437d51172496ffd1e59e97
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 2.9.0
2
+
3
+ Feature:
4
+ - When an app_version does not comply with semantic versioning specifications (e.g.: 2021.11.05 with a trailing zero instead of the correct 2021.11.5), return false.
5
+
1
6
  # 2.8.0
2
7
 
3
8
  Feature:
@@ -241,7 +241,9 @@ module Determinator
241
241
  !v.match?(Semantic::Version::SemVerRegexp)
242
242
  end
243
243
  invalid_groups = required.flatten.select do |v|
244
- !v.match?(/\d/)
244
+ version_sections = v.split(/(\d(.+)?)/, 2)
245
+ without_operator = version_sections[1]&.strip || ''
246
+ !without_operator.match?(Semantic::Version::SemVerRegexp)
245
247
  end
246
248
 
247
249
  return false if (invalid_properties + invalid_groups).any?
@@ -1,3 +1,3 @@
1
1
  module Determinator
2
- VERSION = '2.8.0'
2
+ VERSION = '2.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: determinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Hastings-Spital
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday