brightproof 2.2.0

Semantic Versioning 2.0.0 library


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

  1. Add brightproof to your dub.json as dependency.
  2. Import it:
import BrightProof;
  1. 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, PreReleases and Buildss 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.

Building

BrightProof tested on:

OSArchitectureCompiler
Archlinuxx86, x86_64DMD 2.070
Archlinuxx86_64LDC 0.17.0
Archlinuxx86_64GDC 5.3.0
----------------------------

TODO

  • [ ] Test on different OS (BSD, Windows), architectures (x86, x86_64) with different compilers (DMD, LDC, GDC)
  • [ ] Parser must report error, if MAJOR, MINOR or PATCH starts with 0.
  • [ ] Because I can't rewrite phobos's to, I need to completly rewrite parser.
Authors:
  • Azbuka-slovensko
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
Show all 15 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 1825 downloads total

Score:
0.6
Short URL:
brightproof.dub.pm