Skip to content

Commit

Permalink
Merge pull request #13 from RocketSurgeonsGuild/feature/download-pack…
Browse files Browse the repository at this point in the history
…age-icon

Feature/download package icon
  • Loading branch information
david-driscoll committed Sep 23, 2019
2 parents 3e1da08 + fb8166a commit 747e54c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Update="Buildalyzer" Version="2.3.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="Rocket.Surgery.Extensions.Testing.FakeItEasy" Version="2.0.0-beta.66" />
<PackageReference Update="Rocket.Surgery.Extensions.Testing.FakeItEasy" Version="2.0.0" />
<PackageReference Update="Autofac.Extras.FakeItEasy" Version="5.0.1" />
<PackageReference Update="Bogus" Version="28.2.1" />
<PackageReference Update="coverlet.collector" Version="1.0.1" />
Expand Down
4 changes: 2 additions & 2 deletions src/Nuke/DownloadFileAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public class DownloadFileAttribute : Attribute, IOnAfterLogo
/// Ensures that the icon at the given url is downloaded into the specified filePath
/// </summary>
/// <param name="url">The Url to download</param>
/// <param name="filePath">The file path to download to, defaults to TemporaryDirectory / packageicon.[ext]</param>
/// <param name="filePath">The file path to download to inside the temporary directory</param>
public DownloadFileAttribute(string url, string filePath)
{
_url = url ?? throw new ArgumentNullException(nameof(url));
_filePath = filePath == null ? throw new ArgumentNullException(nameof(filePath)) : (AbsolutePath)filePath;
_filePath = filePath == null ? throw new ArgumentNullException(nameof(filePath)) : NukeBuild.TemporaryDirectory / filePath;
}

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion src/Nuke/PackageIconAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public sealed class PackageIconAttribute : DownloadFileAttribute
/// <param name="url">The Url to download</param>
/// <param name="filePath">The file path to download to, defaults to TemporaryDirectory / packageicon.[ext]</param>
public PackageIconAttribute(string url, string filePath = null)
: base(url, filePath == null ? NukeBuild.TemporaryDirectory / ("packageicon" + System.IO.Path.GetExtension(url)) : (AbsolutePath)filePath)
: base(url, filePath == null ? ("packageicon" + System.IO.Path.GetExtension(url)) : (AbsolutePath)filePath)
{
Type = "Package Icon";
}
Expand Down

0 comments on commit 747e54c

Please sign in to comment.