You need to sign in or sign up before continuing.
semver_dialects 4.1.3 → 4.1.4
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 +4 -4
- data/lib/semver_dialects/semantic_version.rb +2 -1
- data/lib/semver_dialects/version.rb +1 -1
- data/lib/utils.rb +3 -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: 9b501ec840397038065a13900762eac171698dcc4f94532c6788b4397fddc9e7
|
|
4
|
+
data.tar.gz: da71137e03ef9ec1193dfea8ac2c718feb88efae2a56b82901e066ae7896374f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: daa21ff0ff99ab6e803bf07a6c6c40b31eb90bb11a488d00865309bead867fe953612ffee3acf0f6bcf65dd3c5925a7130f3cd980fddb8988cb69007e2795270
|
|
7
|
+
data.tar.gz: 9550024d789cf2b1e55e4e2d6b1190950bc38e6d9de4fceea9d4ee2ba3a157bda446d51a5efb29d58134073fe1b4f295a0c077f9f878a164debb1861b2e57bfd
|
|
@@ -207,7 +207,8 @@ module SemverDialects
|
|
|
207
207
|
@normalized_group_string = group_string_ucase
|
|
208
208
|
end
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
# Base 10, as in String#number?: a zero-padded segment is a decimal number.
|
|
211
|
+
parsed = Integer(@normalized_group_string, 10, exception: false)
|
|
211
212
|
@numeric_value = parsed
|
|
212
213
|
@is_numeric = !parsed.nil?
|
|
213
214
|
@is_wildcard = @normalized_group_string == 'X'
|
data/lib/utils.rb
CHANGED
|
@@ -13,8 +13,10 @@ class String
|
|
|
13
13
|
!empty?
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
# Base 10: without a base, Integer reads a leading 0 as an octal prefix,
|
|
17
|
+
# so '010' would be 8 and '08' would not be a number at all.
|
|
16
18
|
def number?
|
|
17
|
-
!!Integer(self, exception: false)
|
|
19
|
+
!!Integer(self, 10, exception: false)
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
def initial
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semver_dialects
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julian Thome
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-
|
|
13
|
+
date: 2026-11-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: pastel
|