fluent-plugin-uri_decoder 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fluent-plugin-uri_decoder.gemspec +3 -3
- data/lib/fluent/plugin/out_uri_decode.rb +2 -2
- data/test/plugin/test_out_uri_decoder.rb +4 -1
- data/test/test_helper.rb +0 -1
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d1cbaea6dd0c7d5e85f9d2055bfb27529705105
|
4
|
+
data.tar.gz: ee5d934d2e4667758767cf771e847e49c8e003da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08cd03694e1f40c83beba16c7f261773d217430fbb2b917e20396cb4f5d61c04512483825233b88962c893df2733066ddd3bf03e59084525c9add78e38acebee
|
7
|
+
data.tar.gz: d2854403962934a1c56d7b13efa0dba53ec882a48a38be2fd92ffec60502189878c6f5373054a3d43ee325199acac23f5a43b5b1e8cfadbe6477ba67d204a914
|
data/README.md
CHANGED
@@ -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.
|
7
|
+
spec.version = "0.3.0"
|
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}
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_runtime_dependency "fluentd"
|
20
|
+
spec.add_runtime_dependency "fluentd", ">= 0.14"
|
21
21
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "
|
23
|
+
spec.add_development_dependency "test-unit"
|
24
24
|
end
|
@@ -59,10 +59,10 @@ class Fluent::URIDecoder < Fluent::Output
|
|
59
59
|
|
60
60
|
es.each do |time, record|
|
61
61
|
@_key_names.each do |key_name|
|
62
|
-
record[key_name] = URI.
|
62
|
+
record[key_name] = URI.decode_www_form_component(record[key_name] || '')
|
63
63
|
end
|
64
64
|
|
65
|
-
|
65
|
+
router.emit(tag, time, record)
|
66
66
|
end
|
67
67
|
|
68
68
|
chain.next
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
require 'fluent/plugin/out_uri_decode'
|
3
3
|
|
4
|
-
class Fluent::URIDecorderTest <
|
4
|
+
class Fluent::URIDecorderTest < Test::Unit::TestCase
|
5
5
|
CONFIG0 = %[
|
6
6
|
type uri_decode
|
7
7
|
key_name encoded
|
@@ -22,6 +22,9 @@ class Fluent::URIDecorderTest < MiniTest::Unit::TestCase
|
|
22
22
|
add_prefix decoded
|
23
23
|
]
|
24
24
|
|
25
|
+
def setup
|
26
|
+
Fluent::Test.setup
|
27
|
+
end
|
25
28
|
|
26
29
|
def create_driver(conf=CONFIG0, tag='test')
|
27
30
|
Fluent::Test::OutputTestDriver.new(Fluent::URIDecoder, tag).configure(conf)
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-uri_decoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuharu Ozaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.14'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: test-unit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
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: '0'
|
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
|
@@ -59,7 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
63
|
- Gemfile
|
64
64
|
- LICENSE.txt
|
65
65
|
- README.md
|
@@ -78,21 +78,20 @@ require_paths:
|
|
78
78
|
- lib
|
79
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.6.7
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Fluent plugin to decode uri encoded value.
|
95
95
|
test_files:
|
96
96
|
- test/plugin/test_out_uri_decoder.rb
|
97
97
|
- test/test_helper.rb
|
98
|
-
has_rdoc:
|