-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
60 additions
and
47 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# semver | ||
|
||
This function does things. | ||
This function will parse a string as a semantic version. The parsing is "relaxed", | ||
allowing for a leading `"v"` and the least significant parts can be left out | ||
when they are zero (e.g. `"v1.0.0"` is just as valid as `"1"`). | ||
|
||
Parsed semvers are a custom type (not a string, not a vector). They can be | ||
directly compared to each other and to strings (i.e. they can be coalesced to | ||
a string, depending on the coalescer). | ||
|
||
## Examples | ||
|
||
* `(semver "v1.2")` -> semver object | ||
* `(semver "foo")` -> error | ||
* `(eq? (to-string (semver "v1.0")) "1.0.0")` -> `true` | ||
* `(eq? (semver "v1.0") "1.0.0")` -> `true` (with human coalescing) | ||
* `(gt? (semver "v1.0") (semver "v1.0.1"))` -> `false` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# uuidv4 | ||
|
||
This function does things. | ||
This function returns a new, randomly generated UUID (version 4) when called. | ||
UUIDs are represented as lowercase hex strings in Rudi. | ||
|
||
## Examples | ||
|
||
* `(uuidv4)` -> `"0de626c1-5955-4303-a52b-420463386f76"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters