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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76c81a0f63798c6ff00caf462c78893c193b9e7b
4
- data.tar.gz: c2b72575b4c881ff94eb4bb2db2b33e7c9e021f6
3
+ metadata.gz: 5d1cbaea6dd0c7d5e85f9d2055bfb27529705105
4
+ data.tar.gz: ee5d934d2e4667758767cf771e847e49c8e003da
5
5
  SHA512:
6
- metadata.gz: 84fbe2fcef994d6b6a25f4a4bb8af421c191af5d5fc3b34109bce24584db10842e059b08fc2adb4f8d4c64a440e2ed5e36447a84a579306b606cd94712f98023
7
- data.tar.gz: 2e7f6b83d7ad3ef4e8ebedea600bb86683af1664d273752c6a49d16a607b352df6531cbbaf8d9f1968dee32a0fca12341f4b7e2f76eded40e3ff1164588e38bc
6
+ metadata.gz: 08cd03694e1f40c83beba16c7f261773d217430fbb2b917e20396cb4f5d61c04512483825233b88962c893df2733066ddd3bf03e59084525c9add78e38acebee
7
+ data.tar.gz: d2854403962934a1c56d7b13efa0dba53ec882a48a38be2fd92ffec60502189878c6f5373054a3d43ee325199acac23f5a43b5b1e8cfadbe6477ba67d204a914
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # fluent-plugin-uri_decoder
1
+ # fluent-plugin-uri_decoder, a plugin for [Fluentd](http://fluentd.org)
2
2
 
3
3
  Fluent plugin to decode uri encoded value.
4
4
 
@@ -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.2.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 "minitest", "~> 4.7.4"
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.decode(record[key_name] || '')
62
+ record[key_name] = URI.decode_www_form_component(record[key_name] || '')
63
63
  end
64
64
 
65
- Fluent::Engine.emit(tag, time, record)
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 < MiniTest::Unit::TestCase
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)
@@ -8,7 +8,6 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
 
11
- require 'minitest/unit'
12
11
  require 'fluent/test'
13
12
 
14
13
  unless ENV.has_key?('VERBOSE')
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.2.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: 2013-05-15 00:00:00.000000000 Z
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: minitest
42
+ name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 4.7.4
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: 4.7.4
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.0.0
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: