Skip to content

Commit

Permalink
Merge pull request #31 from AngleSharp/devel
Browse files Browse the repository at this point in the history
Release 0.12.1
  • Loading branch information
FlorianRappl authored May 14, 2019
2 parents e59a6e7 + 7041c44 commit d10525f
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 24 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.12.1

Released on Wednesday, May 15 2019.

- Binary version fix
- Fixed indexers are missing a `DomAccessorAttribute` (#30)
- Added `cssRules` alias: `rules` (#29)

# 0.12.0

Released on Sunday, May 12 2019.
Expand Down
34 changes: 18 additions & 16 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,20 @@ Task("Restore-Packages")
.IsDependentOn("Clean")
.Does(() =>
{
NuGetRestore("./src/AngleSharp.Css.sln", new NuGetRestoreSettings {
ToolPath = "tools/nuget.exe"
NuGetRestore("./src/AngleSharp.Css.sln", new NuGetRestoreSettings
{
ToolPath = "tools/nuget.exe",
});
});

Task("Build")
.IsDependentOn("Restore-Packages")
.Does(() =>
{
DotNetCoreBuild("./src/AngleSharp.Css.sln", new DotNetCoreBuildSettings() {
Configuration = configuration
ReplaceRegexInFiles("./src/Directory.Build.props", "(?<=<Version>)(.+?)(?=</Version>)", version);
DotNetCoreBuild("./src/AngleSharp.Css.sln", new DotNetCoreBuildSettings
{
Configuration = configuration,
});
});

Expand All @@ -70,7 +73,7 @@ Task("Run-Unit-Tests")
{
var settings = new DotNetCoreTestSettings
{
Configuration = configuration
Configuration = configuration,
};

if (isRunningOnAppVeyor)
Expand All @@ -92,7 +95,7 @@ Task("Copy-Files")
var mapping = new Dictionary<String, String>
{
{ "net46", "net46" },
{ "netstandard2.0", "netstandard2.0" }
{ "netstandard2.0", "netstandard2.0" },
};

if (!isRunningOnWindows)
Expand All @@ -107,7 +110,7 @@ Task("Copy-Files")
CopyFiles(new FilePath[]
{
buildDir + Directory(item.Value) + File("AngleSharp.Css.dll"),
buildDir + Directory(item.Value) + File("AngleSharp.Css.xml")
buildDir + Directory(item.Value) + File("AngleSharp.Css.xml"),
}, targetDir);
}

Expand All @@ -119,12 +122,8 @@ Task("Create-Package")
.Does(() =>
{
var nugetExe = GetFiles("./tools/**/nuget.exe").FirstOrDefault()
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null);

if (nugetExe == null)
{
throw new InvalidOperationException("Could not find nuget.exe.");
}
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null)
?? throw new InvalidOperationException("Could not find nuget.exe.");

var nuspec = nugetRoot + File("AngleSharp.Css.nuspec");

Expand All @@ -133,7 +132,10 @@ Task("Create-Package")
Version = version,
OutputDirectory = nugetRoot,
Symbols = false,
Properties = new Dictionary<String, String> { { "Configuration", configuration } }
Properties = new Dictionary<String, String>
{
{ "Configuration", configuration },
},
});
});

Expand All @@ -154,7 +156,7 @@ Task("Publish-Package")
NuGetPush(nupkg, new NuGetPushSettings
{
Source = "https://nuget.org/api/v2/package",
ApiKey = apiKey
ApiKey = apiKey,
});
}
});
Expand All @@ -173,7 +175,7 @@ Task("Publish-Release")

var github = new GitHubClient(new ProductHeaderValue("AngleSharpCakeBuild"))
{
Credentials = new Credentials(githubToken)
Credentials = new Credentials(githubToken),
};

var newRelease = github.Repository.Release;
Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Css.Tests/AngleSharp.Css.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AngleSharp.Xml" Version="0.12.0" />
<PackageReference Include="AngleSharp.Xml" Version="0.12.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/AngleSharp.Css.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<copyright>Copyright 2016-2019, AngleSharp</copyright>
<tags>html html5 css css3 dom styling library anglesharp angle</tags>
<dependencies>
<dependency id="AngleSharp" version="0.12.0" />
<dependency id="AngleSharp" version="0.12.1" />
</dependencies>
</metadata>
</package>
2 changes: 1 addition & 1 deletion src/AngleSharp.Css/AngleSharp.Css.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="0.12.0" />
<PackageReference Include="AngleSharp" Version="0.12.1" />
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Dom/ICssGroupingRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public interface ICssGroupingRule : ICssRule
/// Gets a list of all CSS rules contained within the grouping block.
/// </summary>
[DomName("cssRules")]
[DomName("rules")]
ICssRuleList Rules { get; }

/// <summary>
Expand Down
5 changes: 3 additions & 2 deletions src/AngleSharp.Css/Dom/ICssKeyframesRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public interface ICssKeyframesRule : ICssRule
/// Gets a CSSRuleList of the CSS rules in the media rule.
/// </summary>
[DomName("cssRules")]
[DomName("rules")]
ICssRuleList Rules { get; }

/// <summary>
Expand All @@ -32,7 +33,7 @@ public interface ICssKeyframesRule : ICssRule
void Add(String rule);

/// <summary>
/// Deletes a keyframe rule from the current CSSKeyframesRule.
/// Deletes a keyframe rule from the current CSSKeyframesRule.
/// </summary>
/// <param name="key">
/// The index of the keyframe to be deleted, expressed as a string
Expand All @@ -45,7 +46,7 @@ public interface ICssKeyframesRule : ICssRule
/// Returns a keyframe rule corresponding to the given key.
/// </summary>
/// <param name="key">
/// A string containing an index of the keyframe to be returned,
/// A string containing an index of the keyframe to be returned,
/// resolving to a number between 0 and 1.
/// </param>
/// <returns>The keyframe or null.</returns>
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Dom/ICssPseudoElementList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public interface ICssPseudoElementList
/// <param name="index">The 0-based index.</param>
/// <returns>The pseudo element, if any.</returns>
[DomName("item")]
[DomAccessor(Accessors.Getter)]
ICssPseudoElement this[Int32 index] { get; }

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/AngleSharp.Css/Dom/ICssRuleList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AngleSharp.Css.Dom
namespace AngleSharp.Css.Dom
{
using AngleSharp.Attributes;
using System;
Expand All @@ -16,6 +16,7 @@ public interface ICssRuleList : IEnumerable<ICssRule>
/// <param name="index">The 0-based index of the rule.</param>
/// <returns>The CSS rule at the given index, if any.</returns>
[DomName("item")]
[DomAccessor(Accessors.Getter)]
ICssRule this[Int32 index] { get; }

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/AngleSharp.Css/Dom/ICssStyleSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public interface ICssStyleSheet : IStyleSheet
/// Gets a CSSRuleList of the CSS rules in the style sheet.
/// </summary>
[DomName("cssRules")]
[DomName("rules")]
ICssRuleList Rules { get; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<ItemGroup>
<PackageReference Include="Alba.CsCss" version="1.0.1.0" />
<PackageReference Include="AngleSharp" Version="0.12.0" />
<PackageReference Include="AngleSharp" Version="0.12.1" />
<PackageReference Include="ExCSS" version="2.0.6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<PropertyGroup>
<Description>Extends the CSSOM from the core AngleSharp library.</Description>
<Product>AngleSharp.Css</Product>
<Version>0.10.1</Version>
<Version>0.12.1</Version>
</PropertyGroup>
</Project>

0 comments on commit d10525f

Please sign in to comment.