From 8b8a69bc8bf98d8af22f663ba196aeb81ec5f552 Mon Sep 17 00:00:00 2001 From: Khalid Abuhakmeh Date: Fri, 14 Sep 2018 13:55:59 -0400 Subject: [PATCH 1/8] Target at least .NET 4.6.2 and Upgrade NEST to 6.3 --- samples/Range.Web.Http/Range.Web.Http.csproj | 6 ++---- src/Filter.Nest/Filter.Nest.csproj | 11 ++++++----- src/Filter.Nest/packages.config | 4 ++-- src/Filter/Filter.csproj | 2 +- src/Range.Web.Http/Range.Web.Http.csproj | 3 ++- src/Range/Range.csproj | 3 ++- tests/Filter.Nest.Tests/Filter.Nest.Tests.csproj | 10 +++++----- tests/Filter.Nest.Tests/packages.config | 4 ++-- tests/Filter.Tests/Filter.Tests.csproj | 3 ++- tests/Range.Tests/Range.Tests.csproj | 2 +- 10 files changed, 25 insertions(+), 23 deletions(-) diff --git a/samples/Range.Web.Http/Range.Web.Http.csproj b/samples/Range.Web.Http/Range.Web.Http.csproj index 039c71a..0d5bf26 100755 --- a/samples/Range.Web.Http/Range.Web.Http.csproj +++ b/samples/Range.Web.Http/Range.Web.Http.csproj @@ -13,13 +13,14 @@ Properties Range.Web.Http Range.Web.Http - v4.5 + v4.6.2 false true + latest true @@ -76,9 +77,6 @@ ..\..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.2\lib\net45\System.Web.Http.WebHost.dll - - - diff --git a/src/Filter.Nest/Filter.Nest.csproj b/src/Filter.Nest/Filter.Nest.csproj index 98ef8d2..94aa7a6 100755 --- a/src/Filter.Nest/Filter.Nest.csproj +++ b/src/Filter.Nest/Filter.Nest.csproj @@ -9,9 +9,10 @@ Properties RimDev.Filter.Nest RimDev.Filter.Nest - v4.5 + v4.6.2 512 + latest true @@ -31,12 +32,12 @@ 4 - - ..\..\packages\Elasticsearch.Net.2.4.5\lib\net45\Elasticsearch.Net.dll + + ..\..\packages\Elasticsearch.Net.6.3.0\lib\net461\Elasticsearch.Net.dll True - - ..\..\packages\NEST.2.4.5\lib\net45\Nest.dll + + ..\..\packages\NEST.6.3.0\lib\net461\Nest.dll True diff --git a/src/Filter.Nest/packages.config b/src/Filter.Nest/packages.config index 73ff1c5..e45c038 100755 --- a/src/Filter.Nest/packages.config +++ b/src/Filter.Nest/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file diff --git a/src/Filter/Filter.csproj b/src/Filter/Filter.csproj index 070fa70..9d7e262 100755 --- a/src/Filter/Filter.csproj +++ b/src/Filter/Filter.csproj @@ -9,7 +9,7 @@ Properties RimDev.Filter RimDev.Filter - v4.5 + v4.6.2 512 diff --git a/src/Range.Web.Http/Range.Web.Http.csproj b/src/Range.Web.Http/Range.Web.Http.csproj index 00a8e65..0705aab 100755 --- a/src/Range.Web.Http/Range.Web.Http.csproj +++ b/src/Range.Web.Http/Range.Web.Http.csproj @@ -9,8 +9,9 @@ Properties RimDev.Filter.Range.Web.Http RimDev.Filter.Range.Web.Http - v4.5 + v4.6.2 512 + latest true diff --git a/src/Range/Range.csproj b/src/Range/Range.csproj index dcaf785..d6b0ad6 100755 --- a/src/Range/Range.csproj +++ b/src/Range/Range.csproj @@ -9,8 +9,9 @@ Properties RimDev.Filter.Range RimDev.Filter.Range - v4.5 + v4.6.2 512 + latest true diff --git a/tests/Filter.Nest.Tests/Filter.Nest.Tests.csproj b/tests/Filter.Nest.Tests/Filter.Nest.Tests.csproj index 484bb91..eb5e23e 100755 --- a/tests/Filter.Nest.Tests/Filter.Nest.Tests.csproj +++ b/tests/Filter.Nest.Tests/Filter.Nest.Tests.csproj @@ -11,7 +11,7 @@ Properties Filter.Nest.Tests Filter.Nest.Tests - v4.6.1 + v4.6.2 512 @@ -34,16 +34,16 @@ 4 - - ..\..\packages\Elasticsearch.Net.2.4.5\lib\net46\Elasticsearch.Net.dll + + ..\..\packages\Elasticsearch.Net.6.3.0\lib\net461\Elasticsearch.Net.dll True ..\..\packages\elasticsearch-inside.2.3.5\lib\net451\ElasticsearchInside.dll True - - ..\..\packages\NEST.2.4.5\lib\net46\Nest.dll + + ..\..\packages\NEST.6.3.0\lib\net461\Nest.dll True diff --git a/tests/Filter.Nest.Tests/packages.config b/tests/Filter.Nest.Tests/packages.config index 6092354..615ba0b 100755 --- a/tests/Filter.Nest.Tests/packages.config +++ b/tests/Filter.Nest.Tests/packages.config @@ -1,8 +1,8 @@  - + - + diff --git a/tests/Filter.Tests/Filter.Tests.csproj b/tests/Filter.Tests/Filter.Tests.csproj index 0d09a75..1576030 100755 --- a/tests/Filter.Tests/Filter.Tests.csproj +++ b/tests/Filter.Tests/Filter.Tests.csproj @@ -12,9 +12,10 @@ Properties RimDev.Filter.Tests RimDev.Filter.Tests - v4.5 + v4.6.2 512 0af85866 + latest true diff --git a/tests/Range.Tests/Range.Tests.csproj b/tests/Range.Tests/Range.Tests.csproj index 57954e8..91d21fe 100755 --- a/tests/Range.Tests/Range.Tests.csproj +++ b/tests/Range.Tests/Range.Tests.csproj @@ -12,7 +12,7 @@ Properties RimDev.Filter.Range.Tests RimDev.Filter.Range.Tests - v4.5 + v4.6.2 512 2fbf3947 From b8bac10bade3200c10f39befb1ce688243a4cbeb Mon Sep 17 00:00:00 2001 From: Khalid Abuhakmeh Date: Fri, 14 Sep 2018 14:33:25 -0400 Subject: [PATCH 2/8] Added Extension methods to ask for numeric or date ranges --- src/Filter.Nest/Filter.Nest.csproj | 6 ++ src/Filter.Nest/FilterLogic.cs | 6 ++ src/Range/Range.cs | 33 +++++++++++ .../Filter.Nest.Tests.csproj | 29 ++++++---- tests/Filter.Nest.Tests/packages.config | 14 +++-- tests/Filter.Tests/Filter.Tests.csproj | 32 ++++++---- .../Generic/IEnumerable`1ExtensionsTests.cs | 4 +- tests/Filter.Tests/packages.config | 14 +++-- tests/Range.Tests/Generic/Range`1Tests.cs | 58 +++++++++++++------ tests/Range.Tests/Range.Tests.csproj | 32 ++++++---- tests/Range.Tests/RangeTests.cs | 8 +-- tests/Range.Tests/packages.config | 14 +++-- 12 files changed, 178 insertions(+), 72 deletions(-) diff --git a/src/Filter.Nest/Filter.Nest.csproj b/src/Filter.Nest/Filter.Nest.csproj index 94aa7a6..66007e8 100755 --- a/src/Filter.Nest/Filter.Nest.csproj +++ b/src/Filter.Nest/Filter.Nest.csproj @@ -65,6 +65,12 @@ + + + {0e804077-79b6-4e0f-a4bb-ad5f6ec194b3} + Range + + - $(MSBuildThisFileDirectory)Build.targets - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - diff --git a/build/Build.Version.targets b/build/Build.Version.targets deleted file mode 100644 index f8c0f30..0000000 --- a/build/Build.Version.targets +++ /dev/null @@ -1,36 +0,0 @@ - - - - 0 - 13 - 1 - - - - $(MajorVersion).$(MinorVersion) - $(MajorVersion).$(MinorVersion).$(PatchVersion) - - - - - - <_Parameter1>$(AssemblyVersion) - - - <_Parameter1>$(PackageVersion) - - - - - - - - - - - - GenerateAssemblyInfo; - $(BuildDependsOn); - - - diff --git a/build/Build.msbuild b/build/Build.msbuild deleted file mode 100644 index 1050215..0000000 --- a/build/Build.msbuild +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Release - - true - - $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\')) - $(RootPath).nuget\nuget.exe - $(RootPath)artifacts - - 0.0.0 - - - - - - Configuration=$(Configuration); - MvcBuildViews=true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $(GitVersion_NuGetVersion) - 0.0.0 - - - - - - - - - - - - - - - - - diff --git a/build/Build.targets b/build/Build.targets deleted file mode 100644 index a8e027b..0000000 --- a/build/Build.targets +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/build/Xunit.targets b/build/Xunit.targets deleted file mode 100644 index b0c0502..0000000 --- a/build/Xunit.targets +++ /dev/null @@ -1,24 +0,0 @@ - - - - false - - - - - - - - - - - - - - - -