brightproof 2.1.2

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

Building

BrightProof tested on ArchLinux x64 with:

  • DMD 2.070
  • LDC 0.17.0 (based on DMD v2.068.2 and LLVM 3.7.1)

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.

TODO

  • [x] Fix compilation with GDC 5.3.0
  • [x] More speed.
  • [ ] Test on different OS (BSD, Windows), architectures (x86, x86_64) with different compilers (DMD, LDC, GDC)
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

  • 1824 downloads total

Score:
0.6
Short URL:
brightproof.dub.pm