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 +4 -4
- data/README.md +1 -1
- data/lib/arelastic/aggregations/filters.rb +1 -1
- data/test/arelastic/aggregations/filters_test.rb +22 -18
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb1b9ff52106f04b72dbe79ab103f853951ef7e8e9a4a23d6f7e1af1add83013
|
4
|
+
data.tar.gz: bcf8854486763769a929e5fc1b0d9826098feb5ca22b05601dc5a20ec28b08bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6bee6d6b9a889d2af4e41de061068b1c7f574f6ec6e98a8b8add6e1b213a55994ef3cf42851fa1507f382f1f53089d94907f0582512b0cbaee268a48b346fda
|
7
|
+
data.tar.gz: 73da8e19fb9c8c072d122c16a109b1426cdedd8787255e8dd785e64b3fa0d220fecf1388ae5fcd3e8274c39aeac772211a1e431fac5b8828b3f3c8eef348e8b6
|
data/README.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
[![
|
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,18 +9,20 @@ class Arelastic::Aggregations::FiltersTest < Minitest::Test
|
|
9
9
|
|
10
10
|
expected = {
|
11
11
|
"foo" => {
|
12
|
-
"filters" =>
|
13
|
-
|
14
|
-
|
15
|
-
"
|
12
|
+
"filters" => {
|
13
|
+
"filters" => [
|
14
|
+
{
|
15
|
+
"exists" => {
|
16
|
+
"field" => "color"
|
17
|
+
},
|
16
18
|
},
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
"
|
46
|
-
"
|
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.
|
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-
|
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:
|
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:
|
168
|
+
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.7.
|
171
|
+
rubygems_version: 2.7.6
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Elastic Search query builder
|