elasticsearch-query-builder 0.6.6 → 0.6.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d369d991b760864c3608134e246c3c7b01168c61c879d80652f28463f9d3414
|
4
|
+
data.tar.gz: aed8e425dcb57968efa8f05a04a889c4cdfbb986adb4c7e854548625536f2c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef2945d5c24253305449b9d568eee6f46e1cb76b0c1b7cafc9d5525c657fba57139840cdb0ca9ee6f86b82ae6f06508b6196c6e274dfa05602c97d2359b8d752
|
7
|
+
data.tar.gz: 3f19f4b5c53279f04128ad893c219372c922355be613245b91def28f88290d03888c65b8b2c3f0b9b210ef8a33a711776da2cc197c5645b5f1dc85b2194a51ae
|
@@ -106,7 +106,7 @@ module ElasticSearch
|
|
106
106
|
def add_clause(path, body)
|
107
107
|
return if added?(path, body)
|
108
108
|
|
109
|
-
body = body.compact
|
109
|
+
body = body.compact if body.respond_to?(:compact)
|
110
110
|
if !root_path?(path) && body.is_a?(Array)
|
111
111
|
existing_content = opts.dig(*path) || []
|
112
112
|
opts.dig(*path.first(path.size - 1)).store(path.last, body + existing_content)
|