Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit d9a30ea

Browse files
committed
Merge pull request #39 from asbjornu/nuget
NuGet package
2 parents 0707d1f + a247242 commit d9a30ea

File tree

7 files changed

+162
-147
lines changed

7 files changed

+162
-147
lines changed
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
using NUnit.Framework;
2-
3-
using SharpRaven.Logging.Filters;
4-
5-
namespace SharpRaven.UnitTests.Logging
6-
{
7-
[TestFixture]
8-
public class CreditCardFilterTests : FilterTestsBase<CreditCardFilter>
9-
{
10-
[Test]
11-
public void InvalidCreditCardNumber_IsNotScrubbed()
12-
{
13-
InvalidValueIsNotScrubbed("1234-5678-9101-1121");
14-
}
15-
16-
17-
[Test]
18-
public void ValidCreditCardNumber_IsScrubbed()
19-
{
20-
ValidValueIsScrubbed("5271-1902-4264-3112");
21-
}
22-
}
1+
using NUnit.Framework;
2+
3+
using SharpRaven.Logging.Filters;
4+
5+
namespace SharpRaven.UnitTests.Logging
6+
{
7+
[TestFixture]
8+
public class CreditCardFilterTests : FilterTestsBase<CreditCardFilter>
9+
{
10+
[Test]
11+
public void InvalidCreditCardNumber_IsNotScrubbed()
12+
{
13+
InvalidValueIsNotScrubbed("1234-5678-9101-1121");
14+
}
15+
16+
17+
[Test]
18+
public void ValidCreditCardNumber_IsScrubbed()
19+
{
20+
ValidValueIsScrubbed("5271-1902-4264-3112");
21+
}
22+
}
2323
}
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
using NUnit.Framework;
2-
3-
using SharpRaven.Logging.Filters;
4-
5-
namespace SharpRaven.UnitTests.Logging
6-
{
7-
[TestFixture]
8-
public class PhoneNumberFilterTests : FilterTestsBase<PhoneNumberFilter>
9-
{
10-
[Test]
11-
public void InvalidPhoneNumber_IsNotScrubbed()
12-
{
13-
base.InvalidValueIsNotScrubbed("1531");
14-
}
15-
16-
17-
[Test]
18-
public void ValidPhoneNumber_IsScrubbed()
19-
{
20-
ValidValueIsScrubbed("55518231234");
21-
}
22-
}
1+
using NUnit.Framework;
2+
3+
using SharpRaven.Logging.Filters;
4+
5+
namespace SharpRaven.UnitTests.Logging
6+
{
7+
[TestFixture]
8+
public class PhoneNumberFilterTests : FilterTestsBase<PhoneNumberFilter>
9+
{
10+
[Test]
11+
public void InvalidPhoneNumber_IsNotScrubbed()
12+
{
13+
base.InvalidValueIsNotScrubbed("1531");
14+
}
15+
16+
17+
[Test]
18+
public void ValidPhoneNumber_IsScrubbed()
19+
{
20+
ValidValueIsScrubbed("55518231234");
21+
}
22+
}
2323
}
Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{E1DBEBBF-9448-4D99-B378-2B8CF1629F31}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>SharpRaven.UnitTests</RootNamespace>
11-
<AssemblyName>SharpRaven.UnitTests</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
15-
<RestorePackages>true</RestorePackages>
16-
<TargetFrameworkProfile />
17-
</PropertyGroup>
18-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19-
<DebugSymbols>true</DebugSymbols>
20-
<DebugType>full</DebugType>
21-
<Optimize>false</Optimize>
22-
<OutputPath>bin\Debug\</OutputPath>
23-
<DefineConstants>DEBUG;TRACE</DefineConstants>
24-
<ErrorReport>prompt</ErrorReport>
25-
<WarningLevel>4</WarningLevel>
26-
</PropertyGroup>
27-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
37-
<SpecificVersion>False</SpecificVersion>
38-
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\net40\Newtonsoft.Json.dll</HintPath>
39-
</Reference>
40-
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
41-
<SpecificVersion>False</SpecificVersion>
42-
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
43-
</Reference>
44-
<Reference Include="System" />
45-
</ItemGroup>
46-
<ItemGroup>
47-
<EmbeddedResource Include="schema.json" />
48-
<Compile Include="Logging\CreditCardFilterTests.cs" />
49-
<Compile Include="Logging\FilterTestsBase.cs" />
50-
<Compile Include="Logging\PhoneNumberFilterTests.cs" />
51-
<Compile Include="Logging\SocialSecurityFilterTests.cs" />
52-
<Compile Include="SchemaHelper.cs" />
53-
<Compile Include="SerializationTests.cs" />
54-
<Compile Include="SchemaTests.cs" />
55-
<Compile Include="Properties\AssemblyInfo.cs" />
56-
<Compile Include="TestHelper.cs" />
57-
</ItemGroup>
58-
<ItemGroup>
59-
<None Include="packages.config" />
60-
</ItemGroup>
61-
<ItemGroup>
62-
<ProjectReference Include="..\SharpRaven\SharpRaven.csproj">
63-
<Project>{CC80A2E1-AE39-44DE-8DA3-4EEF42F90FB1}</Project>
64-
<Name>SharpRaven</Name>
65-
</ProjectReference>
66-
</ItemGroup>
67-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
68-
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
69-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
70-
Other similar extension points exist, see Microsoft.Common.targets.
71-
<Target Name="BeforeBuild">
72-
</Target>
73-
<Target Name="AfterBuild">
74-
</Target>
75-
-->
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{E1DBEBBF-9448-4D99-B378-2B8CF1629F31}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>SharpRaven.UnitTests</RootNamespace>
11+
<AssemblyName>SharpRaven.UnitTests</AssemblyName>
12+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
15+
<RestorePackages>true</RestorePackages>
16+
<TargetFrameworkProfile />
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
37+
<SpecificVersion>False</SpecificVersion>
38+
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\net40\Newtonsoft.Json.dll</HintPath>
39+
</Reference>
40+
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
41+
<SpecificVersion>False</SpecificVersion>
42+
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
43+
</Reference>
44+
<Reference Include="System" />
45+
</ItemGroup>
46+
<ItemGroup>
47+
<EmbeddedResource Include="schema.json" />
48+
<Compile Include="Logging\CreditCardFilterTests.cs" />
49+
<Compile Include="Logging\FilterTestsBase.cs" />
50+
<Compile Include="Logging\PhoneNumberFilterTests.cs" />
51+
<Compile Include="Logging\SocialSecurityFilterTests.cs" />
52+
<Compile Include="SchemaHelper.cs" />
53+
<Compile Include="SerializationTests.cs" />
54+
<Compile Include="SchemaTests.cs" />
55+
<Compile Include="Properties\AssemblyInfo.cs" />
56+
<Compile Include="TestHelper.cs" />
57+
</ItemGroup>
58+
<ItemGroup>
59+
<None Include="packages.config" />
60+
</ItemGroup>
61+
<ItemGroup>
62+
<ProjectReference Include="..\SharpRaven\SharpRaven.csproj">
63+
<Project>{CC80A2E1-AE39-44DE-8DA3-4EEF42F90FB1}</Project>
64+
<Name>SharpRaven</Name>
65+
</ProjectReference>
66+
</ItemGroup>
67+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
68+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
69+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
70+
Other similar extension points exist, see Microsoft.Common.targets.
71+
<Target Name="BeforeBuild">
72+
</Target>
73+
<Target Name="AfterBuild">
74+
</Target>
75+
-->
7676
</Project>

SharpRaven/Properties/AssemblyInfo.cs

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,24 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
85
[assembly: AssemblyTitle("SharpRaven")]
9-
[assembly: AssemblyDescription("A Sentry Client written in C# 4.0")]
6+
[assembly: AssemblyDescription("SharpRaven is a C# client for Sentry https://www.getsentry.com")]
107
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
8+
[assembly: AssemblyCompany("Sentry")]
129
[assembly: AssemblyProduct("SharpRaven")]
13-
[assembly: AssemblyCopyright("Copyright © 2012")]
10+
[assembly: AssemblyCopyright("Copyright © Sentry 2013")]
1411
[assembly: AssemblyTrademark("")]
1512
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
2013
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
2314
[assembly: Guid("b5683941-1254-484e-b074-87cedd4fc78e")]
2415

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.7.8.0")]
16+
// AssemblyVersion the most formal version number and is akin to "API Version". It doesn't need to change unless there's breaking changes.
17+
[assembly: AssemblyVersion("1.0.0.0")]
18+
19+
// AssemblyFileVersion is more informal and can be increased more rapidly and with less consideration than AssemblyVersion.
3620
[assembly: AssemblyFileVersion("1.0.0.0")]
21+
22+
// AssemblyInformationalVersion is even more informal than AssemblyFileVersion and doesn't need a certain format. It will be used as the $version$ replacement string in NuGet and can contain suffixes like "-alpha".
23+
// [assembly: AssemblyInformationalVersion("0.8.0.0")]
24+
3725
[assembly: InternalsVisibleTo("SharpRaven.UnitTests")]

SharpRaven/SharpRaven.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -68,6 +68,9 @@
6868
</ItemGroup>
6969
<ItemGroup>
7070
<None Include="packages.config" />
71+
<None Include="SharpRaven.nuspec">
72+
<SubType>Designer</SubType>
73+
</None>
7174
</ItemGroup>
7275
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7376
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

SharpRaven/SharpRaven.nuspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata>
4+
<id>SharpRaven</id>
5+
<version>$version$</version>
6+
<title>.NET client for Sentry (getsentry.com)</title>
7+
<authors>David Cramer, GetSentry.com</authors>
8+
<owners>jsk, asbjornu, gmaclellan</owners>
9+
<licenseUrl>https://github.com/getsentry/raven-csharp/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>https://github.com/getsentry/raven-csharp</projectUrl>
11+
<iconUrl>https://www.getsentry.com/_static/getsentry/images/favicon.png</iconUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>Raven is a C# client for Sentry (getsentry.com and github.com/getsentry/sentry)</description>
14+
<releaseNotes>$releaseNotes$</releaseNotes>
15+
<copyright>Copyright 2013 getsentry.com</copyright>
16+
<tags>raven sentry logging</tags>
17+
<dependencies>
18+
<dependency id="Newtonsoft.Json" version="4.5.11" />
19+
</dependencies>
20+
</metadata>
21+
<files>
22+
<file src="SharpRaven\bin\Release\SharpRaven.*" target="lib" />
23+
</files>
24+
</package>

packages/repositories.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<repositories>
3-
<repository path="..\SharpRaven.UnitTests\packages.config" />
4-
<repository path="..\SharpRaven\packages.config" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<repositories>
3+
<repository path="..\SharpRaven.UnitTests\packages.config" />
4+
<repository path="..\SharpRaven\packages.config" />
55
</repositories>

0 commit comments

Comments
 (0)