Skip to content

Commit 38d0aa8

Browse files
committed
(GH-53) bumped Cake to 1.0.0
1 parent 7c13a64 commit 38d0aa8

File tree

4 files changed

+10
-42
lines changed

4 files changed

+10
-42
lines changed

source/Cake.ExtendedNuGet.Tests/Cake.ExtendedNuGet.Tests.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Cake.Common" Version="0.36.0" />
9-
<PackageReference Include="Cake.Core" Version="0.36.0" />
10-
<PackageReference Include="Cake.Testing" Version="0.36.0" />
8+
<PackageReference Include="Cake.Common" Version="1.0.0" />
9+
<PackageReference Include="Cake.Core" Version="1.0.0" />
10+
<PackageReference Include="Cake.Testing" Version="1.0.0" />
1111
<PackageReference Include="coverlet.msbuild" Version="3.0.2">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>

source/Cake.ExtendedNuGet.Tests/Fakes/FakeCakeArguments.cs

+4-36
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,14 @@ namespace Cake.ExtendedNuGet.Tests.Fakes
66
{
77
internal sealed class FakeCakeArguments : ICakeArguments
88
{
9-
private readonly Dictionary<string, string> _arguments;
10-
11-
/// <summary>
12-
/// Gets the arguments.
13-
/// </summary>
14-
/// <value>The arguments.</value>
15-
public IReadOnlyDictionary<string, string> Arguments
16-
{
17-
get { return _arguments; }
18-
}
9+
private readonly Dictionary<string, ICollection<string>> _arguments;
1910

2011
/// <summary>
2112
/// Initializes a new instance of the <see cref="CakeArguments"/> class.
2213
/// </summary>
2314
public FakeCakeArguments()
2415
{
25-
_arguments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
26-
}
27-
28-
/// <summary>
29-
/// Initializes the argument list.
30-
/// </summary>
31-
/// <param name="arguments">The arguments.</param>
32-
public void SetArguments(IDictionary<string, string> arguments)
33-
{
34-
if (arguments == null)
35-
{
36-
throw new ArgumentNullException("arguments");
37-
}
38-
_arguments.Clear();
39-
foreach (var argument in arguments)
40-
{
41-
_arguments.Add(argument.Key, argument.Value);
42-
}
16+
_arguments = new Dictionary<string, ICollection<string>>(StringComparer.OrdinalIgnoreCase);
4317
}
4418

4519
/// <summary>
@@ -54,15 +28,9 @@ public bool HasArgument(string name)
5428
return _arguments.ContainsKey(name);
5529
}
5630

57-
/// <summary>
58-
/// Gets an argument.
59-
/// </summary>
60-
/// <param name="name">The argument name.</param>
61-
/// <returns>The argument value.</returns>
62-
public string GetArgument(string name)
31+
public ICollection<string> GetArguments(string name)
6332
{
64-
return _arguments.ContainsKey(name)
65-
? _arguments[name] : null;
33+
return _arguments.TryGetValue(name, out var val) ? val : new List<string>();
6634
}
6735
}
6836
}

source/Cake.ExtendedNuGet.Tests/Fakes/FakeCakeContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public FakeCakeContext ()
2525
var registry = new WindowsRegistry ();
2626
var toolRepo = new ToolRepository(environment);
2727
var config = new Core.Configuration.CakeConfigurationProvider(fileSystem, environment).CreateConfiguration(testsDir, new Dictionary<string, string>());
28-
var toolResolutionStrategy = new ToolResolutionStrategy(fileSystem, environment, globber, config);
28+
var toolResolutionStrategy = new ToolResolutionStrategy(fileSystem, environment, globber, config, log);
2929
var toolLocator = new ToolLocator(environment, toolRepo, toolResolutionStrategy);
3030
var processRunner = new ProcessRunner(fileSystem, environment, log, toolLocator, config);
3131
var dataService = new FakeCakeDataService();

source/Cake.ExtendedNuGet/Cake.ExtendedNuGet.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<PrivateAssets>all</PrivateAssets>
4040
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4141
</PackageReference>
42-
<PackageReference Include="Cake.Common" Version="0.36.0" PrivateAssets="All" />
43-
<PackageReference Include="Cake.Core" Version="0.36.0" PrivateAssets="All" />
42+
<PackageReference Include="Cake.Common" Version="1.0.0" PrivateAssets="All" />
43+
<PackageReference Include="Cake.Core" Version="1.0.0" PrivateAssets="All" />
4444
<PackageReference Include="CakeContrib.Guidelines" Version="0.5.0">
4545
<PrivateAssets>all</PrivateAssets>
4646
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)