Skip to content

Commit

Permalink
Upgrade GeoIP2 and NUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Dec 4, 2015
1 parent 87e4bf3 commit e6fc059
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ language: csharp

before_install:
- nuget restore MaxMind.MinFraud.sln
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
- nuget install NUnit.Console -Version 3.0.0

script:
- xbuild /p:TargetFrameworkVersion="v4.5"
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./MaxMind.MinFraud.UnitTest/bin/Debug/MaxMind.MinFraud.UnitTest.dll
- mono ./NUnit.Console.3.0.0/tools/nunit3-console.exe ./MaxMind.MinFraud.UnitTest/bin/Debug/MaxMind.MinFraud.UnitTest.dll

sudo: false

Expand Down
8 changes: 4 additions & 4 deletions MaxMind.MinFraud.UnitTest/MaxMind.MinFraud.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<HintPath>..\packages\MaxMind.Db.1.2.0\lib\net40\MaxMind.Db.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MaxMind.GeoIP2, Version=2.3.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>..\packages\MaxMind.GeoIP2.2.4.0\lib\net40\MaxMind.GeoIP2.dll</HintPath>
<Reference Include="MaxMind.GeoIP2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>..\packages\MaxMind.GeoIP2.2.5.0\lib\net452\MaxMind.GeoIP2.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
Expand All @@ -64,8 +64,8 @@
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
<Reference Include="nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="RichardSzalay.MockHttp, Version=1.2.1.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
4 changes: 2 additions & 2 deletions MaxMind.MinFraud.UnitTest/packages.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MaxMind.Db" version="1.2.0" targetFramework="net452" />
<package id="MaxMind.GeoIP2" version="2.4.0" targetFramework="net452" />
<package id="MaxMind.GeoIP2" version="2.5.0" targetFramework="net452" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net452" />
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net452" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net452" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net452" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net452" />
<package id="NUnit" version="2.6.4" targetFramework="net452" />
<package id="NUnit" version="3.0.1" targetFramework="net452" />
<package id="RichardSzalay.MockHttp" version="1.2.1" targetFramework="net452" />
</packages>
4 changes: 2 additions & 2 deletions MaxMind.MinFraud/MaxMind.MinFraud.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<HintPath>..\packages\MaxMind.Db.1.2.0\lib\net40\MaxMind.Db.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MaxMind.GeoIP2, Version=2.3.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>..\packages\MaxMind.GeoIP2.2.4.0\lib\net40\MaxMind.GeoIP2.dll</HintPath>
<Reference Include="MaxMind.GeoIP2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=66afa4cc5ae853ac, processorArchitecture=MSIL">
<HintPath>..\packages\MaxMind.GeoIP2.2.5.0\lib\net452\MaxMind.GeoIP2.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
Expand Down
6 changes: 3 additions & 3 deletions MaxMind.MinFraud/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0")]
[assembly: AssemblyInformationalVersion("0.2.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0")]
[assembly: AssemblyInformationalVersion("0.3.0")]
2 changes: 1 addition & 1 deletion MaxMind.MinFraud/Response/GeoIP2Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class GeoIP2Country : Country
[JsonProperty("is_high_risk")]
public bool? IsHighRisk { get; internal set; }

internal void SetLocales(List<string> locales) => base.Locales = locales;
internal void SetLocales(IEnumerable<string> locales) => base.Locales = locales;

/// <summary>
/// Returns a string that represents the current object.
Expand Down
7 changes: 4 additions & 3 deletions MaxMind.MinFraud/Response/IPAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ public sealed class IPAddress : InsightsResponse
[JsonProperty("risk")]
public double? Risk { get; internal set; }

internal new void SetLocales(List<string> locales)
internal new void SetLocales(IEnumerable<string> locales)
{
base.SetLocales(locales);
Country.SetLocales(locales);
var l = new List<string>(locales);
base.SetLocales(l);
Country.SetLocales(l);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion MaxMind.MinFraud/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MaxMind.Db" version="1.2.0" targetFramework="net452" />
<package id="MaxMind.GeoIP2" version="2.4.0" targetFramework="net452" />
<package id="MaxMind.GeoIP2" version="2.5.0" targetFramework="net452" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net452" />
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net452" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net452" />
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ os: Visual Studio 2015

before_build:
- nuget restore -verbosity detailed
- nuget install NUnit.Console -version 3.0.0

install:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%

test_script:
- NUnit.Console.3.0.0\tools\nunit3-console.exe ".\MaxMind.MinFraud.UnitTest\bin\Debug\MaxMind.MinFraud.UnitTest.dll"

build:
verbosity: minimal

Expand Down
6 changes: 6 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release Notes
=============

0.3.0 (2015-12-04)
------------------

* Update `MaxMind.GeoIP2` to 2.5.0. This removes the BCL dependency.
* Upgrade to NUnit 3.

0.2.0 (2015-09-23)
------------------

Expand Down

0 comments on commit e6fc059

Please sign in to comment.