Skip to content

Commit 7e9d263

Browse files
authored
Merge pull request #5 from AngleSharp/devel
Release 0.12.1
2 parents a7c9f50 + ce76a67 commit 7e9d263

File tree

6 files changed

+31
-22
lines changed

6 files changed

+31
-22
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 0.12.1
2+
3+
Released on Wednesday, May 15 2019.
4+
5+
- Binary version fix
6+
- Placed `WithXml` in the AngleSharp namespace (#4)
7+
18
# 0.12.0
29

310
Released on Thursday, May 2 2019.

build.cake

Lines changed: 19 additions & 17 deletions
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.Xml.sln", new NuGetRestoreSettings {
54-
ToolPath = "tools/nuget.exe"
53+
NuGetRestore("./src/AngleSharp.Xml.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.Xml.sln", new DotNetCoreBuildSettings() {
63-
Configuration = configuration
63+
ReplaceRegexInFiles("./src/Directory.Build.props", "(?<=<Version>)(.+?)(?=</Version>)", version);
64+
DotNetCoreBuild("./src/AngleSharp.Xml.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)
@@ -91,7 +94,7 @@ Task("Copy-Files")
9194
{
9295
var mapping = new Dictionary<String, String>
9396
{
94-
{ "netstandard1.3", "netstandard1.3" }
97+
{ "netstandard1.3", "netstandard1.3" },
9598
};
9699

97100
foreach (var item in mapping)
@@ -101,7 +104,7 @@ Task("Copy-Files")
101104
CopyFiles(new FilePath[]
102105
{
103106
buildDir + Directory(item.Value) + File("AngleSharp.Xml.dll"),
104-
buildDir + Directory(item.Value) + File("AngleSharp.Xml.xml")
107+
buildDir + Directory(item.Value) + File("AngleSharp.Xml.xml"),
105108
}, targetDir);
106109
}
107110

@@ -113,12 +116,8 @@ Task("Create-Package")
113116
.Does(() =>
114117
{
115118
var nugetExe = GetFiles("./tools/**/nuget.exe").FirstOrDefault()
116-
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null);
117-
118-
if (nugetExe == null)
119-
{
120-
throw new InvalidOperationException("Could not find nuget.exe.");
121-
}
119+
?? (isRunningOnAppVeyor ? GetFiles("C:\\Tools\\NuGet3\\nuget.exe").FirstOrDefault() : null)
120+
?? throw new InvalidOperationException("Could not find nuget.exe.");
122121

123122
var nuspec = nugetRoot + File("AngleSharp.Xml.nuspec");
124123

@@ -127,7 +126,10 @@ Task("Create-Package")
127126
Version = version,
128127
OutputDirectory = nugetRoot,
129128
Symbols = false,
130-
Properties = new Dictionary<String, String> { { "Configuration", configuration } }
129+
Properties = new Dictionary<String, String>
130+
{
131+
{ "Configuration", configuration },
132+
},
131133
});
132134
});
133135

@@ -148,7 +150,7 @@ Task("Publish-Package")
148150
NuGetPush(nupkg, new NuGetPushSettings
149151
{
150152
Source = "https://nuget.org/api/v2/package",
151-
ApiKey = apiKey
153+
ApiKey = apiKey,
152154
});
153155
}
154156
});
@@ -167,7 +169,7 @@ Task("Publish-Release")
167169

168170
var github = new GitHubClient(new ProductHeaderValue("AngleSharpCakeBuild"))
169171
{
170-
Credentials = new Credentials(githubToken)
172+
Credentials = new Credentials(githubToken),
171173
};
172174

173175
var newRelease = github.Repository.Release;
@@ -176,7 +178,7 @@ Task("Publish-Release")
176178
Name = version,
177179
Body = String.Join(Environment.NewLine, releaseNotes.Notes),
178180
Prerelease = false,
179-
TargetCommitish = "master"
181+
TargetCommitish = "master",
180182
}).Wait();
181183
});
182184

src/AngleSharp.Xml.nuspec

Lines changed: 1 addition & 1 deletion
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 requester http https xml dtd</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.Xml/AngleSharp.Xml.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="AngleSharp" Version="0.12.0" />
12+
<PackageReference Include="AngleSharp" Version="0.12.1" />
1313
</ItemGroup>
1414

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

src/AngleSharp.Xml/XmlConfigurationExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AngleSharp.Xml
1+
namespace AngleSharp
22
{
33
using AngleSharp.Dom;
44
using AngleSharp.Io;
@@ -23,7 +23,7 @@ public static class XmlConfigurationExtensions
2323
public static IConfiguration WithXml(this IConfiguration configuration)
2424
{
2525
var documentFactory = configuration.Services.OfType<DefaultDocumentFactory>().FirstOrDefault();
26-
26+
2727
if (documentFactory != null)
2828
{
2929
documentFactory.Unregister(MimeTypeNames.Xml);

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<PropertyGroup>
33
<Description>Adds a powerful XML and DTD parser to AngleSharp.</Description>
44
<Product>AngleSharp.Xml</Product>
5-
<Version>0.11.0</Version>
5+
<Version>0.12.1</Version>
66
</PropertyGroup>
77
</Project>

0 commit comments

Comments
 (0)