embulk-input-elasticsearch-nosslverify 0.3.6 → 0.3.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: cce837140ec443edf4892a250708a8c1c1961d08fc8fb61c4137ff06198c67fd
4
- data.tar.gz: 23463d69c4349aa8bd528d035c05eec0a3643c0b5f6f271949c091166a981821
3
+ metadata.gz: 0b81cf62aa644f67f2f97c33bebd609a14af1fd6d8a4a1a88653a973665d20f0
4
+ data.tar.gz: a497f370420cc2c2aa29726492e09f53063bab9105f98f179d48d9d973914d41
5
5
  SHA512:
6
- metadata.gz: 2bdd8090f15fb4fee727d041ab410173939080fe73f1d3af6bf3e4edf9aaf617b90677c246c8b9eab69c42c9c81f3ae69bfe3e3a7fc0a3218390e695b600fcf7
7
- data.tar.gz: 2ced32de36e5830f1ec0468fccad5f60a507b2033a231b4a3bc331d071632da236b86b625d756ef37d8151af4e44afbb8539ae3c6e1ab55ff22af30ef9097f29
6
+ metadata.gz: cb80698b242a2cacd21dc340ef0bf061b26c831ae6e1c6502e95e6f9e47d78319895cc75cd038f1a5bf18dd8be3b12384e7b83655f11576d93b0efecba2ef629
7
+ data.tar.gz: db7da82150543e50747e3aa405104026e031bb9e24ea48ed1f9bdb508258157906cb697904b254e9bcc3363182f3dee8a70c9ae509429cff4d7e18c6e1458f77
@@ -0,0 +1,22 @@
1
+ name: Ruby
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v1
12
+ - name: Set up Ruby 2.6
13
+ uses: actions/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.6.x
16
+ - name: Build and test with Rake
17
+ run: |
18
+ curl -o embulk.jar --create-dirs -L "http://dl.embulk.org/embulk-latest.jar"
19
+ chmod +x embulk.jar
20
+ ./embulk.jar gem install bundler
21
+ ./embulk.jar bundle install --path vendor/bundle
22
+ ./embulk.jar bundle exec rake test
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-elasticsearch-nosslverify"
4
- spec.version = "0.3.6"
4
+ spec.version = "0.3.7"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Elasticsearch input plugin for Embulk"
7
7
  spec.description = "Loads records from Elasticsearch. parallel query support."
@@ -17,6 +17,7 @@ module Embulk
17
17
  "index" => config.param("index", :string),
18
18
  "reload_connections" => config.param("reload_connections", :bool, default: true),
19
19
  "reload_on_failure" => config.param("reload_on_failure", :bool, default: false),
20
+ "ignore_not_found" => config.param("ignore_not_found", :bool, default: true),
20
21
  "index_type" => config.param("index_type", :string, default: nil),
21
22
  "retry_on_failure" => config.param("retry_on_failure", :integer, default: 5),
22
23
  "per_size" => config.param("per_size", :integer, default: 1000),
@@ -14,6 +14,7 @@ module Embulk
14
14
  @sort = task['sort']
15
15
  @limit_size = task['limit_size']
16
16
  @retry_on_failure = task['retry_on_failure']
17
+ @ignore_not_found = task['ignore_not_found']
17
18
  @client = create_client(
18
19
  nodes: task['nodes'],
19
20
  reload_connections: task['reload_connections'],
@@ -67,6 +68,11 @@ module Embulk
67
68
  retries = 0
68
69
  begin
69
70
  yield if block_given?
71
+ rescue Faraday::ResourceNotFound => e
72
+ if (@ignore_not_found)
73
+ return
74
+
75
+ end
70
76
  rescue => e
71
77
  if (@retry_on_failure == 0 || retries < @retry_on_failure)
72
78
  retries += 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-elasticsearch-nosslverify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/workflows/ruby.yml"
104
105
  - ".gitignore"
105
106
  - ".ruby-version"
106
107
  - ".travis.yml"