fluent-plugin-uri_decoder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa730f928161c1a916083c5b3947562ce36515b
|
4
|
+
data.tar.gz: 560bb64f949c96249babe91abb093b61ae711050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c284dc59e1a187387850b1165d4c4a4dd6e746c55ebc0a328261ac9498dcab242a4a678dbc64e9b957a765ef0947672cdfa85051e33ed9c4d2dd1ace6acc04
|
7
|
+
data.tar.gz: dc22874ebbe7c9e29bc2b8149eb979c09e45578981a185dca2c67889d0a16e8381df9a258c5ffa79205df4533c8dd795403345d54eb8d557c15c5c413acac84b
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-uri_decoder"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.2"
|
8
8
|
spec.authors = ["Yasuharu Ozaki"]
|
9
9
|
spec.email = ["yasuharu.ozaki@gmail.com"]
|
10
10
|
spec.description = %q{Fluent plugin to decode uri encoded value. See more https://github.com/YasuOza/fluent-plugin-uri_decoder}
|
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_runtime_dependency "fluentd"
|
21
21
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "minitest"
|
23
|
+
spec.add_development_dependency "minitest", "~> 4.7.4"
|
24
24
|
end
|
@@ -53,15 +53,12 @@ class Fluent::URIDecoder < Fluent::Output
|
|
53
53
|
def emit(tag, es, chain)
|
54
54
|
tag = tag_mangle(tag)
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
@key_names = @key_names.split(/,\s*/)
|
60
|
-
end
|
61
|
-
@key_names << @key_name if @key_name
|
56
|
+
@_key_names ||= @key_names.split(/,\s*/)
|
57
|
+
@_key_names << @key_name if @key_name
|
58
|
+
@_key_names.uniq!
|
62
59
|
|
63
60
|
es.each do |time, record|
|
64
|
-
@
|
61
|
+
@_key_names.each do |key_name|
|
65
62
|
record[key_name] = URI.decode(record[key_name] || '').gsub(/"/, "'")
|
66
63
|
end
|
67
64
|
|
@@ -35,6 +35,9 @@ class Fluent::URIDecorderTest < MiniTest::Unit::TestCase
|
|
35
35
|
d = create_driver(CONFIG1)
|
36
36
|
assert_equal 'encoded', d.instance.remove_prefix
|
37
37
|
assert_equal 'decoded', d.instance.add_prefix
|
38
|
+
|
39
|
+
d = create_driver(CONFIG2)
|
40
|
+
assert_equal 'encoded, another_encoded', d.instance.key_names
|
38
41
|
end
|
39
42
|
|
40
43
|
def test_tag_mangle
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-uri_decoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuharu Ozaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 4.7.4
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 4.7.4
|
55
55
|
description: Fluent plugin to decode uri encoded value. See more https://github.com/YasuOza/fluent-plugin-uri_decoder
|
56
56
|
email:
|
57
57
|
- yasuharu.ozaki@gmail.com
|