metacrunch-elasticsearch 4.1.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -8
- data/Gemfile +1 -1
- data/Readme.md +3 -2
- data/lib/metacrunch/elasticsearch/source.rb +2 -2
- data/lib/metacrunch/elasticsearch/version.rb +1 -1
- data/metacrunch-elasticsearch.gemspec +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02614d3061d72be9a70250f462610b60fdf8cb06dfefe850741e852baa5b09ac
|
4
|
+
data.tar.gz: bbae9023c2444706dd8b7cf7c3103c46a6515b062be8d20820be88aa0cf8cfed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc0b6b97caa0e621b509e8e3695f51bba7668cfc79606be88a9fecbff0a6196df05bed12b8636a51b822ae83653ada990a8adb77d0409b83e178f782a27c913d
|
7
|
+
data.tar.gz: 7ae72bda460570e586a5165ac93f8b1c059c05f02f026c0f714057537b45f0dbf23dad80dd9242b8cc673d7db5ee7f34c7705ae2e4ba9de616c8cf0527703fdc
|
data/.circleci/config.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
ruby: circleci/ruby@1.1.1
|
5
|
+
|
6
6
|
jobs:
|
7
7
|
build:
|
8
8
|
docker:
|
9
|
-
- image: circleci/ruby:2.
|
10
|
-
- image: docker.elastic.co/elasticsearch/elasticsearch:
|
9
|
+
- image: circleci/ruby:2.6-node-browsers
|
10
|
+
- image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
|
11
11
|
environment:
|
12
12
|
- "discovery.type=single-node"
|
13
13
|
- "xpack.security.enabled=false"
|
@@ -43,4 +43,3 @@ jobs:
|
|
43
43
|
- run:
|
44
44
|
name: Upload test coverage report to CodeClimate
|
45
45
|
command: ./cc-test-reporter after-build --exit-code $?
|
46
|
-
|
data/Gemfile
CHANGED
data/Readme.md
CHANGED
@@ -8,13 +8,15 @@ metacrunch-elasticsearch
|
|
8
8
|
|
9
9
|
This is the official [Elasticsearch](https://www.elastic.co) package for the [metacrunch ETL toolkit](https://github.com/ubpb/metacrunch).
|
10
10
|
|
11
|
+
*NOTE: metacrunch-elasticsearch 5.x requires Elasticsearch 7.x. For older versions of Elasticsearch try metacrunch-elasticsearch 4.x*
|
12
|
+
|
11
13
|
Installation
|
12
14
|
------------
|
13
15
|
|
14
16
|
Include the gem in your `Gemfile`
|
15
17
|
|
16
18
|
```ruby
|
17
|
-
gem "metacrunch-elasticsearch", "~>
|
19
|
+
gem "metacrunch-elasticsearch", "~> 5.0.0"
|
18
20
|
```
|
19
21
|
|
20
22
|
and run `$ bundle install` to install it.
|
@@ -67,7 +69,6 @@ transformation ->(data) do
|
|
67
69
|
{
|
68
70
|
index: {
|
69
71
|
_index: "my-index",
|
70
|
-
_type: "my-type",
|
71
72
|
_id: data.delete(:id),
|
72
73
|
data: data
|
73
74
|
}
|
@@ -41,8 +41,8 @@ module Metacrunch
|
|
41
41
|
private
|
42
42
|
|
43
43
|
def call_total_hits_callback(result)
|
44
|
-
if @options[:total_hits_callback]&.respond_to?(:call) && result
|
45
|
-
@options[:total_hits_callback].call(
|
44
|
+
if @options[:total_hits_callback]&.respond_to?(:call) && total = result.dig("hits", "total", "value")
|
45
|
+
@options[:total_hits_callback].call(total)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metacrunch-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- René Sprotte
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,16 +30,16 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '7'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
description:
|
42
|
-
email:
|
40
|
+
version: '7'
|
41
|
+
description:
|
42
|
+
email:
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
@@ -61,7 +61,7 @@ homepage: http://github.com/ubpb/metacrunch-elasticsearch
|
|
61
61
|
licenses:
|
62
62
|
- MIT
|
63
63
|
metadata: {}
|
64
|
-
post_install_message:
|
64
|
+
post_install_message:
|
65
65
|
rdoc_options: []
|
66
66
|
require_paths:
|
67
67
|
- lib
|
@@ -76,9 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
signing_key:
|
79
|
+
rubygems_version: 3.1.4
|
80
|
+
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Elasticsearch package for the metacrunch ETL toolkit.
|
84
83
|
test_files: []
|