-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
### New in 0.0.1 | ||
|
||
* Initial release | ||
* Initial alpha release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<id>@project@</id> | ||
<version>@build.number@</version> | ||
<authors>@authors@</authors> | ||
<owners>@authors@</owners> | ||
<summary>@summary@</summary> | ||
<licenseUrl>https://github.com/haacked/rothko/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/haacked/rothko</projectUrl> | ||
<iconUrl>https://cloud.githubusercontent.com/assets/19977/4635932/4483417a-53de-11e4-8aad-7f06b2d3c46a.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>@description@</description> | ||
<releaseNotes>@releaseNotes@</releaseNotes> | ||
<copyright>Copyright Phil Haack 2014</copyright> | ||
<tags>dotnet abstractions</tags> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright (c) 2012 Phil Haack | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Rothko | ||
|
||
We all know the .NET Framework APIs for dealing with the file system are not | ||
designed with testability in mind. Also, I wasn't happy with the existing | ||
libraries for providing an abstraction for such things. I wanted one that was: | ||
|
||
* Modern - Included the `Enumerate*` methods for example. | ||
* Interface based - Using Abstract base classes as the abstraction is blech. | ||
* Easy to port to - So it had to follow the existing APIs closely. | ||
|
||
Rothko is this library. It provides abstractions for: | ||
|
||
* File system. | ||
* Registry | ||
* Environment. | ||
|
||
The starting point for Rothko is the `OperatingSystemFacade` class. From there | ||
you can get to the other abstractions. | ||
|
||
* `IFileSystem` | ||
* `IEnvironment` | ||
* `IRegistry` | ||
|
||
# Goals | ||
|
||
The goal is to use this in GitHub for Windows as well as any other | ||
applications where testability is important. | ||
|
||
A secondary goal is to make it very easy to port code using the core .NET | ||
Framework APIs to port over to Rothko. The interfaces map closely to the | ||
.NET Framework's, except in a few places where I wouldn't be able to live with | ||
myself if I didn't modernize the library. For example, I updated methods | ||
that return arrays to return `IEnumerable` (or derived interface) instead. | ||
|
||
Once these low level abstractions are implemented, I plan to add a set of | ||
_Facade_ classes that provide a more usable API that we all wished had been | ||
there all along. These _Facade_ classes will simply delegate to the | ||
lower-level abstractions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### New in 0.0.1 | ||
|
||
* Initial alpha release |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters