fluent-plugin-rewrite 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9b536a9aab372542917eced071b3774a708317be
4
+ data.tar.gz: d9b018a42595b8d84686d0b8d0cb8d89f486004a
5
+ SHA512:
6
+ metadata.gz: 615dac220c4ce5d8f489cd5fa0c6d395ed384822c21e3f7db00182cb34cc8e1c0a243d729b00567b56218d23c1c0c56d5e725951912527e5a022663d9b6f2a42
7
+ data.tar.gz: 40b9fb769c95e2566976cd666a2582cd30a8587da41fc4f9c5242719ec01b0b897ea2266b9eca47eb755e26df4f0adff3357c765bc1b9357a3b8615aac80b6f0
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "fluent-plugin-rewrite"
3
- gem.version = '0.0.11'
3
+ gem.version = '0.0.12'
4
4
  gem.authors = ["Kentaro Kuribayashi"]
5
5
  gem.email = ["kentarok@gmail.com"]
6
6
  gem.homepage = "http://github.com/kentaro/fluent-plugin-rewrite"
@@ -19,18 +19,15 @@ module Fluent
19
19
  @added_prefix_string = @add_prefix + '.'
20
20
  end
21
21
 
22
- @rules = conf.elements.select { |element|
23
- element.name == 'rule'
24
- }.each { |element|
25
- if element.has_key?("pattern")
26
- element["regex"] = Regexp.new(element["pattern"])
27
- end
28
-
29
- element.keys.each do |k|
22
+ @rules = conf.elements.select {|element| element.name == 'rule' }.map do |element|
23
+ rule = {}
24
+ element.keys.each do |key|
30
25
  # read and throw away to supress unread configuration warning
31
- element[k]
26
+ rule[key] = element[key]
32
27
  end
33
- }
28
+ rule["regex"] = Regexp.new(element["pattern"]) if element.has_key?("pattern")
29
+ rule
30
+ end
34
31
  end
35
32
 
36
33
  def start
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rewrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
5
- prerelease:
4
+ version: 0.0.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kentaro Kuribayashi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-12-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: fluentd
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Fluentd plugin to rewrite tags/values along with pattern matching and
@@ -63,27 +58,26 @@ files:
63
58
  homepage: http://github.com/kentaro/fluent-plugin-rewrite
64
59
  licenses:
65
60
  - MIT
61
+ metadata: {}
66
62
  post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
69
65
  - lib
70
66
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
67
  requirements:
73
- - - ! '>='
68
+ - - '>='
74
69
  - !ruby/object:Gem::Version
75
70
  version: '0'
76
71
  required_rubygems_version: !ruby/object:Gem::Requirement
77
- none: false
78
72
  requirements:
79
- - - ! '>='
73
+ - - '>='
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  requirements: []
83
77
  rubyforge_project:
84
- rubygems_version: 1.8.23
78
+ rubygems_version: 2.0.14
85
79
  signing_key:
86
- specification_version: 3
80
+ specification_version: 4
87
81
  summary: Fluentd plugin to rewrite tags/values along with pattern matching and re-emit
88
82
  them.
89
83
  test_files: