Description

Semantic Versioning 2.0.0 library

Package Information

Version2.4.0 (2016-Nov-12)
Repositoryhttps://github.com/azbukagh/BrightProof
LicenseMIT
Copyright2016 Azbuka
AuthorsAzbuka
Registered byAzbuka
Dependencies

natcmp

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

BrightProof Page on DUB Licence

SemVer 2.0.0 parsing and constructing library

Comparing

You can compare structs.

SemVer("1.0.0-rc.1") < SemVer("1.0.0-rc.20");
SemVer("1.0.0-rc.1") < SemVer("1.0.0");
SemVer("1.0.0-rc.1") < SemVer("1.0.0+build.1");

Examples

Check out ./examples directory

Compile-time

You can use this library at compile-time.

pragma(msg, SemVer("1.0.0").nextMajor.nextMinor.toString);

Available versions

2.4.0 2.3.0 2.2.1 2.2.0 2.1.3 2.1.2 2.1.1 2.1.0 2.1.0-alpha 2.0.0 1.0.0 0.1.1 0.1.0 0.0.1 ~master