semver_dialects 3.4.1 → 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: f05d7eb6df3aa024a5f02ddf7adbb3b764cb42cd12e340344e10ef4aab480421
4
- data.tar.gz: 94b62257b3877b71ab8690c2bd7ebd7e5cabceb3876c2d41bd5547db4f3f0f82
3
+ metadata.gz: 710e6a3a8fe698a7871ead1a3226d6a60d5edd17a0308933cd32107d79811605
4
+ data.tar.gz: 46598d990561c189be8022b5edb3cffd96ba8d16ce83380da64f76fb35576295
5
5
  SHA512:
6
- metadata.gz: 6304db41bbfb8fbddbe80cf89a5e4052f237dcf23387a6f7059e64bf9f97f7aaf34f278c58a3b0d9a3d7662ff06651244e4288e80fbe10ddb3dc4a34ab57f002
7
- data.tar.gz: 5d11667814ede20c14af2dd74b8bcfc7c294c757e5d588dfb51b4bc57af7595c23fd13b182b30cd994401b0cedfc819755ab1cecb7b40f2ddfbbc7764381dab8
6
+ metadata.gz: ba99632bcf1df6b5e16b66c2f83800594df1a296605bca5b04fb2854856f6ad76bda1c6b43f2e5589f3b10b47542bbf3b9b59c3bd8a44c9b64c009622117c945
7
+ data.tar.gz: ee15977caaa5cd9ba22e752892795c9e2648b615c6deca5fc4b732b40ed655ad892a465d079dc6423cf4a7cc9715f4a648f2be1bf783b5670723437e66422a76
@@ -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.1'
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.1
4
+ version: 3.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Thome