Skip to content

Upgrade to semver_dialects 3.0.0

Fabien Catteau requested to merge upgrade-to-semver_dialects-3.0.0 into master

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.parsetakes the package type as a first positional argument. Please note that this type is specific toSemverDialects`, and is not the same as the PURL type.

Related issue: Add version matching edge cases to the semver_d... (#386070)

Links

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.

Edited by Fabien Catteau

Merge request reports