semver_dialects 3.4.0 → 3.4.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 +4 -4
- data/lib/semver_dialects/interval_parser.rb +1 -1
- data/lib/semver_dialects/maven.rb +5 -1
- data/lib/semver_dialects/version.rb +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: 710e6a3a8fe698a7871ead1a3226d6a60d5edd17a0308933cd32107d79811605
|
|
4
|
+
data.tar.gz: 46598d990561c189be8022b5edb3cffd96ba8d16ce83380da64f76fb35576295
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba99632bcf1df6b5e16b66c2f83800594df1a296605bca5b04fb2854856f6ad76bda1c6b43f2e5589f3b10b47542bbf3b9b59c3bd8a44c9b64c009622117c945
|
|
7
|
+
data.tar.gz: ee15977caaa5cd9ba22e752892795c9e2648b615c6deca5fc4b732b40ed655ad892a465d079dc6423cf4a7cc9715f4a648f2be1bf783b5670723437e66422a76
|
|
@@ -18,7 +18,7 @@ module SemverDialects
|
|
|
18
18
|
module IntervalParser
|
|
19
19
|
# A constraint is made of an operator followed by a version string.
|
|
20
20
|
# Use the regular expression of the SemanticVersion because this is the most generic one.
|
|
21
|
-
CONSTRAINT_REGEXP = Regexp.new(
|
|
21
|
+
CONSTRAINT_REGEXP = Regexp.new('(?<op>[><=]+)\s*(?<version>[^\s]+)').freeze
|
|
22
22
|
|
|
23
23
|
def self.parse(typ, versionstring)
|
|
24
24
|
if versionstring == '=*'
|
|
@@ -168,7 +168,11 @@ module SemverDialects
|
|
|
168
168
|
elsif (s = scanner.scan('sp'))
|
|
169
169
|
parse_addition(SP)
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
# The `+` character is allowed per the official Maven version parser,
|
|
172
|
+
# so it's also parsed as an addition.
|
|
173
|
+
#
|
|
174
|
+
# See for more info https://gitlab.com/gitlab-org/gitlab/-/issues/466158
|
|
175
|
+
elsif (s = scanner.scan(/[a-z_+]+/))
|
|
172
176
|
parse_addition(s)
|
|
173
177
|
|
|
174
178
|
elsif (s = scanner.scan('.'))
|
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.2
|
|
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-08-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: pastel
|