Upgrade to semver_dialects 3.0.0
NOTE: This was reverted by !152342 (merged). See discussion.
What does this MR do and why?
Upgrade semver_dialects
gem from 2.0.2 to 3.0.0.
This improves the accuracy of Continuous
Vulnerability Scanning and License Scanning
when comparing the version of a SBOM
component to the advisory database
and the license database, respectively.
The code and the specs had to be adjusted for that new major release of the gem.
- Rename to
SemverDialects.version_satisfies?
. - Rename to
SemverDialects::IntervalParser
. - All classes and modules move to the
SemverDialects
namespace`. - Version parsers might return an error that inherit from
SemverDialects::InvalidVersionError
. - 'SemverDialects::IntervalParser.parse
takes the package type as a first positional argument. Please note that this type is specific to
SemverDialects`, and is not the same as the PURL type.
Related issue: Add version matching edge cases to the semver_d... (#386070)
Links
- #386070 (comment 1821312900)
- https://gitlab.com/gitlab-org/ruby/gems/semver_dialects/-/blob/master/CHANGELOG.md#v300
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.