fluent-plugin-record-reformer 0.2.4 → 0.2.5
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.md
CHANGED
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |gem|
|
|
5
5
|
gem.name = "fluent-plugin-record-reformer"
|
|
6
|
-
gem.version = "0.2.
|
|
6
|
+
gem.version = "0.2.5"
|
|
7
7
|
gem.authors = ["Naotoshi Seo"]
|
|
8
8
|
gem.email = "sonots@gmail.com"
|
|
9
9
|
gem.homepage = "https://github.com/sonots/fluent-plugin-record-reformer"
|
|
@@ -16,6 +16,11 @@ module Fluent
|
|
|
16
16
|
|
|
17
17
|
BUILTIN_CONFIGURATIONS = %W(type output_tag remove_keys renew_record enable_ruby)
|
|
18
18
|
|
|
19
|
+
# To support log_level option implemented by Fluentd v0.10.43
|
|
20
|
+
unless method_defined?(:log)
|
|
21
|
+
define_method("log") { $log }
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
def configure(conf)
|
|
20
25
|
super
|
|
21
26
|
|
|
@@ -69,7 +74,7 @@ module Fluent
|
|
|
69
74
|
}
|
|
70
75
|
chain.next
|
|
71
76
|
rescue => e
|
|
72
|
-
|
|
77
|
+
log.warn "record_reformer: #{e.class} #{e.message} #{e.backtrace.first}"
|
|
73
78
|
end
|
|
74
79
|
|
|
75
80
|
private
|
|
@@ -128,7 +133,7 @@ module Fluent
|
|
|
128
133
|
|
|
129
134
|
def expand(str)
|
|
130
135
|
str.gsub(/(\${[a-z_]+(\[-?[0-9]+\])?}|__[A-Z_]+__)/) {
|
|
131
|
-
|
|
136
|
+
log.warn "record_reformer: unknown placeholder `#{$1}` found" unless @placeholders.include?($1)
|
|
132
137
|
@placeholders[$1]
|
|
133
138
|
}
|
|
134
139
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-record-reformer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
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: 2014-
|
|
12
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fluentd
|
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
version: '0'
|
|
126
126
|
segments:
|
|
127
127
|
- 0
|
|
128
|
-
hash:
|
|
128
|
+
hash: -533835793
|
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
none: false
|
|
131
131
|
requirements:
|
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
134
134
|
version: '0'
|
|
135
135
|
segments:
|
|
136
136
|
- 0
|
|
137
|
-
hash:
|
|
137
|
+
hash: -533835793
|
|
138
138
|
requirements: []
|
|
139
139
|
rubyforge_project:
|
|
140
140
|
rubygems_version: 1.8.23
|