Skip to content

Commit 33e4d4d

Browse files
committed
TODO update
1 parent 9934fcc commit 33e4d4d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ BrightProof
22
=============
33
SemVer 2.0.0 parser
44

5+
## Building
6+
BrightProof tested on ArchLinux x64 with:
7+
- DMD 2.070
8+
- LDC 0.17.0 (based on DMD v2.068.2 and LLVM 3.7.1)
9+
510
## Usage
611
1. Add brightproof to your dub.json as dependency.
712
2. Import it:
@@ -17,7 +22,7 @@ ver.toString == "1.0.2-beta";
1722

1823
## Comparing
1924
SemVer structs can be compared via `<`, `>`, `==`, `>=`, `<=`, just like any other values.
20-
Also, Identifiers and Metas now compared too:
25+
Also, PreReleases and Buildss now compared too:
2126
```
2227
SemVer("1.0.0-rc.1") < SemVer("1.0.0-rc.20");
2328
SemVer("1.0.0-rc.1") < SemVer("1.0.0");
@@ -28,4 +33,6 @@ SemVer("1.0.0-rc.1") < SemVer("1.0.0+build.1");
2833
Aviable in `./example`.
2934

3035
## TODO
31-
- [x] Change Identifier -> PreRelease and Meta -> Build in 1.0.0.
36+
- [ ] Fix compilation with GDC 5.3.0
37+
- [ ] More speed.
38+
- [ ] Test on different OS (BSD, Windows), architectures (x86, x86_64) with different compilers (DMD, LDC, GDC)

source/BrightProof.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ struct SemVer {
145145
/// ditto
146146
void nextPatch() {
147147
Patch++;
148-
PreRelease = Build = "";
148+
PreRelease.length = Build.length = 0;
149149
}
150150

151151
/**
152152
* Convert SemVer to string
153-
* Returns: SemVer in string (MAJOR.MINOR.PATCH-IDENTIFIER+META)
153+
* Returns: SemVer in string (MAJOR.MINOR.PATCH-PRERELEASE+BUILD)
154154
*/
155155
string toString() {
156156
import std.format : format;

0 commit comments

Comments
 (0)