arelastic 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef3b1158d5db01fba4396abb65ef1e2aa54bdd25282136ab10a3b8e3abf3be9e
4
- data.tar.gz: 80bdddc3f1f37e3568f56f204f272649edbd03470f44dbff77081e8263e36c9c
3
+ metadata.gz: bb1b9ff52106f04b72dbe79ab103f853951ef7e8e9a4a23d6f7e1af1add83013
4
+ data.tar.gz: bcf8854486763769a929e5fc1b0d9826098feb5ca22b05601dc5a20ec28b08bb
5
5
  SHA512:
6
- metadata.gz: 5c7e5caf0cf662e3cffb03b07485a73fe5fcfc49e49b1d93377858df81fbb22d5002f91f409b0ea65d9b37e5343c399387367b6db6fc6bcf95d1cfb35b64147e
7
- data.tar.gz: b85604fb9a3165447112476b72895bef64a583c689668df2707dedecd733f40156314a2fd3bb654a026fc1e02891e2bea0b07720ab00defa36b646a7668413ec
6
+ metadata.gz: c6bee6d6b9a889d2af4e41de061068b1c7f574f6ec6e98a8b8add6e1b213a55994ef3cf42851fa1507f382f1f53089d94907f0582512b0cbaee268a48b346fda
7
+ data.tar.gz: 73da8e19fb9c8c072d122c16a109b1426cdedd8787255e8dd785e64b3fa0d220fecf1388ae5fcd3e8274c39aeac772211a1e431fac5b8828b3f3c8eef348e8b6
data/README.md CHANGED
@@ -1 +1 @@
1
- [![Travis](https://secure.travis-ci.org/matthuhiggins/arelastic.png?rvm=1.9.3)](http://travis-ci.org/matthuhiggins/arelastic) [![Code Climate](https://codeclimate.com/github/matthuhiggins/arelastic/badges/gpa.svg)](https://codeclimate.com/github/matthuhiggins/arelastic)
1
+ [![Build Status](https://travis-ci.org/matthuhiggins/arelastic.svg?branch=master)](https://travis-ci.org/matthuhiggins/arelastic) [![Code Climate](https://codeclimate.com/github/matthuhiggins/arelastic/badges/gpa.svg)](https://codeclimate.com/github/matthuhiggins/arelastic)
@@ -9,7 +9,7 @@ module Arelastic
9
9
  end
10
10
 
11
11
  def as_elastic_aggregation
12
- {'filters' => convert_to_elastic(filters)}.merge(super)
12
+ {'filters' => {'filters' => convert_to_elastic(filters)}}.merge(super)
13
13
  end
14
14
  end
15
15
  end
@@ -9,18 +9,20 @@ class Arelastic::Aggregations::FiltersTest < Minitest::Test
9
9
 
10
10
  expected = {
11
11
  "foo" => {
12
- "filters" => [
13
- {
14
- "exists" => {
15
- "field" => "color"
12
+ "filters" => {
13
+ "filters" => [
14
+ {
15
+ "exists" => {
16
+ "field" => "color"
17
+ },
16
18
  },
17
- },
18
- {
19
- "exists" => {
20
- "field" => "price"
19
+ {
20
+ "exists" => {
21
+ "field" => "price"
22
+ }
21
23
  }
22
- }
23
- ]
24
+ ]
25
+ }
24
26
  }
25
27
  }
26
28
 
@@ -36,14 +38,16 @@ class Arelastic::Aggregations::FiltersTest < Minitest::Test
36
38
  expected = {
37
39
  "foo" => {
38
40
  "filters" => {
39
- "color_count" => {
40
- "exists" => {
41
- "field" => "color"
42
- }
43
- },
44
- "price_count" => {
45
- "exists" => {
46
- "field" => "price"
41
+ "filters" => {
42
+ "color_count" => {
43
+ "exists" => {
44
+ "field" => "color"
45
+ }
46
+ },
47
+ "price_count" => {
48
+ "exists" => {
49
+ "field" => "price"
50
+ }
47
51
  }
48
52
  }
49
53
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arelastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Higgins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Build Elastic Search queries with objects
14
14
  email: developer@matthewhiggins.com
@@ -160,15 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- version: 1.9.3
163
+ version: 2.4.0
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: 1.8.11
168
+ version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.7.3
171
+ rubygems_version: 2.7.6
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Elastic Search query builder