elasticsearch-query-builder 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23bc729624f735214cf04f8b103df9f09b98434020e1331c8e56aa5ba97e5ee4
4
- data.tar.gz: f8850c14ea0c41edc4c37a2a114b0acd5d85538ced4ed50b5f2cec9add501d74
3
+ metadata.gz: 9d369d991b760864c3608134e246c3c7b01168c61c879d80652f28463f9d3414
4
+ data.tar.gz: aed8e425dcb57968efa8f05a04a889c4cdfbb986adb4c7e854548625536f2c28
5
5
  SHA512:
6
- metadata.gz: 74542a954265226e6a964428e7f4d67118d46d96df0636a9256f17b3ef4436271f083752fd6fb164f3e205bf5a22f244686e3db4aa085f2436eb88bf93897644
7
- data.tar.gz: 47d725fd9043c209e1b7cb0654bf11ebd1713dafb701c656d304bef0af61bf6537cbeec62e7bbbfb75dff2892587a84bcab62dc553b07e72b4c3db4de81279f5
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ElasticSearch
4
4
  class QueryBuilder
5
- VERSION = '0.6.6'
5
+ VERSION = '0.6.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-query-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kickser