Compare commits

17 Commits

Author SHA1 Message Date
1d53af4b46 added an comment
All checks were successful
Build NuGet / build (push) Successful in 1m23s
2026-04-13 23:22:55 -04:00
94b37d02d5 got back to no document for now 2026-04-09 00:06:48 -04:00
4543048f36 trying a different documentation
Some checks failed
Generate Docs / docs (push) Failing after 59s
Build NuGet / build (push) Successful in 35s
2026-04-08 23:35:10 -04:00
38565b7c42 trying to get doc gen working try 2
Some checks failed
Build NuGet / build (push) Successful in 33s
/ Generate Docs (push) Has been cancelled
2026-04-08 23:25:13 -04:00
102e1da345 Merge branch 'master' of http://192.168.1.4:3000/Ronnie/SjkScripts
Some checks failed
/ Generate Docs (push) Failing after 35s
Build NuGet / build (push) Successful in 33s
2026-04-08 23:21:11 -04:00
c1d14513c4 added an sample readme. 2026-04-08 23:18:42 -04:00
e36add84ac testing some documentation 2026-04-08 23:17:10 -04:00
75351ec24b Merge pull request 'hotfix/checkgit' (#2) from hotfix/checkgit into master
All checks were successful
Build NuGet / build (push) Successful in 34s
Reviewed-on: #2
2026-04-08 22:55:07 -04:00
eebd8f950a Merge remote-tracking branch 'origin/master' into hotfix/checkgit 2026-04-08 22:52:56 -04:00
fd70567062 trying not gitversion 2026-04-08 22:52:06 -04:00
78db1311b2 trying an nonGitVersion 2026-04-08 22:49:04 -04:00
0d313d2bb4 Merge pull request 'test one' (#1) from hotfix/checkgit into master
Some checks failed
Build NuGet / build (push) Failing after 35s
Reviewed-on: #1
2026-04-08 22:40:59 -04:00
acf2692955 test one 2026-04-08 22:39:33 -04:00
71173053df replaced main to master in getversion.yaml
All checks were successful
Build NuGet / build (push) Successful in 38s
2026-04-08 22:22:40 -04:00
b91111eaa5 Hopefully add documentation to nuget package.
All checks were successful
Build NuGet / build (push) Successful in 41s
2026-04-08 22:14:08 -04:00
d0968e1586 wertgohiuhiaserguioshaegrhioperg
All checks were successful
Build NuGet / build (push) Successful in 49s
2026-04-08 11:00:51 -04:00
5e7b04efec add thing to tuple
All checks were successful
Build NuGet / build (push) Successful in 43s
2026-04-06 14:02:57 -04:00
7 changed files with 121 additions and 19 deletions

View File

@@ -21,23 +21,28 @@ jobs:
- name: Restore
run: dotnet restore
- name: Calculate Version
id: version
run: |
TAG=$(git describe --tags --abbrev=0)
COMMITS=$(git rev-list $TAG..HEAD --count)
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
BASE=${TAG#v}
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
IFS='.' read MAJOR MINOR PATCH <<< "$BASE"
NEW_PATCH=$((PATCH + COMMITS))
VERSION="$MAJOR.$MINOR.$NEW_PATCH"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build
run: dotnet build -c Release
- name: Pack
run: |
dotnet pack \
-p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \
-p:PackageVersion=${{ steps.version.outputs.VERSION }} \
-c Release
- name: Publish

3
.gitignore vendored
View File

@@ -1,3 +1,2 @@
obj
bin
.packages
bin

View File

@@ -1,7 +1,44 @@
namespace SJK.Functional;
/// <summary>
/// Provides methods to convert values into tuples.
/// </summary>
public static class TupleExtensions
{
/// <summary>
/// Converts two values of any type into a tuple.
/// </summary>
/// <typeparam name="T1">The type of the first value.</typeparam>
/// <typeparam name="T2">The type of the second value.</typeparam>
/// <param name="first">The first value to convert.</param>
/// <param name="second">The second value to convert.</param>
/// <returns>A tuple containing both values.</returns>
public static (T1, T2) ToTuple<T1, T2>(this T1 first, T2 second) => (first, second);
/// <summary>
/// Converts three values of any type into a tuple.
/// </summary>
/// <typeparam name="T1">The type of the first value.</typeparam>
/// <typeparam name="T2">The type of the second value.</typeparam>
/// <typeparam name="T3">The type of the third value.</typeparam>
/// <param name="first">The first value to convert.</param>
/// <param name="second">The second value to convert.</param>
/// <param name="third">The third value to convert.</param>
/// <returns>A tuple containing all three values.</returns>
public static (T1, T2, T3) ToTuple<T1, T2, T3>(this T1 first, T2 second, T3 third) => (first, second, third);
/// <summary>
/// Converts four values of any type into a tuple.
/// </summary>
/// <typeparam name="T1">The type of the first value.</typeparam>
/// <typeparam name="T2">The type of the second value.</typeparam>
/// <typeparam name="T3">The type of the third value.</typeparam>
/// <typeparam name="T4">The type of the fourth value.</typeparam>
/// <param name="first">The first value to convert.</param>
/// <param name="second">The second value to convert.</param>
/// <param name="third">The third value to convert.</param>
/// <param name="forth">The fourth value to convert.</param>
/// <returns>A tuple containing all four values.</returns>
public static (T1, T2, T3, T4) ToTuple<T1, T2, T3, T4>(this T1 first, T2 second, T3 third, T4 forth) => (first, second, third, forth);
}

View File

@@ -1,9 +0,0 @@
mode: ContinuousDelivery
branches:
main:
increment: Patch
feature:
increment: Minor
hotfix:
increment: Patch

View File

@@ -4,6 +4,13 @@ namespace SJK.Math;
public static class SJKMath
{
/// <summary>
/// Gets the max number in a array of values.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="values"></param>
/// <returns></returns>
/// <exception cref="ArgumentException"></exception>
public static T Max<T>(params T[] values) where T : INumber<T>
{
if (values.Length == 0)

62
README.md Normal file
View File

@@ -0,0 +1,62 @@
# Project Title
Simple overview of use/purpose.
## Description
An in-depth paragraph about your project and overview of use.
## Getting Started
### Dependencies
* Describe any prerequisites, libraries, OS version, etc., needed before installing program.
* ex. Windows 10
### Installing
* How/where to download your program
* Any modifications needed to be made to files/folders
### Executing program
* How to run the program
* Step-by-step bullets
```
code blocks for commands
```
## Help
Any advise for common problems or issues.
```
command to run if program contains helper info
```
## Authors
Contributors names and contact info
ex. Dominique Pizzie
ex. [@DomPizzie](https://twitter.com/dompizzie)
## Version History
* 0.2
* Various bug fixes and optimizations
* See [commit change]() or See [release history]()
* 0.1
* Initial Release
## License
This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details
## Acknowledgments
Inspiration, code snippets, etc.
* [awesome-readme](https://github.com/matiassingers/awesome-readme)
* [PurpleBooth](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2)
* [dbader](https://github.com/dbader/readme-template)
* [zenorocha](https://gist.github.com/zenorocha/4526327)
* [fvcproductions](https://gist.github.com/fvcproductions/1bfc2d4aecb01a834b46)

View File

@@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</Project>