Skip to content

Commit d10525f

Browse files
authored
Merge pull request #31 from AngleSharp/devel
Release 0.12.1
2 parents e59a6e7 + 7041c44 commit d10525f

12 files changed

+39
-24
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 0.12.1
2+
3+
Released on Wednesday, May 15 2019.
4+
5+
- Binary version fix
6+
- Fixed indexers are missing a `DomAccessorAttribute` (#30)
7+
- Added `cssRules` alias: `rules` (#29)
8+
19
# 0.12.0
210

311
Released on Sunday, May 12 2019.

build.cake

+18-16
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,20 @@ Task("Restore-Packages")
5050
.IsDependentOn("Clean")
5151
.Does(() =>
5252
{
53-
NuGetRestore("./src/AngleSharp.Css.sln", new NuGetRestoreSettings {
54-
ToolPath = "tools/nuget.exe"
53+
NuGetRestore("./src/AngleSharp.Css.sln", new NuGetRestoreSettings
54+
{
55+
ToolPath = "tools/nuget.exe",
5556
});
5657
});
5758

5859
Task("Build")
5960
.IsDependentOn("Restore-Packages")
6061
.Does(() =>
6162
{
62-
DotNetCoreBuild("./src/AngleSharp.Css.sln", new DotNetCoreBuildSettings() {
63-
Configuration = configuration
63+
ReplaceRegexInFiles("./src/Directory.Build.props", "(?<=<Version>)(.+?)(?=</Version>)", version);
64+
DotNetCoreBuild("./src/AngleSharp.Css.sln", new DotNetCoreBuildSettings
65+
{
66+
Configuration = configuration,
6467
});
6568
});
6669

@@ -70,7 +73,7 @@ Task("Run-Unit-Tests")
7073
{
7174
var settings = new DotNetCoreTestSettings
7275
{
73-
Configuration = configuration
76+
Configuration = configuration,
7477
};
7578

7679
if (isRunningOnAppVeyor)
@@ -92,7 +95,7 @@ Task("Copy-Files")
9295
var mapping = new Dictionary<String, String>
9396
{
9497
{ "net46", "net46" },
95-
{ "netstandard2.0", "netstandard2.0" }
98+
{ "netstandard2.0", "netstandard2.0" },
9699
};
97100

98101
if (!isRunningOnWindows)
@@ -107,7 +110,7 @@ Task("Copy-Files")
107110
CopyFiles(new FilePath[]
108111
{
109112
buildDir + Directory(item.Value) + File("AngleSharp.Css.dll"),
110-
buildDir + Directory(item.Value) + File("AngleSharp.Css.xml")
113+
buildDir + Directory(item.Value) + File("AngleSharp.Css.xml"),
111114
}, targetDir);
112115
}
113116

@@ -119,12 +122,8 @@ Task("Create-Package")
119122
.Does(() =>
120123
{
121124
var nugetExe = GetFiles("./tools/**/nuget.exe").FirstOrDefault()
122-
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null);
123-
124-
if (nugetExe == null)
125-
{
126-
throw new InvalidOperationException("Could not find nuget.exe.");
127-
}
125+
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null)
126+
?? throw new InvalidOperationException("Could not find nuget.exe.");
128127

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

@@ -133,7 +132,10 @@ Task("Create-Package")
133132
Version = version,
134133
OutputDirectory = nugetRoot,
135134
Symbols = false,
136-
Properties = new Dictionary<String, String> { { "Configuration", configuration } }
135+
Properties = new Dictionary<String, String>
136+
{
137+
{ "Configuration", configuration },
138+
},
137139
});
138140
});
139141

@@ -154,7 +156,7 @@ Task("Publish-Package")
154156
NuGetPush(nupkg, new NuGetPushSettings
155157
{
156158
Source = "https://nuget.org/api/v2/package",
157-
ApiKey = apiKey
159+
ApiKey = apiKey,
158160
});
159161
}
160162
});
@@ -173,7 +175,7 @@ Task("Publish-Release")
173175

174176
var github = new GitHubClient(new ProductHeaderValue("AngleSharpCakeBuild"))
175177
{
176-
Credentials = new Credentials(githubToken)
178+
Credentials = new Credentials(githubToken),
177179
};
178180

179181
var newRelease = github.Repository.Release;

