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 +4 -4
- data/lib/elastic/commands/build_sort_from_params.rb +1 -1
- data/lib/elastic/dsl/metric_builder.rb +1 -1
- data/lib/elastic/version.rb +1 -1
- metadata +2 -3
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57425010a4ed0bb6ef3f1d82233503fe234e6c17fa5ac2361424c53987ea0568
|
4
|
+
data.tar.gz: b357bc3e4b2e13c243a0a671ce2fe75a96b292945390e93a49c1283959c75b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/elastic/version.rb
CHANGED
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.
|
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:
|
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
|