Skip to content

Commit

Permalink
Initial commit version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ntziolis committed Mar 21, 2012
0 parents commit 8dc139c
Show file tree
Hide file tree
Showing 134 changed files with 50,408 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Bb]in
[Dd]ebug*/
*.lib
*.sbr
obj/
[Rr]elease*/
_ReSharper*/
Download/
[Tt]est[Rr]esult*
packages
![Nn]u[Gg]et.exe
10 changes: 10 additions & 0 deletions .nuget/NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<apikeys>
<add key="https://www.nuget.org" value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAS2TDPaJDgEOnvrrD75pqQAAAAAACAAAAAAAQZgAAAAEAACAAAADlUweltbnl1vIQyvUuo587O8vXG9kA5Hz9a5QJqc9I6QAAAAAOgAAAAAIAACAAAACWPP3q3ZhvC0XWfgJ2Y0wJGyhnBuzR4Y9ipJbevj0hUTAAAAD/fEBYZw8HrrwhjjAEWMWu84qod1oyLc4FTzvAfwwnGuceWk47a1KaRy/SbLJemk1AAAAAQtR9MXNx6JhfMK5/b/E3k76MwYvQ3yA4w8o/358v9b/1S3HE+mSdXbbzr16x1NN32/ncDygCJ3MIoRoNcHxbEA==" />
<add key="http://nuget.gw.symbolsource.org/Public/NuGet" value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAS2TDPaJDgEOnvrrD75pqQAAAAAACAAAAAAAQZgAAAAEAACAAAAC2Bobzu7pPZieMpU73W+x3yRRwJZR4ou0inUgGzXAFrAAAAAAOgAAAAAIAACAAAAAZZ7PrNnuwoX10o0yZEW9+48/D0sBh/l2RyFcVV7DOaTAAAADBYVTOT4LAl9uKD6qeMAQTHMQ0djQ+bGhC0b1BybqeYjCdhGvwfZ3KpPBau6a4zpNAAAAAj1vEFeVIRY5SiBhPEcVz2nbdGlXqFyxLceYa4bjsMFcZdXo1UooqvqMEEv1aeXOSYiQujV8nocm3mWumm1MtQQ==" />
</apikeys>
</configuration>
Binary file added .nuget/NuGet.exe
Binary file not shown.
52 changes: 52 additions & 0 deletions .nuget/NuGet.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
<NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>

<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
<PackageSources>""</PackageSources>

<!-- Enable the restore command to run before builds -->
<RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>

<!-- Property that enables building a package from a project -->
<BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>

<!-- Commands -->
<RestoreCommand>"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
<BuildCommand>"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>

<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>

<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>

<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
</Target>

<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="Exists('$(PackagesConfig)')" />
</Target>

<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true" />
</Target>
</Project>
38 changes: 38 additions & 0 deletions AppHarbor.Net.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 11
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppHarbor.Net", "AppHarbor.Net\AppHarbor.Net.csproj", "{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppHarbor.Sample", "AppHarbor.Sample\AppHarbor.Sample.csproj", "{0C3887D5-069A-4212-9F22-EB8FDDD85D18}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{69DA7F8C-73AB-4E17-9E58-EBCA647FD847}"
ProjectSection(SolutionItems) = preProject
.nuget\NuGet.exe = .nuget\NuGet.exe
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppHarbor.Test", "AppHarbor.Test\AppHarbor.Test.csproj", "{AB19886F-C798-447A-A9CD-BEC6B3A3EBD1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0C3887D5-069A-4212-9F22-EB8FDDD85D18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C3887D5-069A-4212-9F22-EB8FDDD85D18}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C3887D5-069A-4212-9F22-EB8FDDD85D18}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0C3887D5-069A-4212-9F22-EB8FDDD85D18}.Release|Any CPU.Build.0 = Release|Any CPU
{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}.Release|Any CPU.Build.0 = Release|Any CPU
{AB19886F-C798-447A-A9CD-BEC6B3A3EBD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB19886F-C798-447A-A9CD-BEC6B3A3EBD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB19886F-C798-447A-A9CD-BEC6B3A3EBD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB19886F-C798-447A-A9CD-BEC6B3A3EBD1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
43 changes: 43 additions & 0 deletions AppHarbor.Net/AppHaborAuthenticator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#region License
// Copyright 2012 Nikolas Tziolis
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppHarbor
{
public class AppHaborAuthenticator : RestSharp.IAuthenticator
{
private readonly string _AuthorizationValue;
public AppHaborAuthenticator(AuthInfo authInfo)
{
if (authInfo == null)
throw new ArgumentNullException("authInfo");

if (authInfo.AccessToken == null)
throw new ArgumentNullException("authInfo.AccessToken");

_AuthorizationValue = string.Format("BEARER {0}", authInfo.AccessToken);
}

public void Authenticate(RestSharp.IRestClient client, RestSharp.IRestRequest request)
{
request.AddHeader("Authorization", _AuthorizationValue);
}
}
}
90 changes: 90 additions & 0 deletions AppHarbor.Net/AppHarbor.Net.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6ADD606F-2E3C-4210-951F-F15E1E4ACD08}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AppHarbor</RootNamespace>
<AssemblyName>AppHarbor.NET</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\AppHarbor.NET.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.4.0.8\lib\net35\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="RestSharp">
<HintPath>..\packages\RestSharp.102.7\lib\net35\RestSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AppHaborAuthenticator.cs" />
<Compile Include="AppHarborApi.cs" />
<Compile Include="AuthInfo.cs" />
<Compile Include="CustomJsonDeserializer.cs" />
<Compile Include="Model\Application.cs" />
<Compile Include="Config.cs" />
<Compile Include="Model\Build.cs" />
<Compile Include="Model\Collaborator.cs" />
<Compile Include="Model\ConfigurationVariable.cs" />
<Compile Include="Model\CreateResult.cs" />
<Compile Include="Model\Error.cs" />
<Compile Include="Model\Hostname.cs" />
<Compile Include="Model\IKeyed.cs" />
<Compile Include="Model\IUrl.cs" />
<Compile Include="Model\ServiceHook.cs" />
<Compile Include="Model\Test.cs" />
<Compile Include="Model\User.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Util.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Web.config.transform">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Web.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Loading

0 comments on commit 8dc139c

Please sign in to comment.