fluent-plugin-flatten-hash 0.1.0 → 0.2.0

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: f772de761e1745118e528735b2eef31caec0f1d8
4
- data.tar.gz: e40c3922daafb54256c362264813ad8f648311e2
3
+ metadata.gz: d0697256d25f8c5a35f0e038cb121d35da254fcc
4
+ data.tar.gz: 9304ffd60b33a5fce43cf9efda6c285ba112802e
5
5
  SHA512:
6
- metadata.gz: ed1d12c01bdfbc22def38e47151899baf359fb82edb0269d99b2c7c55dbaee805f3b23512fb152c4d69aeb6f75804c0f99effc89de94088d4049edc9bbd833b3
7
- data.tar.gz: 223aebc69f80a14abe9ac4cd5e1e05f2f0e06e3f2de3726cded8c987bda8f0e76f18f68cb2b828576b40fa1344ca99e1afbb5db4cc446c702ec0ed64ae52c51f
6
+ metadata.gz: f5314e477f619404df0bc5e55817542c03f28b785f24e915e2277be467568551dda563956626c6a56a41271d79023f3f1fa1061f60a62767011bce8fb686f1d1
7
+ data.tar.gz: 14ddb9489db8495b7de7a15c69bc1b99e60fcfd7ef51597356b7fe7b72de8766ba629448710a8dd16e02315a77af956af2ca2843e6cd27922f3e147592659fb1
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1
5
+ - 2.2
6
+
7
+ script:
8
+ - bundle exec rake test
9
+
10
+ sudo: false
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # fluent-plugin-flatten-hash, a plugin for [Fluentd](http://fluentd.org)
2
2
 
3
+ [![Build Status](https://travis-ci.org/kazegusuri/fluent-plugin-flatten-hash.svg?branch=master)](https://travis-ci.org/kazegusuri/fluent-plugin-flatten-hash)
4
+
3
5
  A fluentd plugin to flatten nested hash structure as a flat record with unique keys generated by its path for each values.
4
6
 
5
7
  ## Installation
@@ -4,12 +4,12 @@ $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.1.0"
7
+ spec.version = "0.2.0"
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}
11
11
  spec.summary = %q{A fluentd plugin to flatten nested hash structure as a flat record}
12
- spec.homepage = "https://github.com/sabottenda/fluent-plugin-flatten-hash"
12
+ spec.homepage = "https://github.com/kazegusuri/fluent-plugin-flatten-hash"
13
13
  spec.license = "MIT"
14
14
  spec.has_rdoc = false
15
15
 
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "fluentd", ["> 0.10.0", "< 0.14.0"]
20
+ spec.add_dependency "fluentd", ["> 0.12.0", "< 0.14.0"]
21
21
  spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "test-unit"
22
23
  end
@@ -2,7 +2,7 @@ module Fluent
2
2
  class FlattenHashFilter < Filter
3
3
  Plugin.register_filter('flatten_hash', self)
4
4
 
5
- require_relative 'util'
5
+ require_relative 'flatten_hash_util'
6
6
  include FlattenHashUtil
7
7
 
8
8
  config_param :separator, :string, :default => '.'
@@ -3,7 +3,7 @@ module Fluent
3
3
  include Fluent::HandleTagNameMixin
4
4
  Fluent::Plugin.register_output('flatten_hash', self)
5
5
 
6
- require_relative 'util'
6
+ require_relative 'flatten_hash_util'
7
7
  include FlattenHashUtil
8
8
 
9
9
  config_param :tag, :string, :default => nil
@@ -30,7 +30,7 @@ module Fluent
30
30
  record = flatten_record(record, [])
31
31
  t = tag.dup
32
32
  filter_record(t, time, record)
33
- Engine.emit(t, time, record)
33
+ router.emit(t, time, record)
34
34
  end
35
35
  chain.next
36
36
  end
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Sano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-29 00:00:00.000000000 Z
11
+ date: 2015-06-16 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.10.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.14.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">"
28
28
  - !ruby/object:Gem::Version
29
- version: 0.10.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.14.0
@@ -44,6 +44,20 @@ dependencies:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: test-unit
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
47
61
  description: A fluentd plugin to flatten nested hash structure as a flat record
48
62
  email:
49
63
  - sabottenda@gmail.com
@@ -52,18 +66,19 @@ extensions: []
52
66
  extra_rdoc_files: []
53
67
  files:
54
68
  - ".gitignore"
69
+ - ".travis.yml"
55
70
  - Gemfile
56
71
  - LICENSE.txt
57
72
  - README.md
58
73
  - Rakefile
59
74
  - fluent-plugin-flatten-hash.gemspec
60
75
  - lib/fluent/plugin/filter_flatten_hash.rb
76
+ - lib/fluent/plugin/flatten_hash_util.rb
61
77
  - lib/fluent/plugin/out_flatten_hash.rb
62
- - lib/fluent/plugin/util.rb
63
78
  - test/helper.rb
64
79
  - test/plugin/test_filter_flatten_hash.rb
65
80
  - test/plugin/test_out_flatten_hash.rb
66
- homepage: https://github.com/sabottenda/fluent-plugin-flatten-hash
81
+ homepage: https://github.com/kazegusuri/fluent-plugin-flatten-hash
67
82
  licenses:
68
83
  - MIT
69
84
  metadata: {}
@@ -83,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
98
  version: '0'
84
99
  requirements: []
85
100
  rubyforge_project:
86
- rubygems_version: 2.2.2
101
+ rubygems_version: 2.4.5
87
102
  signing_key:
88
103
  specification_version: 4
89
104
  summary: A fluentd plugin to flatten nested hash structure as a flat record