diff --git a/.gitignore b/.gitignore
index 0dd155a..d689ad7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,6 +65,8 @@ local.properties
## TODO: If you have NuGet Package Restore enabled, uncomment this
packages/
+# output folder for building NuGet packages
+packaging/
# Visual C++ cache files
ipch/
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..87e7d92
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,74 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of experience,
+nationality, personal appearance, race, religion, or sexual identity and
+orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or
+reject comments, commits, code, wiki edits, issues, and other contributions
+that are not aligned to this Code of Conduct, or to ban temporarily or
+permanently any contributor for other behaviors that they deem inappropriate,
+threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at haacked@gmail.com. All
+complaints will be reviewed and investigated and will result in a response that
+is deemed necessary and appropriate to the circumstances. The project team is
+obligated to maintain confidentiality with regard to the reporter of an incident.
+Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
+available at [http://contributor-covenant.org/version/1/4][version]
+
+[homepage]: http://contributor-covenant.org
+[version]: http://contributor-covenant.org/version/1/4/
diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index 18c0463..2906970 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -1,3 +1,7 @@
+### New in 0.0.2
+
+* Signing key for GHfVS
+
### New in 0.0.1
-* Initial release
+* Initial alpha release
diff --git a/Rothko.nuspec b/Rothko.nuspec
new file mode 100644
index 0000000..5870ce5
--- /dev/null
+++ b/Rothko.nuspec
@@ -0,0 +1,18 @@
+
+
+
+ @project@
+ @build.number@
+ @authors@
+ @authors@
+ @summary@
+ https://github.com/haacked/rothko/blob/master/LICENSE.txt
+ https://github.com/editor-tools/rothko
+ https://cloud.githubusercontent.com/assets/19977/4635932/4483417a-53de-11e4-8aad-7f06b2d3c46a.png
+ false
+ @description@
+ @releaseNotes@
+ Copyright Phil Haack 2015
+ dotnet abstractions
+
+
\ No newline at end of file
diff --git a/Rothko.sln b/Rothko.sln
index 8cfe41f..a89fed0 100644
--- a/Rothko.sln
+++ b/Rothko.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
+VisualStudioVersion = 12.0.30723.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rothko", "src\Rothko.csproj", "{4A84E568-CA86-4510-8CD0-90D3EF9B65F9}"
EndProject
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{1F038D9F-9
CodeAnalysisDictionary.xml = CodeAnalysisDictionary.xml
LICENSE-MIT.txt = LICENSE-MIT.txt
README.md = README.md
+ ReleaseNotes.md = ReleaseNotes.md
Rothko.ruleset = Rothko.ruleset
EndProjectSection
EndProject
@@ -19,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{2DC1E33B
ProjectSection(SolutionItems) = preProject
script\build.cmd = script\build.cmd
script\build.fsx = script\build.fsx
+ Rothko.nuspec = Rothko.nuspec
EndProjectSection
EndProject
Global
diff --git a/SolutionInfo.cs b/SolutionInfo.cs
index 403ef3f..cec6677 100644
--- a/SolutionInfo.cs
+++ b/SolutionInfo.cs
@@ -2,10 +2,10 @@
using System.Reflection;
[assembly: AssemblyProductAttribute("Rothko")]
-[assembly: AssemblyVersionAttribute("0.0.1")]
-[assembly: AssemblyFileVersionAttribute("0.0.1")]
+[assembly: AssemblyVersionAttribute("0.0.2")]
+[assembly: AssemblyFileVersionAttribute("0.0.2")]
namespace System {
internal static class AssemblyVersionInformation {
- internal const string Version = "0.0.1";
+ internal const string Version = "0.0.2";
}
}
diff --git a/Tests/DirectoryInfoTests.cs b/Tests/DirectoryInfoTests.cs
new file mode 100644
index 0000000..8da045f
--- /dev/null
+++ b/Tests/DirectoryInfoTests.cs
@@ -0,0 +1,28 @@
+using System.IO;
+using Xunit;
+using DirectoryInfo = Rothko.DirectoryInfo;
+
+public class DirectoryInfoTests
+{
+ public class TheCreateMethod
+ {
+ [Fact]
+ public void CreatesMissingParentDirectories()
+ {
+ using (var tempDir = DisposableDirectory.CreateRandomDirectory())
+ {
+ var path = Path.Combine(tempDir.FullPath, "foo", "bar", "baz");
+ var directory = new DirectoryInfo(path);
+ Assert.False(Directory.Exists(Path.Combine(tempDir.FullPath, "foo")));
+ Assert.False(Directory.Exists(Path.Combine(tempDir.FullPath, "foo", "bar")));
+ Assert.False(Directory.Exists(path));
+
+ directory.Create();
+
+ Assert.True(Directory.Exists(Path.Combine(tempDir.FullPath, "foo")));
+ Assert.True(Directory.Exists(Path.Combine(tempDir.FullPath, "foo", "bar")));
+ Assert.True(Directory.Exists(path));
+ }
+ }
+ }
+}
diff --git a/Tests/Helpers/DisposableDirectory.cs b/Tests/Helpers/DisposableDirectory.cs
new file mode 100644
index 0000000..fbea9d1
--- /dev/null
+++ b/Tests/Helpers/DisposableDirectory.cs
@@ -0,0 +1,34 @@
+using System;
+using System.IO;
+
+public sealed class DisposableDirectory : IDisposable
+{
+ readonly DirectoryInfo directory;
+
+ public static DisposableDirectory CreateRandomDirectory()
+ {
+ return CreateDirectory(GetRandomRothkoTemporaryFolder());
+ }
+
+ public static DisposableDirectory CreateDirectory(string path)
+ {
+ return new DisposableDirectory(new DirectoryInfo(path));
+ }
+
+ DisposableDirectory(DirectoryInfo directory)
+ {
+ this.directory = directory;
+ }
+
+ public string FullPath { get { return directory.FullName; } }
+
+ public void Dispose()
+ {
+ directory.Delete(true);
+ }
+
+ static string GetRandomRothkoTemporaryFolder()
+ {
+ return Path.Combine(Path.GetTempPath(), "__RothkoTestFolder-REMOVE-ME", Path.GetRandomFileName());
+ }
+}
diff --git a/Tests/NullGuardTest.cs b/Tests/NullGuardTest.cs
index dcaace4..c211f1c 100644
--- a/Tests/NullGuardTest.cs
+++ b/Tests/NullGuardTest.cs
@@ -22,8 +22,6 @@ public void CheckOSVersionImplementation()
{
var environment = new Environment();
- Assert.NotNull(environment.OSVersion.Edition);
- Assert.NotNull(environment.OSVersion.Name);
Assert.True(environment.OSVersion.ToString().Length > 7);
}
}
diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj
index f42e1f3..16429a0 100644
--- a/Tests/Tests.csproj
+++ b/Tests/Tests.csproj
@@ -1,6 +1,6 @@
-
+ DebugAnyCPU
@@ -14,7 +14,7 @@
v4.5512
- 3e89ca51
+ 668ee80etrue
@@ -44,19 +44,25 @@
- False..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll
+ True
-
- False
- ..\packages\xunit.assert.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.assert.dll
+
+ ..\packages\xunit.assert.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll
+ True
-
- False
- ..\packages\xunit.extensibility.core.2.0.0\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.dll
+
+ ..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll
+ True
+
+
+ ..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll
+ True
+
+
@@ -74,7 +80,7 @@
This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
+
+ RELEASE_NOTES
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
BREAKING CHANGE: API for CreateAssemblyInfoWithConfig was set back to original version
+This resets the breaking change introduced in https://github.com/fsharp/FAKE/pull/471