semver_dialects 3.4.3 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/semver_dialects/apk.rb +4 -0
- data/lib/semver_dialects/version.rb +1 -1
- data/lib/semver_dialects.rb +6 -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: f8bdc291086fe3045ad20dbcd66689632e3ade434df5083612deac04d9c70734
|
4
|
+
data.tar.gz: a0ad9e2453d852fb21302255ebd6396720c2a83e276a19e1732511bf09b67886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dc9a8c36935d003363114d308f4a2e62f32723e122c8c6259658f5ef1bd78baa4793930b716be4823e4e1567f01b10deebc33327a0f37451d376b2ba9b4155d
|
7
|
+
data.tar.gz: 4af84b590cbf953e99ad9ffb04e3e0cff6abcc1d4b32ed0be05b3b2e23cdd4f21116888156047c2aac6ffb992dba41ba451db3c8063cd0c69c47ca399952a73e
|
data/lib/semver_dialects/apk.rb
CHANGED
@@ -217,6 +217,8 @@ module SemverDialects
|
|
217
217
|
@post_release << s.to_i
|
218
218
|
return
|
219
219
|
end
|
220
|
+
else
|
221
|
+
raise SemverDialects::InvalidVersionError, input
|
220
222
|
end
|
221
223
|
end
|
222
224
|
end
|
@@ -234,6 +236,8 @@ module SemverDialects
|
|
234
236
|
when (s = scanner.scan(DIGITS))
|
235
237
|
@revision << s.to_i
|
236
238
|
return
|
239
|
+
else
|
240
|
+
raise SemverDialects::InvalidVersionError, input
|
237
241
|
end
|
238
242
|
end
|
239
243
|
end
|
data/lib/semver_dialects.rb
CHANGED
@@ -122,7 +122,7 @@ module SemverDialects # rubocop:todo Style/Documentation
|
|
122
122
|
|
123
123
|
when 'npm'
|
124
124
|
# npm follows Semver 2.0.0.
|
125
|
-
Semver2::VersionParser.parse(raw_ver)
|
125
|
+
Semver2::VersionParser.parse(cleanup(raw_ver))
|
126
126
|
|
127
127
|
when 'go'
|
128
128
|
# Go follows Semver 2.0.0.
|
@@ -228,4 +228,9 @@ module SemverDialects # rubocop:todo Style/Documentation
|
|
228
228
|
# Gem::Version.new raises an ArgumentError for invalid versions.
|
229
229
|
raise InvalidVersionError, raw_ver
|
230
230
|
end
|
231
|
+
|
232
|
+
# cleanup loose npm versions
|
233
|
+
def self.cleanup(raw_ver)
|
234
|
+
raw_ver.strip.gsub(/^[=v]/, '')
|
235
|
+
end
|
231
236
|
end
|
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: 3.4.
|
4
|
+
version: 3.4.5
|
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: 2024-
|
13
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pastel
|