Skip to content

Commit

Permalink
chore: bump versions [ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bmazzarol committed Apr 25, 2023
1 parent 99db7e8 commit f765e87
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"husky": {
"version": "0.5.1",
"version": "0.5.4",
"commands": [
"husky"
]
},
"csharpier": {
"version": "0.19.0",
"version": "0.23.0",
"commands": [
"dotnet-csharpier"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="BunsenBurner" Version="6.2.1" />
<PackageReference Include="FluentAssertions" Version="6.10.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="2.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
Expand Down
6 changes: 3 additions & 3 deletions HttpBuildR.ActionResult/HttpBuildR.ActionResult.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.34">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.37">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.2.0">
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.55.0.65544">
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.56.0.67649">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
9 changes: 8 additions & 1 deletion HttpBuildR.Examples/BlogsApi/BlogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ public async Task<GetPostResponse> CreatePostAsync(CreateBlogPostRequest request
await _client.SendAsync(
Req.Post
.To($"{_config.BaseUrl}/posts")
.WithJsonData(new { request.Title, Body = request.Content, request.UserId })
.WithJsonData(
new
{
request.Title,
Body = request.Content,
request.UserId
}
)
)
).ToModelAsync(new BlogPost(), DefaultSerializerSettings);
return new GetPostResponse(post);
Expand Down
24 changes: 12 additions & 12 deletions HttpBuildR.Examples/HttpBuildR.Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.34">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.37">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.2.0">
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.55.0.65544">
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.56.0.67649">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="BunsenBurner" Version="6.2.1"/>
<PackageReference Include="FluentAssertions" Version="6.10.0"/>
<PackageReference Include="HttpBuildR.Request" Version="1.1.1"/>
<PackageReference Include="HttpBuildR.Response" Version="1.1.1"/>
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0"/>
<PackageReference Include="Moq" Version="4.18.4"/>
<PackageReference Include="xunit" Version="2.4.2"/>
<PackageReference Include="BunsenBurner" Version="6.2.1" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="HttpBuildR.Request" Version="1.1.1" />
<PackageReference Include="HttpBuildR.Response" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand All @@ -48,7 +48,7 @@
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute"/>
<AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion HttpBuildR.Examples/HttpBuildRExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public static HttpRequestMessage WithJsonData<TData>(
this HttpRequestMessage request,
TData data,
JsonSerializerOptions? options = null
) where TData : notnull =>
)
where TData : notnull =>
request
.WithAccept(MediaTypeNames.Application.Json)
.WithJsonContent(data, options ?? JsonSerializerOptions.Default);
Expand Down
2 changes: 1 addition & 1 deletion HttpBuildR.Request.Tests/HttpBuildR.Request.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="BunsenBurner" Version="6.2.1" />
<PackageReference Include="FluentAssertions" Version="6.10.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="2.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
Expand Down
6 changes: 3 additions & 3 deletions HttpBuildR.Request/HttpBuildR.Request.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.34">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.37">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.2.0">
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.55.0.65544">
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.56.0.67649">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 8 additions & 4 deletions HttpBuildR.Request/Request.Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public static HttpRequestMessage WithJsonContent<T>(
this HttpRequestMessage request,
T content,
JsonSerializerOptions? options = null
) where T : notnull =>
)
where T : notnull =>
request.WithContent(
new StringContent(
JsonSerializer.Serialize(content, options),
Expand All @@ -55,7 +56,8 @@ private static string SerializeToXml<T>(
this XmlSerializer serializer,
T content,
XmlWriterSettings? settings = null
) where T : notnull
)
where T : notnull
{
using var stringWriter = new Utf8StringWriter();
using var writer = XmlWriter.Create(stringWriter, settings);
Expand All @@ -77,7 +79,8 @@ public static HttpRequestMessage WithXmlContent<T>(
T content,
XmlSerializer serializer,
XmlWriterSettings? settings = null
) where T : notnull =>
)
where T : notnull =>
request.WithContent(
new StringContent(
serializer.SerializeToXml(content, settings),
Expand All @@ -100,7 +103,8 @@ public static HttpRequestMessage WithXmlContent<T>(
T content,
XmlWriterSettings? settings = null,
string? defaultNamespace = null
) where T : notnull =>
)
where T : notnull =>
request.WithXmlContent(content, new XmlSerializer(typeof(T), defaultNamespace), settings);

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion HttpBuildR.Response.Tests/HttpBuildR.Response.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="BunsenBurner" Version="6.2.1" />
<PackageReference Include="FluentAssertions" Version="6.10.0" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="2.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
Expand Down
6 changes: 3 additions & 3 deletions HttpBuildR.Response/HttpBuildR.Response.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.34">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.37">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.2.0">
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.55.0.65544">
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.56.0.67649">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 8 additions & 4 deletions HttpBuildR.Response/Response.Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public static HttpResponseMessage WithJsonContent<T>(
this HttpResponseMessage response,
T content,
JsonSerializerOptions? options = null
) where T : notnull =>
)
where T : notnull =>
response.WithContent(
new StringContent(
JsonSerializer.Serialize(content, options),
Expand All @@ -54,7 +55,8 @@ private static string SerializeToXml<T>(
this XmlSerializer serializer,
T content,
XmlWriterSettings? settings = null
) where T : notnull
)
where T : notnull
{
using var stringWriter = new Utf8StringWriter();
using var writer = XmlWriter.Create(stringWriter, settings);
Expand All @@ -76,7 +78,8 @@ public static HttpResponseMessage WithXmlContent<T>(
T content,
XmlSerializer serializer,
XmlWriterSettings? settings = null
) where T : notnull =>
)
where T : notnull =>
response.WithContent(
new StringContent(
serializer.SerializeToXml(content, settings),
Expand All @@ -99,7 +102,8 @@ public static HttpResponseMessage WithXmlContent<T>(
T content,
XmlWriterSettings? settings = null,
string? defaultNamespace = null
) where T : notnull =>
)
where T : notnull =>
response.WithXmlContent(content, new XmlSerializer(typeof(T), defaultNamespace), settings);

/// <summary>
Expand Down

0 comments on commit f765e87

Please sign in to comment.