fluent-plugin-json-nest2flat 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # fluent-plugin-json-nest2flat
1
+ # fluent-plugin-json-nest2flat, a plugin for [Fluentd](http://fluentd.org)
2
2
  # Overview
3
3
 
4
4
  json_nest2flat is a fluentd output plugin.I will convert data into a flat data structure of JSON nested.
@@ -1,13 +1,13 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "fluent-plugin-json-nest2flat"
4
- spec.version = "0.0.4"
4
+ spec.version = "0.0.5"
5
5
  spec.authors = ["Fukui ReTu"]
6
6
  spec.email = ["s0232101@gmail.com"]
7
7
  spec.description = %q{Output filter plugin to convert to a flat structure the JSON that is nest}
8
8
  spec.summary = %q{Output filter plugin to convert to a flat structure the JSON that is nest}
9
9
  spec.homepage = "https://github.com/fukuiretu/fluent-plugin-json-nest2flat"
10
- spec.license = "Apache"
10
+ spec.license = "APL2.0"
11
11
 
12
12
  spec.files = `git ls-files`.split($/)
13
13
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -71,12 +71,14 @@ module Fluent
71
71
  if @json_keys.include?(old_record_k)
72
72
  json_data = old_record[old_record_k]
73
73
  JSON.parse(json_data).each { |json_k, json_v|
74
- if @ignore_item_keys.include?(old_record_k)
75
- # 無視するキーに該当
76
- ignore_items = @ignore_item_keys[old_record_k]
77
- if ignore_items.include?(json_k)
78
- # 無視するアイテムに該当するのでハッシュに含まない
79
- next
74
+ if !@ignore_item_keys.nil?
75
+ if @ignore_item_keys.include?(old_record_k)
76
+ # 無視するキーに該当
77
+ ignore_items = @ignore_item_keys[old_record_k]
78
+ if ignore_items.include?(json_k)
79
+ # 無視するアイテムに該当するのでハッシュに含まない
80
+ next
81
+ end
80
82
  end
81
83
  end
82
84
  new_record[json_k] = json_v
@@ -94,4 +96,4 @@ module Fluent
94
96
  return new_record
95
97
  end
96
98
  end
97
- end
99
+ end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-json-nest2flat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Fukui ReTu
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-01-11 00:00:00.000000000 Z
12
+ date: 2014-05-21 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,15 +30,17 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  description: Output filter plugin to convert to a flat structure the JSON that is
@@ -55,27 +60,28 @@ files:
55
60
  - test/plugin/test_out_json_nest2flat.rb
56
61
  homepage: https://github.com/fukuiretu/fluent-plugin-json-nest2flat
57
62
  licenses:
58
- - Apache
59
- metadata: {}
63
+ - APL2.0
60
64
  post_install_message:
61
65
  rdoc_options: []
62
66
  require_paths:
63
67
  - lib
64
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
65
70
  requirements:
66
- - - '>='
71
+ - - ! '>='
67
72
  - !ruby/object:Gem::Version
68
73
  version: '0'
69
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
70
76
  requirements:
71
- - - '>='
77
+ - - ! '>='
72
78
  - !ruby/object:Gem::Version
73
79
  version: '0'
74
80
  requirements: []
75
81
  rubyforge_project:
76
- rubygems_version: 2.0.3
82
+ rubygems_version: 1.8.23
77
83
  signing_key:
78
- specification_version: 4
84
+ specification_version: 3
79
85
  summary: Output filter plugin to convert to a flat structure the JSON that is nest
80
86
  test_files:
81
87
  - test/plugin/test_out_json_nest2flat.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: ad7d5150b74d88a5f4435944d95a818b6800eb59
4
- data.tar.gz: 1628f1bac6bed1b7a9247f00c3d8338f47151690
5
- SHA512:
6
- metadata.gz: a42af76cb7d2ed1c3c005e7a0b7a5deec88d97a95e665e0dd68f00f0cf6a50075440f8d868d447ce2e4438f6b3cdea0c981f6e6510a3e3c3f4f6864b5f2f0457
7
- data.tar.gz: 187e26e1006348451d931ff07ae6db04644843fd2eae70c53eacc0cfcb5cd66e4ccf0ff62a3451279e2c727259e6eec1885298e11222981e402e54ce7b378480