Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added NuGet package

  • Loading branch information...
commit 88703400fbb1e8d707637403d7ada2a4a9bfe888 1 parent 9b63fb1
@nberardi authored
View
21 LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2011- Stripe, Inc. (https://stripe.com)
+
+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.
View
72 Stripe.msbuild
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
+ <UsingTask TaskName="NUnitTeamCity" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)" />
+
+ <ItemGroup>
+ <MainProjects Include="src\**\*.csproj" />
+ <TestProjects Include="test\**\*.csproj" />
+ <AllProjects Include="@(MainProjects);@(TestProjects)" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <AssemblyName>Stripe</AssemblyName>
+ <AssemblyInfo>src\Properties\AssemblyInfo.cs</AssemblyInfo>
+ <PackageBuildPath>build</PackageBuildPath>
+ <PackageId>$(AssemblyName)</PackageId>
+ <NuGetExe>lib\nuget.exe</NuGetExe>
+ <NuPackage>$(PackageBuildPath)\$(PackageId).$(build_number).nupkg</NuPackage>
+ </PropertyGroup>
+
+ <Target Name="CleanPackage">
+ <RemoveDir Directories="$(PackageBuildPath)" Condition="Exists($(PackageBuildPath))"/>
+ </Target>
+
+ <Target Name="Clean" DependsOnTargets="CleanPackage">
+ <TeamCityProgressMessage Text="Cleaning Projects" />
+ <MSBuild Projects="@(AllProjects)" Targets="Clean"/>
+ </Target>
+
+ <Target Name="SetVersion" DependsOnTargets="Clean">
+ <TeamCityProgressMessage Text="Update Version" />
+ <FileUpdate
+ Files="$(AssemblyInfo)"
+ Regex='\[assembly: (Assembly(File)?Version)\("([0-9\.\*]+)"\)\]'
+ ReplacementText='[assembly: $1("$(build_number)")]' />
+ </Target>
+
+ <Target Name="Test" DependsOnTargets="SetVersion">
+ <TeamCityProgressMessage Text="Building Tests" />
+ <MSBuild Projects="@(TestProjects)" Targets="Rebuild" Properties="Configuration=Release">
+ <Output TaskParameter="TargetOutputs" ItemName="TestOutput"/>
+ </MSBuild>
+
+ <TeamCityProgressMessage Text="Running Tests" />
+ <NUnitTeamCity Assemblies="@(TestOutput)" NUnitVersion="NUnit-2.5.9" />
+ </Target>
+
+ <Target Name="Build" DependsOnTargets="SetVersion">
+ <TeamCityProgressMessage Text="Building Projects" />
+ <MSBuild Projects="@(MainProjects)" Targets="Rebuild" Properties="Configuration=Release" />
+ </Target>
+
+ <Target Name="Package" DependsOnTargets="Test">
+ <TeamCityProgressMessage Text="Packaging NuGet" />
+
+ <ItemGroup>
+ <AssembliesToPackage Include="src\bin\**\$(AssemblyName).dll" />
+ <AssembliesToPackage Include="src\bin\**\$(AssemblyName).pdb" />
+ </ItemGroup>
+
+ <Copy SourceFiles="@(AssembliesToPackage)" DestinationFolder="$(PackageBuildPath)" />
+
+ <Exec Command="$(NuGetExe) update" />
+ <Exec Command="$(NuGetExe) pack -sym src/$(AssemblyName).csproj -o $(PackageBuildPath)" />
+ </Target>
+
+ <Target Name="Deploy" DependsOnTargets="Package">
+ <TeamCityProgressMessage Text="Deploying NuGet" />
+
+ <Exec Command="$(NuGetExe) push $(NuPackage) $(package_key)" />
+ </Target>
+</Project>
View
5 Stripe.sln
@@ -5,6 +5,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stripe", "src\Stripe.csproj
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stripe.Tests", "test\Stripe.Tests\Stripe.Tests.csproj", "{7F5C4956-BE38-4D5F-A28E-BD6DE38479DA}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F9C2B309-C5E3-440B-867B-A36E75F239EA}"
+ ProjectSection(SolutionItems) = preProject
+ Stripe.msbuild = Stripe.msbuild
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
View
BIN  lib/NuGet.exe
Binary file not shown
View
BIN  lib/nunit.framework.dll
Binary file not shown
View
BIN  nuget/Stripe.Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1  src/Stripe.csproj
@@ -76,6 +76,7 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
+ <None Include="Stripe.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
View
21 src/Stripe.nuspec
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package>
+ <metadata>
+ <id>Stripe</id>
+ <version>$version$</version>
+ <title>Stripe</title>
+ <authors>Nick Berardi</authors>
+ <owners>Stripe, Inc</owners>
+ <description>Stripe is a simple, developer-friendly way to accept payments online. We believe that enabling transactions on the web is a problem rooted in code, not finance, and we want to help put more websites in business.</description>
+ <summary>Stripe is a simple, developer-friendly way to accept payments online. We believe that enabling transactions on the web is a problem rooted in code, not finance, and we want to help put more websites in business.</summary>
+ <language>en-US</language>
+ <projectUrl>https://github.com/hoppio/stripe-dotnet</projectUrl>
+ <licenseUrl>https://github.com/hoppio/stripe-dotnet/raw/master/LICENSE.txt</licenseUrl>
+ <iconUrl>https://github.com/hoppio/stripe-dotnet/raw/master/nuget/Stripe.Logo.png</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <tags>payment gateway rest api .net40</tags>
+ <dependencies>
+ <dependency id="RestSharp" />
+ </dependencies>
+ </metadata>
+</package>
View
12 test/Stripe.Tests/Stripe.Tests.csproj
@@ -31,14 +31,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="nunit.framework">
- <HintPath>..\..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="nunit.mocks">
- <HintPath>..\..\packages\NUnit.2.5.10.11092\lib\nunit.mocks.dll</HintPath>
- </Reference>
- <Reference Include="pnunit.framework">
- <HintPath>..\..\packages\NUnit.2.5.10.11092\lib\pnunit.framework.dll</HintPath>
+ <Reference Include="nunit.framework, Version=2.5.9.10348, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
@@ -57,7 +52,6 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
- <None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Stripe.csproj">
View
4 test/Stripe.Tests/packages.config
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="NUnit" version="2.5.10.11092" />
-</packages>
Please sign in to comment.
Something went wrong with that request. Please try again.