Commit 722418b
authored
Major update to support correct CI ordering (#9)
* Major update to support correct CI ordering and implement #3
>[!IMPORTANT]
> Tests will fail until [dependency bug](UbiquityDotNET/CSemVer.GitBuild#64) is resolved
* Made case sensitivity for comparison a part of SemVer.
- It is an error to attempt to compare versions expecting a different sort ordering.
- Made Distinct IComparer<T> implementations for case internal as nothing should override the requirements defined for a given version.
* Created internal helper for creating an ordered version so it is usable by CSemVer AND CSemVerCI
* Added parsing a CSemVer from a `ParsedBuildVersionXml` as a method for use in testing. (File based variant now loads the file and calls this)
* Major surgery to CSemVerCI to correctly support Patch+1 semantics
- Now has a BaseBuild property to report the version it is based on (PatBuild-1 effectively)
- Full version has Patch+1 version as it's core version
* as a CI build it ALWAYS has "pre-release" componets (in SemVer terms) and is therefore always ordered BEFORE any such release but AFTER the base build release. This is the key to how CSemVer-CI works and is now implemented with correct understanding. (Spec isn't especially clear on this point)
- Added PrereleaseVersion property to get at preRelease information for the build.
* FileVersionQuad is now parsable from a '.' delimited string of integers.
* Updated to leverage fixes in dependent Tasks package
---------
Co-authored-by: smaillet <[email protected]>1 parent bad52a8 commit 722418b
File tree
24 files changed
+735
-637
lines changed- docfx
- versioning-lib
- src
- Ubiquity.NET.Versioning.UT
- Ubiquity.NET.Versioning
- Comparison
24 files changed
+735
-637
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments