alire-project / semantic_versioning

Semantic versioning in Ada
GNU General Public License v3.0
10 stars 3 forks source link

build

Semantic_Versioning

Semantic Versioning for the Ada language

Implements the 2.0 specification found at http://semver.org/

Types

Three types are provided:

Limitations

  1. Wildcard version sets (1.*) are not yet supported, but for a single * which means "any version".

  2. The special interpretation of caret and tilde for pre-1 versions that exists in some implementations is not applied, so they retain their usual meaning (compatibility within major/minor numbers). According to the Semver 2.0 spec, pre-1 releases do not offer any compatibility guarantees.

Unicode

By default, relational operators are accepted as plain ASCII sequences (<=, >=, /=) and as Unicode-encoded characters (≤, ≥, ≠). Unicode alternatives can be disabled in calls that accept textual input or produce corresponding output.

Usage

The public specifications are relatively small and intuitive. Check semantic_versioning-demo.adb for examples of use.