From 45571d71237394a5836adb20b2579833c73104ae Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 26 Jul 2024 23:19:36 +0200
Subject: [PATCH 1/3] Fix multiple spelling mistakes and inconsistencies
---
...ExtentionsTests.cs => BoolExtensionsTests.cs} | 2 +-
...ionsTests.cs => CollectionExtensionsTests.cs} | 2 +-
.../DecimalFluent.cs | 16 ++++++++--------
.../DoubleFluent.cs | 4 ++--
.../Int16Fluent.cs | 8 ++++----
.../Int32Fluent.cs | 8 ++++----
.../Int64Fluent.cs | 10 +++++-----
.../SingleFluent.cs | 8 ++++----
src/CuteUtils/Logging/LogFormatBuilder.cs | 4 ++--
src/CuteUtils/{ => Misc}/StringExtentions.cs | 2 +-
...tionExtentions.cs => ReflectionExtensions.cs} | 2 +-
11 files changed, 33 insertions(+), 33 deletions(-)
rename src/CuteUtils.Tests/Misc/{BoolExtentionsTests.cs => BoolExtensionsTests.cs} (98%)
rename src/CuteUtils.Tests/Misc/{CollectionExtentionsTests.cs => CollectionExtensionsTests.cs} (99%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/DecimalFluent.cs (91%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/DoubleFluent.cs (99%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/Int16Fluent.cs (95%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/Int32Fluent.cs (95%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/Int64Fluent.cs (93%)
rename src/CuteUtils/FluentMath/{TypeExtentions => TypeExtensions}/SingleFluent.cs (98%)
rename src/CuteUtils/{ => Misc}/StringExtentions.cs (99%)
rename src/CuteUtils/Reflection/{ReflectionExtentions.cs => ReflectionExtensions.cs} (98%)
diff --git a/src/CuteUtils.Tests/Misc/BoolExtentionsTests.cs b/src/CuteUtils.Tests/Misc/BoolExtensionsTests.cs
similarity index 98%
rename from src/CuteUtils.Tests/Misc/BoolExtentionsTests.cs
rename to src/CuteUtils.Tests/Misc/BoolExtensionsTests.cs
index 566895a..283e6b4 100644
--- a/src/CuteUtils.Tests/Misc/BoolExtentionsTests.cs
+++ b/src/CuteUtils.Tests/Misc/BoolExtensionsTests.cs
@@ -3,7 +3,7 @@
namespace CuteUtils.Tests.Misc;
[TestClass]
-public class BoolExtentionsTests
+public class BoolExtensionsTests
{
[TestMethod]
public void OneWayTrue_ShouldSetValueToTrue_WhenInputIsTrue()
diff --git a/src/CuteUtils.Tests/Misc/CollectionExtentionsTests.cs b/src/CuteUtils.Tests/Misc/CollectionExtensionsTests.cs
similarity index 99%
rename from src/CuteUtils.Tests/Misc/CollectionExtentionsTests.cs
rename to src/CuteUtils.Tests/Misc/CollectionExtensionsTests.cs
index 9a3aff8..571837e 100644
--- a/src/CuteUtils.Tests/Misc/CollectionExtentionsTests.cs
+++ b/src/CuteUtils.Tests/Misc/CollectionExtensionsTests.cs
@@ -5,7 +5,7 @@ using System.Text;
namespace CuteUtils.Tests.Misc;
[TestClass]
-public class CollectionExtentionsTests
+public class CollectionExtensionsTests
{
private StringBuilder consoleOutput = null!;
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/DecimalFluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/DecimalFluent.cs
similarity index 91%
rename from src/CuteUtils/FluentMath/TypeExtentions/DecimalFluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/DecimalFluent.cs
index 0740e68..9b31457 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/DecimalFluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/DecimalFluent.cs
@@ -56,7 +56,7 @@ public static class DecimalFluent
}
///
- /// Adds the two nums
+ /// Adds the two numbers
///
///
///
@@ -67,7 +67,7 @@ public static class DecimalFluent
}
///
- /// Subtracts the two nums
+ /// Subtracts the two numbers
///
///
///
@@ -78,7 +78,7 @@ public static class DecimalFluent
}
///
- /// Multiples the two nums
+ /// Multiples the two numbers
///
///
///
@@ -89,7 +89,7 @@ public static class DecimalFluent
}
///
- /// Divides the two nums
+ /// Divides the two numbers
///
///
///
@@ -136,15 +136,15 @@ public static class DecimalFluent
}
///
- public static decimal Round(this decimal num, int digits)
+ public static decimal Round(this decimal num, int decimals)
{
- return Math.Round(num, digits);
+ return Math.Round(num, decimals);
}
///
- public static decimal Round(this decimal num, int digits, MidpointRounding mode)
+ public static decimal Round(this decimal num, int decimals, MidpointRounding mode)
{
- return Math.Round(num, digits, mode);
+ return Math.Round(num, decimals, mode);
}
///
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/DoubleFluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/DoubleFluent.cs
similarity index 99%
rename from src/CuteUtils/FluentMath/TypeExtentions/DoubleFluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/DoubleFluent.cs
index e067c93..4ac4a31 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/DoubleFluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/DoubleFluent.cs
@@ -190,9 +190,9 @@ public static class DoubleFluent
}
///
- public static double IEEERemainder(this double num, double valuee)
+ public static double IEEERemainder(this double num, double value)
{
- return Math.IEEERemainder(num, valuee);
+ return Math.IEEERemainder(num, value);
}
///
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/Int16Fluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/Int16Fluent.cs
similarity index 95%
rename from src/CuteUtils/FluentMath/TypeExtentions/Int16Fluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/Int16Fluent.cs
index b0a53cc..36bd397 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/Int16Fluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/Int16Fluent.cs
@@ -56,7 +56,7 @@ public static class Int16Fluent
}
///
- /// Adds the two nums
+ /// Adds the two numbers
///
///
///
@@ -67,7 +67,7 @@ public static class Int16Fluent
}
///
- /// Subtracts the two nums
+ /// Subtracts the two numbers
///
///
///
@@ -78,7 +78,7 @@ public static class Int16Fluent
}
///
- /// Multiples the two nums
+ /// Multiples the two numbers
///
///
///
@@ -89,7 +89,7 @@ public static class Int16Fluent
}
///
- /// Divides the two nums
+ /// Divides the two numbers
///
///
///
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/Int32Fluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/Int32Fluent.cs
similarity index 95%
rename from src/CuteUtils/FluentMath/TypeExtentions/Int32Fluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/Int32Fluent.cs
index 754c1bb..a540a76 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/Int32Fluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/Int32Fluent.cs
@@ -56,7 +56,7 @@ public static class Int32Fluent
}
///
- /// Adds the two nums
+ /// Adds the two numbers
///
///
///
@@ -67,7 +67,7 @@ public static class Int32Fluent
}
///
- /// Subtracts the two nums
+ /// Subtracts the two numbers
///
///
///
@@ -78,7 +78,7 @@ public static class Int32Fluent
}
///
- /// Multiples the two nums
+ /// Multiples the two numbers
///
///
///
@@ -89,7 +89,7 @@ public static class Int32Fluent
}
///
- /// Divides the two nums
+ /// Divides the two numbers
///
///
///
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/Int64Fluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/Int64Fluent.cs
similarity index 93%
rename from src/CuteUtils/FluentMath/TypeExtentions/Int64Fluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/Int64Fluent.cs
index d8c9297..7c99542 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/Int64Fluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/Int64Fluent.cs
@@ -1,4 +1,4 @@
-namespace CuteUtils.FluentMath.TypeExtentions;
+namespace CuteUtils.FluentMath.TypeExtensions;
///
/// IntegerFluent class
@@ -56,7 +56,7 @@ public static class Int64Fluent
}
///
- /// Adds the two nums
+ /// Adds the two numbers
///
///
///
@@ -67,7 +67,7 @@ public static class Int64Fluent
}
///
- /// Subtracts the two nums
+ /// Subtracts the two numbers
///
///
///
@@ -78,7 +78,7 @@ public static class Int64Fluent
}
///
- /// Multiples the two nums
+ /// Multiples the two numbers
///
///
///
@@ -89,7 +89,7 @@ public static class Int64Fluent
}
///
- /// Divides the two nums
+ /// Divides the two numbers
///
///
///
diff --git a/src/CuteUtils/FluentMath/TypeExtentions/SingleFluent.cs b/src/CuteUtils/FluentMath/TypeExtensions/SingleFluent.cs
similarity index 98%
rename from src/CuteUtils/FluentMath/TypeExtentions/SingleFluent.cs
rename to src/CuteUtils/FluentMath/TypeExtensions/SingleFluent.cs
index f5d2874..5dd63b3 100644
--- a/src/CuteUtils/FluentMath/TypeExtentions/SingleFluent.cs
+++ b/src/CuteUtils/FluentMath/TypeExtensions/SingleFluent.cs
@@ -56,7 +56,7 @@ public static class SingleFluent
}
///
- /// Adds the two nums
+ /// Adds the two numbers
///
///
///
@@ -67,7 +67,7 @@ public static class SingleFluent
}
///
- /// Subtracts the two nums
+ /// Subtracts the two numbers
///
///
///
@@ -78,7 +78,7 @@ public static class SingleFluent
}
///
- /// Multiples the two nums
+ /// Multiples the two numbers
///
///
///
@@ -89,7 +89,7 @@ public static class SingleFluent
}
///
- /// Divides the two nums
+ /// Divides the two numbers
///
///
///
diff --git a/src/CuteUtils/Logging/LogFormatBuilder.cs b/src/CuteUtils/Logging/LogFormatBuilder.cs
index 7ce6888..8a162fa 100644
--- a/src/CuteUtils/Logging/LogFormatBuilder.cs
+++ b/src/CuteUtils/Logging/LogFormatBuilder.cs
@@ -19,7 +19,7 @@ public class LogFormatBuilder
///
/// Creates a new instance.
///
- /// The inital format.
+ /// The initial format.
public LogFormatBuilder(string value)
{
_ = stringBuilder.Append(value);
@@ -55,7 +55,7 @@ public class LogFormatBuilder
}
///
- /// Appends the log datie time to the log format.
+ /// Appends the log date time to the log format.
///
/// The format to apply.
/// The padding to apply.
diff --git a/src/CuteUtils/StringExtentions.cs b/src/CuteUtils/Misc/StringExtentions.cs
similarity index 99%
rename from src/CuteUtils/StringExtentions.cs
rename to src/CuteUtils/Misc/StringExtentions.cs
index ca82ea2..1c9d0dc 100644
--- a/src/CuteUtils/StringExtentions.cs
+++ b/src/CuteUtils/Misc/StringExtentions.cs
@@ -1,7 +1,7 @@
using System.Globalization;
using System.Text;
-namespace CuteUtils;
+namespace CuteUtils.Misc;
///
/// Extensions
diff --git a/src/CuteUtils/Reflection/ReflectionExtentions.cs b/src/CuteUtils/Reflection/ReflectionExtensions.cs
similarity index 98%
rename from src/CuteUtils/Reflection/ReflectionExtentions.cs
rename to src/CuteUtils/Reflection/ReflectionExtensions.cs
index 4f7bb7e..6c8ef6a 100644
--- a/src/CuteUtils/Reflection/ReflectionExtentions.cs
+++ b/src/CuteUtils/Reflection/ReflectionExtensions.cs
@@ -5,7 +5,7 @@ namespace CuteUtils.Reflection;
///
/// Provides extension methods for reflection operations.
///
-public static class ReflectionExtentions
+public static class ReflectionExtensions
{
///
/// Creates a new instance of the specified type and copies the properties from the source object to the new instance.
From 07ec1bd85115ac5e433dd80c74e2913f050a19f4 Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 26 Jul 2024 23:26:56 +0200
Subject: [PATCH 2/3] Update System.Reactive.Linq library
---
src/CuteUtils/CuteUtils.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/CuteUtils/CuteUtils.csproj b/src/CuteUtils/CuteUtils.csproj
index fe76f91..2d09b56 100644
--- a/src/CuteUtils/CuteUtils.csproj
+++ b/src/CuteUtils/CuteUtils.csproj
@@ -29,7 +29,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
From abff6a79fa65c1e4e0040334470e6ee4c55feeb6 Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Sat, 17 May 2025 16:31:35 +0200
Subject: [PATCH 3/3] Change Ubuntu version in deploy-nuget.yml
---
.github/workflows/deploy-nuget.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/deploy-nuget.yml b/.github/workflows/deploy-nuget.yml
index d2fbdb0..ae70113 100644
--- a/.github/workflows/deploy-nuget.yml
+++ b/.github/workflows/deploy-nuget.yml
@@ -6,7 +6,7 @@ on:
jobs:
deploy:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
permissions:
packages: write
contents: read