diff --git a/Octokit.Reactive.nuspec b/Octokit.Reactive.nuspec new file mode 100644 index 00000000..b67b07e6 --- /dev/null +++ b/Octokit.Reactive.nuspec @@ -0,0 +1,20 @@ + + + + Octokit.Reactive + 0.1.0 + GitHub + GitHub + https://github.com/octokit/octokit.net/blob/master/LICENSE.txt + https://github.com/octokit/octokit.net + https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png + false + An IObservable based GitHub API client library for .NET using Reactive Extensions + Initial release. + Copyright GitHub 2013 + GitHub API Octokit + + + + + \ No newline at end of file diff --git a/Octokit.nuspec b/Octokit.nuspec new file mode 100644 index 00000000..5da89d76 --- /dev/null +++ b/Octokit.nuspec @@ -0,0 +1,17 @@ + + + + Octokit + 0.1.0 + GitHub + GitHub + https://github.com/octokit/octokit.net/blob/master/LICENSE.txt + https://github.com/octokit/octokit.net + https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png + false + An async-based GitHub API client library for .NET + Initial release. + Copyright GitHub 2013 + GitHub API Octokit + + \ No newline at end of file diff --git a/Octokit.sln b/Octokit.sln index c56fd49e..b59a584a 100644 --- a/Octokit.sln +++ b/Octokit.sln @@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451 script\cibuild.ps1 = script\cibuild.ps1 CustomDictionary.xml = CustomDictionary.xml Octokit.msbuild = Octokit.msbuild + octokit.nuspec = octokit.nuspec + Octokit.Reactive.nuspec = Octokit.Reactive.nuspec Octokit.ruleset = Octokit.ruleset EndProjectSection EndProject diff --git a/Octokit/Properties/AssemblyInfo.cs b/Octokit/Properties/AssemblyInfo.cs index 0c4ca80e..1820da32 100644 --- a/Octokit/Properties/AssemblyInfo.cs +++ b/Octokit/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ using System.Reflection; [assembly: AssemblyTitle("Octokit")] -[assembly: AssemblyDescription("A Task based GitHub API client library for .NET")] +[assembly: AssemblyDescription("An async-based GitHub API client library for .NET")] diff --git a/build.cmd b/build.cmd index 822884e5..7c4b2fc7 100644 --- a/build.cmd +++ b/build.cmd @@ -1 +1,30 @@ -Powershell -ExecutionPolicy Unrestricted %~dp0Build-Solution.ps1 \ No newline at end of file +@echo Off +set config=%1 +if "%config%" == "" ( + set config=Release +) + +Powershell -ExecutionPolicy Unrestricted %~dp0Build-Solution.ps1 FullBuild %config% + +rd packaging /s /q REM delete the old stuff + +if not exist packaging\octokit\lib\net45 mkdir packaging\octokit\lib\net45\ +if not exist packaging\octokit\lib\netcore45 mkdir packaging\octokit\lib\netcore45\ + +copy LICENSE.txt packaging\octokit\ +copy README.md packaging\octokit\ + +copy Octokit\bin\Release\Octokit.dll packaging\octokit\lib\net45\ +copy Octokit\bin\WinRT\Release\OctokitRT.dll packaging\octokit\lib\netcore45\ + +tools\nuget\nuget.exe pack "octokit.nuspec" -BasePath packaging\octokit -Output packaging + + +if not exist packaging\octokit.reactive\lib\net45 mkdir packaging\octokit.reactive\lib\net45\ + +copy LICENSE.txt packaging\octokit.reactive\ +copy README.md packaging\octokit.reactive\ + +copy Octokit.Reactive\bin\Release\Octokit.Reactive.dll packaging\octokit.reactive\lib\net45\ + +tools\nuget\nuget.exe pack "octokit.reactive.nuspec" -BasePath packaging\octokit.reactive -Output packaging \ No newline at end of file diff --git a/packaging/Octokit.0.1.0.nupkg b/packaging/Octokit.0.1.0.nupkg new file mode 100644 index 00000000..e9fd4576 Binary files /dev/null and b/packaging/Octokit.0.1.0.nupkg differ diff --git a/packaging/Octokit.Reactive.0.1.0.nupkg b/packaging/Octokit.Reactive.0.1.0.nupkg new file mode 100644 index 00000000..56974723 Binary files /dev/null and b/packaging/Octokit.Reactive.0.1.0.nupkg differ diff --git a/packaging/octokit.reactive/LICENSE.txt b/packaging/octokit.reactive/LICENSE.txt new file mode 100644 index 00000000..332c3686 --- /dev/null +++ b/packaging/octokit.reactive/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2012 GitHub, Inc. + +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. + diff --git a/packaging/octokit.reactive/README.md b/packaging/octokit.reactive/README.md new file mode 100644 index 00000000..8f970c77 --- /dev/null +++ b/packaging/octokit.reactive/README.md @@ -0,0 +1,81 @@ +# Octokit - GitHub API Client Library for .NET + +Octokit is a client library targeting .NET 4.0 and above that provides an easy +way to interact with the [GitHub API](http://developer.github.com/v3/). + +## Usage examples + +Get public info on a specific user. + +``` +var github = new GitHubClient(); +var user = await github.User.Get("half-ogre"); +Console.WriteLine(user.Followers + " folks love the half ogre!"); +``` + +## Getting Started + +Octokit is available on NuGet. + +``` +Install-Package Octokit +``` + +## Build + +Octokit is a single assembly designed to be easy to deploy anywhere. If you prefer +to compile it yourself, you’ll need: + +* Visual Studio 2012 +* PowerShell 2.0 or greater. _For our build scripts_. + +To clone it locally click the "Clone in Windows" button above or run the +following git commands. + +``` +git clone git@github.com:github/Octokit.net.git Octokit +cd Octokit +.\build.cmd +``` + +## Integration Tests + +Octokit has integration tests that access the GitHub API, but they must be configured before they will be executed. +To configure the tests, create a test GitHub account (i.e., **don't use your real GitHub account**) and then set +the following two environment variables: + +- `OCTOKIT_GITHUBUSERNAME` (set this to the test account's username) +- `OCTOKIT_GITHUBPASSWORD` (set this to the test account's password) + +Once both of these are set, the integration tests will be executed both when running the `FullBuild` MSBuild target, +and when running the `Octokit.Tests.Integration` assembly through an xUnit.net-friendly test runner. + +## Problems? + +Octokit is 100% certified to be bug free. If you find an issue with our +certification, please visit the [issue tracker](https://github.com/github/Octokit/issues) +and report the issue. + +Please be kind and search to see if the issue is already logged before creating +a new one. If you're pressed for time, log it anyways. + +When creating an issue, clearly explain + +* What you were trying to do. +* What you expected to happen. +* What actually happened. +* Steps to reproduce the problem. + +Also include any other information you think is relevant to reproduce the +problem. + +## Contribute + +Visit the [Contributor Guidelines](https://github.com/github/Octokit/blob/master/CONTRIBUTING.md) +for more details. + +## Copyright and License + +Copyright 2013 GitHub, Inc. + +Licensed under the [MIT License](https://github.com/github/Octokit/blob/master/LICENSE.txt) diff --git a/packaging/octokit.reactive/lib/net45/Octokit.Reactive.dll b/packaging/octokit.reactive/lib/net45/Octokit.Reactive.dll new file mode 100644 index 00000000..631556c1 Binary files /dev/null and b/packaging/octokit.reactive/lib/net45/Octokit.Reactive.dll differ diff --git a/packaging/octokit/LICENSE.txt b/packaging/octokit/LICENSE.txt new file mode 100644 index 00000000..332c3686 --- /dev/null +++ b/packaging/octokit/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2012 GitHub, Inc. + +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. + diff --git a/packaging/octokit/README.md b/packaging/octokit/README.md new file mode 100644 index 00000000..8f970c77 --- /dev/null +++ b/packaging/octokit/README.md @@ -0,0 +1,81 @@ +# Octokit - GitHub API Client Library for .NET + +Octokit is a client library targeting .NET 4.0 and above that provides an easy +way to interact with the [GitHub API](http://developer.github.com/v3/). + +## Usage examples + +Get public info on a specific user. + +``` +var github = new GitHubClient(); +var user = await github.User.Get("half-ogre"); +Console.WriteLine(user.Followers + " folks love the half ogre!"); +``` + +## Getting Started + +Octokit is available on NuGet. + +``` +Install-Package Octokit +``` + +## Build + +Octokit is a single assembly designed to be easy to deploy anywhere. If you prefer +to compile it yourself, you’ll need: + +* Visual Studio 2012 +* PowerShell 2.0 or greater. _For our build scripts_. + +To clone it locally click the "Clone in Windows" button above or run the +following git commands. + +``` +git clone git@github.com:github/Octokit.net.git Octokit +cd Octokit +.\build.cmd +``` + +## Integration Tests + +Octokit has integration tests that access the GitHub API, but they must be configured before they will be executed. +To configure the tests, create a test GitHub account (i.e., **don't use your real GitHub account**) and then set +the following two environment variables: + +- `OCTOKIT_GITHUBUSERNAME` (set this to the test account's username) +- `OCTOKIT_GITHUBPASSWORD` (set this to the test account's password) + +Once both of these are set, the integration tests will be executed both when running the `FullBuild` MSBuild target, +and when running the `Octokit.Tests.Integration` assembly through an xUnit.net-friendly test runner. + +## Problems? + +Octokit is 100% certified to be bug free. If you find an issue with our +certification, please visit the [issue tracker](https://github.com/github/Octokit/issues) +and report the issue. + +Please be kind and search to see if the issue is already logged before creating +a new one. If you're pressed for time, log it anyways. + +When creating an issue, clearly explain + +* What you were trying to do. +* What you expected to happen. +* What actually happened. +* Steps to reproduce the problem. + +Also include any other information you think is relevant to reproduce the +problem. + +## Contribute + +Visit the [Contributor Guidelines](https://github.com/github/Octokit/blob/master/CONTRIBUTING.md) +for more details. + +## Copyright and License + +Copyright 2013 GitHub, Inc. + +Licensed under the [MIT License](https://github.com/github/Octokit/blob/master/LICENSE.txt) diff --git a/packaging/octokit/lib/net45/Octokit.dll b/packaging/octokit/lib/net45/Octokit.dll new file mode 100644 index 00000000..6e3a3ada Binary files /dev/null and b/packaging/octokit/lib/net45/Octokit.dll differ diff --git a/packaging/octokit/lib/netcore45/OctokitRT.dll b/packaging/octokit/lib/netcore45/OctokitRT.dll new file mode 100644 index 00000000..19fd69f7 Binary files /dev/null and b/packaging/octokit/lib/netcore45/OctokitRT.dll differ diff --git a/tools/nuget/NuGet.exe b/tools/nuget/NuGet.exe new file mode 100644 index 00000000..79482f60 Binary files /dev/null and b/tools/nuget/NuGet.exe differ