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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a37812a868c6d3bad8062a801401cab15eb16964fff9b807a2cf20b20456de6d
4
- data.tar.gz: 075f0e7fa083b4953639a33627cf84597acc62e2d36e4e7f79f91c0c30a766c9
3
+ metadata.gz: 710e6a3a8fe698a7871ead1a3226d6a60d5edd17a0308933cd32107d79811605
4
+ data.tar.gz: 46598d990561c189be8022b5edb3cffd96ba8d16ce83380da64f76fb35576295
5
5
  SHA512:
6
- metadata.gz: 7cb542d4be24356e1bb7450b9ada8ccadf8a91b8afad7322e5e430ebdf5fc3747634af85a254a364a1b16c13efb68c0c6dfc3eb25dc6793c8c2cf799fdca3129
7
- data.tar.gz: 01f38cafb72e7b571bd88975e5793510b3bd55b12977b0de822ebc5edca790f033972337768da979a90469eaebb9080ae51e964b4fcd6f5b35638e122c11f285
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("(?<op>[><=]+) *(?<version>#{SemanticVersion::VERSION_PATTERN})").freeze
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
- elsif (s = scanner.scan(/[a-z_]+/))
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('.'))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SemverDialects
4
- VERSION = '3.4.0'
4
+ VERSION = '3.4.2'
5
5
  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.0
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-07-10 00:00:00.000000000 Z
13
+ date: 2024-08-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pastel