fluent-plugin-record-modifier 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.1.1 - 2013/04/24
2
+
3
+ * Fix SetTagKeyMixin
4
+ https://github.com/repeatedly/fluent-plugin-record-modifier/pull/1
5
+
1
6
  Release 0.1.0 - 2013/04/7
2
7
 
3
8
  * First release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -25,6 +25,7 @@ module Fluent
25
25
 
26
26
  def emit(tag, es, chain)
27
27
  es.each { |time, record|
28
+ filter_record(tag, time, record)
28
29
  Engine.emit(@tag, time, modify_record(record))
29
30
  }
30
31
 
@@ -13,10 +13,12 @@ class RecordModifierOutputTest < Test::Unit::TestCase
13
13
 
14
14
  gen_host ${hostname}
15
15
  foo bar
16
+ include_tag_key
17
+ tag_key included_tag
16
18
  ]
17
19
 
18
20
  def create_driver(conf = CONFIG)
19
- Fluent::Test::OutputTestDriver.new(Fluent::RecordModifierOutput).configure(conf)
21
+ Fluent::Test::OutputTestDriver.new(Fluent::RecordModifierOutput, tag='test_tag').configure(conf)
20
22
  end
21
23
 
22
24
  def get_hostname
@@ -40,7 +42,7 @@ class RecordModifierOutputTest < Test::Unit::TestCase
40
42
  d.emit("a" => 2)
41
43
  end
42
44
 
43
- mapped = {'gen_host' => get_hostname, 'foo' => 'bar'}
45
+ mapped = {'gen_host' => get_hostname, 'foo' => 'bar', 'included_tag' => 'test_tag'}
44
46
  assert_equal [
45
47
  {"a" => 1}.merge(mapped),
46
48
  {"a" => 2}.merge(mapped),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-record-modifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-07 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -302354387031894905
90
+ hash: 2957918703603277385
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  none: false
93
93
  requirements:
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  segments:
98
98
  - 0
99
- hash: -302354387031894905
99
+ hash: 2957918703603277385
100
100
  requirements: []
101
101
  rubyforge_project:
102
102
  rubygems_version: 1.8.23