elastic-rails 1.0.3 → 1.0.4

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: ef1fb50bf5ddbde41f0e1bebb3bbe84ed4c1f415d2b118cadc4f0b2010764e12
4
- data.tar.gz: f57fc27dca3483ff579b7c92420266ac7bc720feaa96a1a24c4ead5f82023531
3
+ metadata.gz: 57425010a4ed0bb6ef3f1d82233503fe234e6c17fa5ac2361424c53987ea0568
4
+ data.tar.gz: b357bc3e4b2e13c243a0a671ce2fe75a96b292945390e93a49c1283959c75b25
5
5
  SHA512:
6
- metadata.gz: e6d15446f42c92f4eade16242ed4e7213326ae1226446ef5ad713a5a24af9079f375519b9d07c4ed063349abfa48eb29546404338f215e12aed2147edd4a0fcf
7
- data.tar.gz: 8b8dd96307b1e23e3a2dfda088b9f5af04ce3f78e975322c5d99da48701f375340c645fd12f0b467401c6837693fff3b3b40491ca27d41c30c9d7bd38009a90d
6
+ metadata.gz: fd6b5042e2c40c1a75dc8561571593bd734304b8b0aee7e14ea33a2b8055fcfb9a15409f2343cdbdc72d49f03be43324bef4d5474d3979e7d872cefb47de60d3
7
+ data.tar.gz: 13ea4a8691ce83ae7e175ed09626347a2a2e1e40280914014195f8c0d25d5fd77f4d977da98470ab8d6fe153574662bece1dbd6cc1ffdaaa1546a64a62de207d
@@ -29,7 +29,7 @@ module Elastic::Commands
29
29
  path = parse_nesting_path(_field)
30
30
  raise NotImplementedError, "nested fields not yet supported in sorting" if path
31
31
 
32
- node.add_sort(_field, _options)
32
+ node.add_sort(_field, **_options)
33
33
  end
34
34
 
35
35
  def parse_nesting_path(_field)
@@ -43,7 +43,7 @@ module Elastic::Dsl
43
43
  def aggregate_metric(_klass, _field, _options, _default_name, &_block)
44
44
  # TODO: detect nested name and wrap node
45
45
  name = _options.delete(:as) || sprintf(_default_name, _field)
46
- node = _klass.build(name, _field, _options)
46
+ node = _klass.build(name, _field, **_options)
47
47
  _block.call node unless _block.nil?
48
48
  aggregate node
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module Elastic
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch
@@ -200,7 +200,6 @@ files:
200
200
  - ".env"
201
201
  - ".gitignore"
202
202
  - ".rspec"
203
- - ".ruby-version"
204
203
  - ".travis.yml"
205
204
  - CODE_OF_CONDUCT.md
206
205
  - Gemfile
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.7