brightproof 2.1.0-alpha
SemVer is never been so easy
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This package provides sub packages which can be used individually:
brightproof:example - Example of BrightProof use
brightproof:test - Unittesting of BrightProof
BrightProof
SemVer 2.0.0 parser
Usage
- Add brightproof to your dub.json as dependency.
- Import it:
import BrightProof;
- And use:
SemVer ver = SemVer("0.0.2-beta");
ver.Major++;
ver.toString == "1.0.2-beta";
Comparing
SemVer structs can be compared via <
, >
, ==
, >=
, <=
, just like any other values.
Also, Identifiers and Metas now compared too:
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");
Example
Aviable in ./example
.
TODO
- [x] Change Identifier -> PreRelease and Meta -> Build in 1.0.0.
- Registered by Azbuka
- 2.1.0-alpha released 8 years ago
- azbukagh/BrightProof
- MIT
- 2016 Azbuka-slovensko
- Authors:
- Sub packages:
- brightproof:example, brightproof:test
- Dependencies:
- natcmp
- Versions:
-
2.4.0 2016-Nov-12 2.3.0 2016-Nov-11 2.2.1 2016-Aug-11 2.2.0 2016-Apr-09 2.1.3 2016-Mar-31 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
1825 downloads total
-
- Score:
- 0.6
- Short URL:
- brightproof.dub.pm