Skip to content

Commit 5f64187

Browse files
Bump BenchmarkDotNet and 5 others (#150)
* Bump BenchmarkDotNet and 5 others Bumps BenchmarkDotNet from 0.14.0 to 0.15.0 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.4 to 9.0.5 Bumps Microsoft.NET.Test.Sdk from 17.13.0 to 17.14.0 Bumps NUnit.Analyzers from 4.7.0 to 4.8.1 Bumps StackExchange.Redis from 2.8.31 to 2.8.37 Bumps xunit.runner.visualstudio from 3.0.2 to 3.1.0 --- updated-dependencies: - dependency-name: BenchmarkDotNet dependency-version: 0.15.0 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-version: 9.0.5 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.DotNet.ILCompiler dependency-version: 9.0.5 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 17.14.0 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 17.14.0 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: NUnit.Analyzers dependency-version: 4.8.1 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: StackExchange.Redis dependency-version: 2.8.37 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: xunit.runner.visualstudio dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix failing unit tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan Bout <jonathanbout01@gmail.com>
1 parent 37a4cd2 commit 5f64187

11 files changed

Lines changed: 411 additions & 400 deletions

benchmarks/SimpleCDN.Benchmarks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
12+
<PackageReference Include="BenchmarkDotNet" Version="0.15.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

benchmarks/packages.lock.json

Lines changed: 116 additions & 140 deletions
Large diffs are not rendered by default.

extensions/Redis/SimpleCDN.Extensions.Redis.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<PrivateAssets>all</PrivateAssets>
4040
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4141
</PackageReference>
42-
<PackageReference Include="StackExchange.Redis" Version="2.8.31" />
42+
<PackageReference Include="StackExchange.Redis" Version="2.8.37" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

extensions/Redis/packages.lock.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"net8.0": {
55
"Microsoft.NET.ILLink.Tasks": {
66
"type": "Direct",
7-
"requested": "[8.0.15, )",
8-
"resolved": "8.0.15",
9-
"contentHash": "s4eXlcRGyHeCgFUGQnhq0e/SCHBPp0jOHgMqZg3fQ2OCHJSm1aOUhI6RFWuVIcEb9ig2WgI2kWukk8wu72EbUQ=="
7+
"requested": "[8.0.14, )",
8+
"resolved": "8.0.14",
9+
"contentHash": "4U2fd7PexNKrK5ZqfqIcXZj9/lRRjFsLgA/pxuFQTuGQuLYP/+7yACz/j7EmWbEj/fspOf4mafi/vHIy/rKDzQ=="
1010
},
1111
"Roslynator.Analyzers": {
1212
"type": "Direct",
@@ -16,9 +16,9 @@
1616
},
1717
"StackExchange.Redis": {
1818
"type": "Direct",
19-
"requested": "[2.8.31, )",
20-
"resolved": "2.8.31",
21-
"contentHash": "RCHVQa9Zke8k0oBgJn1Yl6BuYy8i6kv+sdMObiH60nOwD6QvWAjxdDwOm+LO78E8WsGiPqgOuItkz98fPS6haQ==",
19+
"requested": "[2.8.37, )",
20+
"resolved": "2.8.37",
21+
"contentHash": "ULscDAQR+z132IsLczXcM/PG+EyfQMNxhvqjG1Xd/h/J1O9prsUU4pG9d95xv77lUF8v3X6owpf/11Uh0uvZAQ==",
2222
"dependencies": {
2323
"Microsoft.Extensions.Logging.Abstractions": "6.0.0",
2424
"Pipelines.Sockets.Unofficial": "2.2.8"
@@ -49,9 +49,9 @@
4949
"net9.0": {
5050
"Microsoft.NET.ILLink.Tasks": {
5151
"type": "Direct",
52-
"requested": "[9.0.4, )",
53-
"resolved": "9.0.4",
54-
"contentHash": "xUdlUxiFwXhTYhB4VxKg/IA0+jlZXJPo70LYuMryWbJHdonIpZjw+7DO2B0pWwpXIOs6MlH5WVXPEtfrGEcVZA=="
52+
"requested": "[9.0.3, )",
53+
"resolved": "9.0.3",
54+
"contentHash": "1rqGTfubVg0qj2PsK6esyq3PIxtYJYrN3LsYUV9RrvH3anmt3fT3ozYdAZZH4U8JU/pt5pPIUk8NBSu26wtekA=="
5555
},
5656
"Roslynator.Analyzers": {
5757
"type": "Direct",
@@ -61,9 +61,9 @@
6161
},
6262
"StackExchange.Redis": {
6363
"type": "Direct",
64-
"requested": "[2.8.31, )",
65-
"resolved": "2.8.31",
66-
"contentHash": "RCHVQa9Zke8k0oBgJn1Yl6BuYy8i6kv+sdMObiH60nOwD6QvWAjxdDwOm+LO78E8WsGiPqgOuItkz98fPS6haQ==",
64+
"requested": "[2.8.37, )",
65+
"resolved": "2.8.37",
66+
"contentHash": "ULscDAQR+z132IsLczXcM/PG+EyfQMNxhvqjG1Xd/h/J1O9prsUU4pG9d95xv77lUF8v3X6owpf/11Uh0uvZAQ==",
6767
"dependencies": {
6868
"Microsoft.Extensions.Logging.Abstractions": "6.0.0",
6969
"Pipelines.Sockets.Unofficial": "2.2.8"

src/core/Helpers/InternalExtensions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Text;
1+
using System.Globalization;
2+
using System.Text;
23

34
namespace SimpleCDN.Helpers
45
{
@@ -8,7 +9,7 @@ internal static class InternalExtensions
89
// (I also don't think we are going to need it anytime soon)
910
static readonly string[] sizeNames = ["k", "M", "G", "T", "P", "E"];
1011

11-
public static string FormatByteCount(this long number)
12+
public static string FormatByteCount(this long number, CultureInfo? culture = null)
1213
{
1314
if (number is < 1000 and > -1000)
1415
{
@@ -24,7 +25,9 @@ public static string FormatByteCount(this long number)
2425
sizeNameIndex++;
2526
}
2627

27-
return $"{(number < 0 ? "-": "")}{result:0.##}{sizeNames[sizeNameIndex - 1]}B";
28+
culture ??= CultureInfo.InvariantCulture;
29+
30+
return string.Create(culture, $"{(number < 0 ? "-" : "")}{result:0.##}{sizeNames[sizeNameIndex - 1]}B");
2831
}
2932

3033
/// <summary>

src/standalone/packages.lock.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
},
1515
"Microsoft.DotNet.ILCompiler": {
1616
"type": "Direct",
17-
"requested": "[9.0.4, )",
18-
"resolved": "9.0.4",
19-
"contentHash": "G85txKEuQ8s64BG9Pk3TbmE+cDgKReepnIPNfC1lNks4u2v5SkQhjCuuSAep+H2xtgFpYU7w9LFOF+vVtJZguA=="
17+
"requested": "[9.0.0, )",
18+
"resolved": "9.0.0",
19+
"contentHash": "bbnlV2PbUmCQ8Ndpx0kJaicLyV28IU+4IzyctQLL57+DxrHurYr2qsJrC8+yD44Q0DyPfv2oM168c1Tk6Bxbmg=="
2020
},
2121
"Microsoft.NET.ILLink.Tasks": {
2222
"type": "Direct",
23-
"requested": "[9.0.4, )",
24-
"resolved": "9.0.4",
25-
"contentHash": "xUdlUxiFwXhTYhB4VxKg/IA0+jlZXJPo70LYuMryWbJHdonIpZjw+7DO2B0pWwpXIOs6MlH5WVXPEtfrGEcVZA=="
23+
"requested": "[9.0.3, )",
24+
"resolved": "9.0.3",
25+
"contentHash": "1rqGTfubVg0qj2PsK6esyq3PIxtYJYrN3LsYUV9RrvH3anmt3fT3ozYdAZZH4U8JU/pt5pPIUk8NBSu26wtekA=="
2626
},
2727
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": {
2828
"type": "Direct",
@@ -126,8 +126,8 @@
126126
},
127127
"StackExchange.Redis": {
128128
"type": "Transitive",
129-
"resolved": "2.8.31",
130-
"contentHash": "RCHVQa9Zke8k0oBgJn1Yl6BuYy8i6kv+sdMObiH60nOwD6QvWAjxdDwOm+LO78E8WsGiPqgOuItkz98fPS6haQ==",
129+
"resolved": "2.8.37",
130+
"contentHash": "ULscDAQR+z132IsLczXcM/PG+EyfQMNxhvqjG1Xd/h/J1O9prsUU4pG9d95xv77lUF8v3X6owpf/11Uh0uvZAQ==",
131131
"dependencies": {
132132
"Microsoft.Extensions.Logging.Abstractions": "6.0.0",
133133
"Pipelines.Sockets.Unofficial": "2.2.8"
@@ -145,7 +145,7 @@
145145
"type": "Project",
146146
"dependencies": {
147147
"SimpleCDN": "[1.0.0, )",
148-
"StackExchange.Redis": "[2.8.31, )"
148+
"StackExchange.Redis": "[2.8.37, )"
149149
}
150150
}
151151
}

tests/integration/SimpleCDN.Tests.Integration.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="coverlet.collector" Version="6.0.4" />
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.5" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1515
<PackageReference Include="Roslynator.Analyzers" Version="4.13.1">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
1919
<PackageReference Include="xunit" Version="2.9.3" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
20+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.0">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>

0 commit comments

Comments
 (0)