fluent-plugin-elasticsearch 4.1.1 → 4.1.2

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: 616365bcf32cc6d302718907d145639cbb4786b33cb8a837da24f3934cf7a837
4
- data.tar.gz: 77df51b64aa07d12b57b82a093f4a5b8cbd1c1bf9c5c82384163118c050c68cf
3
+ metadata.gz: 367f610faf1266994e676a07ca2fc391bf0951036f356fd4a95a6a7d7cce1b61
4
+ data.tar.gz: 56fc5e47f6dd8e63df03f6190fc0f3dfff2e1fae548b38cc9cdb328f75246ade
5
5
  SHA512:
6
- metadata.gz: ae68cc2f0a2abbf7cf7a4c11a9bb5dac9a9e09ba9c053109748c671acd304198b45ad949782691a28eadb418e15bc66f1ef16897f810c5f0b5dd0ce04dd7913e
7
- data.tar.gz: 484df0670840045d6c55bd1971142cf13a2a0c35cefc0ff96ada3259404d08529d97adbdd736bf9eaf99ad84c51d2124af1d0160c35042a736c875eef8aa5f3c
6
+ metadata.gz: 812b336dcf870a4dbb2ecfbc87304b8c6b6cfafb561d2cf6eece11f35e29e9aa484ab8365fa9245a578c51ec540fcaf09925dc68668820ce3ab7c71041720dd2
7
+ data.tar.gz: da2c1b8bbbdd364ff5a3df1214a54151a7e9e809230b12e75e06b42a0eb7df790124898cd6c137c82edede8c94f5e8adc9d7eea05134bff0a084d1de11b5269e
data/History.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### [Unreleased]
4
4
 
5
+ ### 4.1.2
6
+ - Use Hash#dig instead of Hash#[] on retrieving version information from Elasticsearch info API (#793)
7
+
5
8
  ### 4.1.1
6
9
  - Correct ILM explain on logstash_format case (#786)
7
10
 
data/README.md CHANGED
@@ -121,10 +121,12 @@ Current maintainers: @cosmo0920
121
121
 
122
122
  ## Requirements
123
123
 
124
- | fluent-plugin-elasticsearch | fluentd | ruby |
125
- |-------------------|---------|------|
126
- | >= 2.0.0 | >= v0.14.20 | >= 2.1 |
127
- | < 2.0.0 | >= v0.12.0 | >= 1.9 |
124
+ | fluent-plugin-elasticsearch | fluentd | ruby |
125
+ |:----------------------------:|:-----------:|:------:|
126
+ | >= 4.0.1 | >= v0.14.22 | >= 2.3 |
127
+ | >= 3.2.4 && < 4.0.1 | >= v0.14.22 | >= 2.1 |
128
+ | >= 2.0.0 && < 3.2.3 | >= v0.14.20 | >= 2.1 |
129
+ | < 2.0.0 | >= v0.12.0 | >= 1.9 |
128
130
 
129
131
  NOTE: For v0.12 version, you should use 1.x.y version. Please send patch into v0.12 branch if you encountered 1.x version's bug.
130
132
 
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'fluent-plugin-elasticsearch'
6
- s.version = '4.1.1'
6
+ s.version = '4.1.2'
7
7
  s.authors = ['diogo', 'pitr', 'Hiroshi Hatake']
8
8
  s.email = ['pitr.vern@gmail.com', 'me@diogoterror.com', 'cosmo0920.wp@gmail.com']
9
9
  s.description = %q{Elasticsearch output plugin for Fluent event collector}
@@ -461,7 +461,10 @@ EOC
461
461
 
462
462
  def detect_es_major_version
463
463
  @_es_info ||= client.info
464
- @_es_info["version"]["number"].to_i
464
+ unless version = @_es_info.dig("version", "number")
465
+ version = @default_elasticsearch_version
466
+ end
467
+ version.to_i
465
468
  end
466
469
 
467
470
  def client_library_version
@@ -707,7 +707,10 @@ class ElasticsearchOutputTest < Test::Unit::TestCase
707
707
  Fluent::Plugin::ElasticsearchOutput.module_eval(<<-CODE)
708
708
  def detect_es_major_version
709
709
  @_es_info ||= client.info
710
- @_es_info["version"]["number"].to_i
710
+ unless version = @_es_info.dig("version", "number")
711
+ version = @default_elasticsearch_version
712
+ end
713
+ version.to_i
711
714
  end
712
715
  CODE
713
716
  Fluent::Plugin::ElasticsearchOutput.module_eval(<<-CODE)
@@ -753,7 +756,10 @@ class ElasticsearchOutputTest < Test::Unit::TestCase
753
756
  Fluent::Plugin::ElasticsearchOutput.module_eval(<<-CODE)
754
757
  def detect_es_major_version
755
758
  @_es_info ||= client.info
756
- @_es_info["version"]["number"].to_i
759
+ unless version = @_es_info.dig("version", "number")
760
+ version = @default_elasticsearch_version
761
+ end
762
+ version.to_i
757
763
  end
758
764
  CODE
759
765
  Fluent::Plugin::ElasticsearchOutput.module_eval(<<-CODE)
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - diogo
8
8
  - pitr
9
9
  - Hiroshi Hatake
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-20 00:00:00.000000000 Z
13
+ date: 2020-08-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fluentd
@@ -188,7 +188,7 @@ licenses:
188
188
  - Apache-2.0
189
189
  metadata:
190
190
  changelog_uri: https://github.com/uken/fluent-plugin-elasticsearch/blob/master/History.md
191
- post_install_message:
191
+ post_install_message:
192
192
  rdoc_options: []
193
193
  require_paths:
194
194
  - lib
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubygems_version: 3.1.2
207
- signing_key:
207
+ signing_key:
208
208
  specification_version: 4
209
209
  summary: Elasticsearch output plugin for Fluent event collector
210
210
  test_files: