Skip to content

Commit b994e89

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Improve default Product metadata, remove .git from user-facing URLs devlooped/oss@4339749 - Ignore .env files recursively devlooped/oss@3776526 - Add Company MSBuild property by default devlooped/oss@c509be4 # devlooped/catbag - Switch to ValueTask for async enumerable extensions devlooped/catbag@3e2b4bf
1 parent bd21735 commit b994e89

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ BenchmarkDotNet.Artifacts
1111
.genaiscript
1212
.idea
1313
local.settings.json
14+
.env
1415

1516
*.suo
1617
*.sdf

.netconfig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
weak
66
[file ".gitignore"]
77
url = https://github.com/devlooped/oss/blob/main/.gitignore
8-
sha = e0be248fff1d39133345283b8227372b36574b75
9-
etag = c449ec6f76803e1891357ca2b8b4fcb5b2e5deeff8311622fd92ca9fbf1e6575
8+
sha = 3776526342afb3f57da7e80f2095e5fdca3c31c9
9+
etag = 11767f73556aa4c6c8bcc153b77ee8e8114f99fa3b885b0a7d66d082f91e77b3
1010
weak
1111
[file ".gitattributes"]
1212
url = https://github.com/devlooped/oss/blob/main/.gitattributes
@@ -30,13 +30,13 @@
3030
weak
3131
[file "src/Directory.Build.props"]
3232
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
33-
sha = 81d972fd0760c244d134dae7f4b17d6c43cb004a
34-
etag = 1368697c1521e465a1dea88b93787b1c7def441c37d62afc903fb8d07179e4f6
33+
sha = c509be4378ff6789df4f66338cb88119453c0975
34+
etag = cbbdc1a4d3030f353f3e5306a6c380238dd4ed0945aad2d56ba87b49fcfcd66d
3535
weak
3636
[file "src/Directory.Build.targets"]
3737
url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.targets
38-
sha = a8b208093599263b7f2d1fe3854634c588ea5199
39-
etag = 19087699f05396205e6b050d999a43b175bd242f6e8fac86f6df936310178b03
38+
sha = 4339749ef4b8f66def75931df09ef99c149f8421
39+
etag = 8b4492765755c030c4c351e058a92f53ab493cab440c1c0ef431f6635c4dae0e
4040
weak
4141
[file ".github/dependabot.yml"]
4242
url = https://github.com/devlooped/oss/blob/main/.github/dependabot.yml
@@ -103,6 +103,6 @@
103103
weak
104104
[file "src/Core/System/Collections/Generic/IAsyncEnumerableExtensions.cs"]
105105
url = https://github.com/devlooped/catbag/blob/main/System/Collections/Generic/IAsyncEnumerableExtensions.cs
106-
sha = fd4229d4b2ebcad93768ddb6afee652d4a476fe2
107-
etag = 8710a896af867e690062b025b3f95de9f2e3f219555942ec91e1364ad8d9bfac
106+
sha = 3e2b4bfe3f2707bf3567bcd6367db5c7eb2696c0
107+
etag = 371342087cec0269473a91f7fc295fd1049e21f016a1b7113614f2c4e3eefe5f
108108
weak

src/Core/System/Collections/Generic/IAsyncEnumerableExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static partial class IAsyncEnumerableExtensions
3939
/// </summary>
4040
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
4141
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
42-
public static async Task<TSource[]> ToArrayAsync<TSource>(this IAsyncEnumerable<TSource> source)
42+
public static async ValueTask<TSource[]> ToArrayAsync<TSource>(this IAsyncEnumerable<TSource> source)
4343
=> (await ToListAsync(source)).ToArray();
4444

4545
/// <summary>
@@ -48,7 +48,7 @@ public static async Task<TSource[]> ToArrayAsync<TSource>(this IAsyncEnumerable<
4848
/// </summary>
4949
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
5050
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
51-
public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull
51+
public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull
5252
=> ToDictionaryAsync(source, keySelector, x => x, null);
5353

5454
/// <summary>
@@ -57,7 +57,7 @@ public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(t
5757
/// </summary>
5858
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
5959
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
60-
public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) where TKey : notnull
60+
public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) where TKey : notnull
6161
=> ToDictionaryAsync(source, keySelector, x => x, comparer);
6262

