fluent-plugin-record-modifier 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_record_modifier.rb +1 -0
- data/test/out_record_modifier.rb +4 -2
- metadata +4 -4
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/test/out_record_modifier.rb
CHANGED
@@ -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.
|
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-
|
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:
|
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:
|
99
|
+
hash: 2957918703603277385
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
102
|
rubygems_version: 1.8.23
|