src/AngleSharp.Css.Tests/AngleSharp.Css.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="AngleSharp.Xml" Version="0.12.0" />
16+
<PackageReference Include="AngleSharp.Xml" Version="0.12.1" />
1717
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
1818
<PackageReference Include="NUnit" Version="3.11.0" />
1919
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />

src/AngleSharp.Css.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<copyright>Copyright 2016-2019, AngleSharp</copyright>
1515
<tags>html html5 css css3 dom styling library anglesharp angle</tags>
1616
<dependencies>
17-
<dependency id="AngleSharp" version="0.12.0" />
17+
<dependency id="AngleSharp" version="0.12.1" />
1818
</dependencies>
1919
</metadata>
2020
</package>

src/AngleSharp.Css/AngleSharp.Css.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="AngleSharp" Version="0.12.0" />
13+
<PackageReference Include="AngleSharp" Version="0.12.1" />
1414
</ItemGroup>
1515

1616
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">

src/AngleSharp.Css/Dom/ICssGroupingRule.cs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public interface ICssGroupingRule : ICssRule
1414
/// Gets a list of all CSS rules contained within the grouping block.
1515
/// </summary>
1616
[DomName("cssRules")]
17+
[DomName("rules")]
1718
ICssRuleList Rules { get; }
1819

1920
/// <summary>

src/AngleSharp.Css/Dom/ICssKeyframesRule.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public interface ICssKeyframesRule : ICssRule
1919
/// Gets a CSSRuleList of the CSS rules in the media rule.
2020
/// </summary>
2121
[DomName("cssRules")]
22+
[DomName("rules")]
2223
ICssRuleList Rules { get; }
2324

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

3435
/// <summary>
35-
/// Deletes a keyframe rule from the current CSSKeyframesRule.
36+
/// Deletes a keyframe rule from the current CSSKeyframesRule.
3637
/// </summary>
3738
/// <param name="key">
3839
/// The index of the keyframe to be deleted, expressed as a string
@@ -45,7 +46,7 @@ public interface ICssKeyframesRule : ICssRule
4546
/// Returns a keyframe rule corresponding to the given key.
4647
/// </summary>
4748
/// <param name="key">
48-
/// A string containing an index of the keyframe to be returned,
49+
/// A string containing an index of the keyframe to be returned,
4950
/// resolving to a number between 0 and 1.
5051
/// </param>
5152
/// <returns>The keyframe or null.</returns>

src/AngleSharp.Css/Dom/ICssPseudoElementList.cs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public interface ICssPseudoElementList
2121
/// <param name="index">The 0-based index.</param>
2222
/// <returns>The pseudo element, if any.</returns>
2323
[DomName("item")]
24+
[DomAccessor(Accessors.Getter)]
2425
ICssPseudoElement this[Int32 index] { get; }
2526

2627
/// <summary>

src/AngleSharp.Css/Dom/ICssRuleList.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Attributes;
44
using System;
@@ -16,6 +16,7 @@ public interface ICssRuleList : IEnumerable<ICssRule>
1616
/// <param name="index">The 0-based index of the rule.</param>
1717
/// <returns>The CSS rule at the given index, if any.</returns>
1818
[DomName("item")]
19+
[DomAccessor(Accessors.Getter)]
1920
ICssRule this[Int32 index] { get; }
2021

2122
/// <summary>

src/AngleSharp.Css/Dom/ICssStyleSheet.cs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public interface ICssStyleSheet : IStyleSheet
2121
/// Gets a CSSRuleList of the CSS rules in the style sheet.
2222
/// </summary>
2323
[DomName("cssRules")]
24+
[DomName("rules")]
2425
ICssRuleList Rules { get; }
2526

2627
/// <summary>

src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="Alba.CsCss" version="1.0.1.0" />
23-
<PackageReference Include="AngleSharp" Version="0.12.0" />
23+
<PackageReference Include="AngleSharp" Version="0.12.1" />
2424
<PackageReference Include="ExCSS" version="2.0.6" />
2525
</ItemGroup>
2626
</Project>

src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<PropertyGroup>
33
<Description>Extends the CSSOM from the core AngleSharp library.</Description>
44
<Product>AngleSharp.Css</Product>
5-
<Version>0.10.1</Version>
5+
<Version>0.12.1</Version>
66
</PropertyGroup>
77
</Project>

0 commit comments

Comments
 (0)