6363
/// <summary>
@@ -66,7 +66,7 @@ public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(t
6666
/// </summary>
6767
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
6868
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
69-
public static Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) where TKey : notnull
69+
public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) where TKey : notnull
7070
=> ToDictionaryAsync(source, keySelector, elementSelector, null);
7171

7272
/// <summary>
@@ -76,7 +76,7 @@ public static Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey,
7676
/// </summary>
7777
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
7878
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
79-
public static async Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(
79+
public static async ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(
8080
this IAsyncEnumerable<TSource> source, Func<TSource, TKey> keySelector,
8181
Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
8282
{
@@ -93,7 +93,7 @@ public static async Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource,
9393
/// </summary>
9494
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
9595
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
96-
public static Task<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEnumerable<TSource> source)
96+
public static ValueTask<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEnumerable<TSource> source)
9797
=> ToHashSetAsync(source, null);
9898

9999
/// <summary>
@@ -102,7 +102,7 @@ public static Task<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEnumerab
102102
/// </summary>
103103
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
104104
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
105-
public static async Task<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEnumerable<TSource> source, IEqualityComparer<TSource>? comparer)
105+
public static async ValueTask<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEnumerable<TSource> source, IEqualityComparer<TSource>? comparer)
106106
{
107107
var set = new HashSet<TSource>(comparer);
108108
await foreach (var item in source)
@@ -117,7 +117,7 @@ public static async Task<HashSet<TSource>> ToHashSetAsync<TSource>(this IAsyncEn
117117
/// </summary>
118118
/// <exception cref="ArgumentException">The <paramref name="source"/> does not implement
119119
/// <see cref="IAsyncEnumerable{T}"/>.</exception>
120-
public static async Task<List<TSource>> ToListAsync<TSource>(this IAsyncEnumerable<TSource> source)
120+
public static async ValueTask<List<TSource>> ToListAsync<TSource>(this IAsyncEnumerable<TSource> source)
121121
{
122122
var list = new List<TSource>();
123123
await foreach (var item in source)

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
<PropertyGroup Label="NuGet">
2222
<Authors>Daniel Cazzulino</Authors>
23+
<Company>Devlooped</Company>
2324
<Copyright>Copyright (C) Daniel Cazzulino and Contributors. All rights reserved.</Copyright>
2425
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
2526
<PackageLicenseExpression>MIT</PackageLicenseExpression>

src/Directory.Build.targets

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@
165165

166166
<PropertyGroup>
167167
<RepositoryRoot>@(_GitSourceRoot)</RepositoryRoot>
168+
<!-- Only change if it wasn't just the default from Microsoft.NET.DefaultAssemblyInfo.targets -->
169+
<ProductFromUrl Condition="'$(SourceControlInformationFeatureSupported)' == 'true'">$([System.IO.Path]::GetFileNameWithoutExtension($(PrivateRepositoryUrl)))</ProductFromUrl>
170+
<Product Condition="'$(Product)' == '$(AssemblyName)' and '$(ProductFromUrl)' != ''">$(ProductFromUrl)</Product>
168171
</PropertyGroup>
169172

170173
</Target>
@@ -175,9 +178,9 @@
175178
Condition="'$(SourceControlInformationFeatureSupported)' == 'true' And
176179
'$(IsPackable)' == 'true'">
177180
<PropertyGroup>
178-
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(RepositoryUrl)</PackageProjectUrl>
181+
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == '' and '$(PublishRepositoryUrl)' == 'true'">$(RepositoryUrl.Replace('.git', ''))</PackageProjectUrl>
179182
<PackageDescription>$(Description)</PackageDescription>
180-
<PackageReleaseNotes Condition="'$(RepositoryUrl)' != '' and Exists('$(MSBuildThisFileDirectory)..\changelog.md')">$(RepositoryUrl)/blob/main/changelog.md</PackageReleaseNotes>
183+
<PackageReleaseNotes Condition="'$(RepositoryUrl)' != '' and Exists('$(MSBuildThisFileDirectory)..\changelog.md')">$(RepositoryUrl.Replace('.git', ''))/blob/main/changelog.md</PackageReleaseNotes>
181184
</PropertyGroup>
182185
</Target>
183186

0 commit comments

Comments
 (0)