Skip to content

Include new vers library tests in test suite #21

@pombredanne

Description

@pombredanne

Originally posted by @andrew in #538

I've also made a new version range library - the Vers Ruby gem (https://rubygems.org/gems/vers). It takes a mathematical approach by representing all version ranges as intervals internally (like [1.0.0, 2.0.0)), which makes set operations like union and intersection much cleaner than string parsing.

It implements the VERS specification for universal version ranges and supports the native syntax of npm, RubyGems, PyPI, Maven, NuGet, and others. The cool part is it converts everything to a standardized format while preserving the original semantics.

There's also a JSON test suite (https://github.com/andrew/vers/blob/main/test-suite-data.json) with 37 test cases that other language implementations can use to ensure they're all compatible with each other. Makes it much easier to build consistent tooling across different ecosystems.

Originally posted by @pombredanne in #538

This is great. Couple things to note:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions