fluent-plugin-flatten-hash 0.5.0 → 0.5.1

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
  SHA1:
3
- metadata.gz: fc9aa975dd6c6a5ae056a1ade23882751d3cb9a7
4
- data.tar.gz: b076a3184513e59221f1dd2dcc8ead6099052406
3
+ metadata.gz: 6dc3d9512f2e0b70de2970345805a9c7feb6f11f
4
+ data.tar.gz: a064295e1320dfb5f5f9e3f91c706a431bc4786e
5
5
  SHA512:
6
- metadata.gz: 580e9e5392a343865bf8849cceaca44d67fb6eea4ecc805d6f4b0cfc5d305cd09446808e3a5bb37d55bc5f770af5c3459b42fc7651cbace91690a5ae1d2bbbac
7
- data.tar.gz: f194a77a00a8473921ae3465dd7e7505829814c29438cf511dc7c230405a04f68a679e3b3df6fb60c27e571be4c740022780d8943db8fc707279526a88c658ad
6
+ metadata.gz: 9bb51cb24e700e6edead00e4d4ac198e413604de7a3d4f7f2a9e96015b2cf7be18a7776c43df042673d1e11c9334e3d2b873ca5d18f97e29b463c2e7f34e6724
7
+ data.tar.gz: 3589d00c93d227cd1f6a9da9796eb6451de5568a628cdadc7b8628603da602366d6e4288b584a43cccf2ff3e003aaa1944b042e8b13ba2d5b87baf8bb6451545
data/README.md CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  A fluentd plugin to flatten nested hash structure as a flat record with unique keys generated by its path for each values.
6
6
 
7
+ # Requirements <a name="requirements"></a>
8
+
9
+
10
+ |fluent-plugin-flatten-hash|fluentd|ruby|
11
+ |----|----|----|
12
+ |>= 0.5.0 | >= 0.14.8 | >= 2.1 |
13
+ | < 0.5.0 | > 0.12.0 | >= 1.9 |
14
+
7
15
  ## Installation
8
16
 
9
17
  Add this line to your application's Gemfile:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-flatten-hash"
7
- spec.version = "0.5.0"
7
+ spec.version = "0.5.1"
8
8
  spec.authors = ["Masahiro Sano"]
9
9
  spec.email = ["sabottenda@gmail.com"]
10
10
  spec.description = %q{A fluentd plugin to flatten nested hash structure as a flat record}
@@ -16,8 +16,9 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
+ spec.required_ruby_version = '>= 2.1.0'
19
20
 
20
- spec.add_dependency "fluentd", [">= 0.14.8", "< 2"]
21
+ spec.add_dependency "fluentd", [">= 0.14.12", "< 2"]
21
22
  spec.add_development_dependency "rake"
22
23
  spec.add_development_dependency "test-unit"
23
24
  end
@@ -7,8 +7,8 @@ module Fluent::Plugin
7
7
  require_relative 'flatten_hash_util'
8
8
  include Fluent::FlattenHashUtil
9
9
 
10
- config_param :separator, :string, :default => '.'
11
- config_param :flatten_array, :bool, :default => true
10
+ config_param :separator, :string, default: '.'
11
+ config_param :flatten_array, :bool, default: true
12
12
 
13
13
  def configure(conf)
14
14
  super
@@ -10,13 +10,9 @@ module Fluent::Plugin
10
10
  require_relative 'flatten_hash_util'
11
11
  include Fluent::FlattenHashUtil
12
12
 
13
- config_param :tag, :string, :default => nil
14
- config_param :separator, :string, :default => '.'
15
- config_param :flatten_array, :bool, :default => true
16
-
17
- def initialize
18
- super
19
- end
13
+ config_param :tag, :string, default: nil
14
+ config_param :separator, :string, default: '.'
15
+ config_param :flatten_array, :bool, default: true
20
16
 
21
17
  def configure(conf)
22
18
  super
@@ -29,6 +25,10 @@ module Fluent::Plugin
29
25
  end
30
26
  end
31
27
 
28
+ def multi_workers_ready?
29
+ true
30
+ end
31
+
32
32
  def process(tag, es)
33
33
  tag = @tag || tag
34
34
  es.each do |time, record|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-flatten-hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Sano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.8
19
+ version: 0.14.12
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.8
29
+ version: 0.14.12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: '0'
94
+ version: 2.1.0
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.5.1
102
+ rubygems_version: 2.6.13
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A fluentd plugin to flatten nested hash structure as a flat record