fluent-plugin-parse_cookie 0.0.1 → 0.0.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: 22eaeee0fdeb4f1158f5957db87a9e1fa00fa3bf
4
- data.tar.gz: eddd439e59e66f93644f524e0c5f0e7e0a5ab899
3
+ metadata.gz: eb1f123f53af11b19c6757eedd4403c47573bbec
4
+ data.tar.gz: bd28f11bb1961f4b73fd8c7f132aaaa0cf1f51e2
5
5
  SHA512:
6
- metadata.gz: 8c6b308be1fe6d01bb7d754a0f5482c3917e5ab4feab89037842e1d2958db0c11708b4afbe376b6d09930e669f04d8c12034387d9cf075f85ff9c9b37acfc6b2
7
- data.tar.gz: cee4b10f6e18acec7b18e7415b475c9786dd5d6421a17a06412b87b7bf77754f1dfc51e52e30461c652521f3dd305f30e9208c9443687b4b6e9bb13454c10e11
6
+ metadata.gz: ef95170bf55a2edf252427e283ae219a2bda9ea990ea9671e009143b0eb47479b4a2e39b437eddb5ec0df0eb3351f3e19b8597e9324a686a94709d07876c65dd
7
+ data.tar.gz: 550322b83383b2a136a141ffcce22da1177c3bf24f9a6bffe4638d1837ff1e907ccb37437100aeb2ece606281041a3e4c7fe5f837a81841e9ab7ea5eaabd3bf0
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ## 0.0.1 (2015/02/11)
2
+ fix require 'cgi'
3
+
1
4
  ## 0.0.1 (2015/02/11)
2
5
  First release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fluent::Plugin::ParseCookie, a plugin for [Fluentd](http://fluentd.org)
1
+ ## Fluent::Plugin::ParseCookie, a plugin for [Fluentd](http://fluentd.org)
2
2
 
3
3
  Fluentd plugin to parse cookie log.
4
4
 
@@ -47,7 +47,7 @@ change tag prefix (default tag prefix is "parsed_cookie.")
47
47
  type parse_cookie
48
48
  key cookie
49
49
  tag_prefix changed.
50
-
50
+
51
51
  </match>
52
52
 
53
53
  input
@@ -152,11 +152,11 @@ You must be this option setting true.
152
152
  Default value is false.
153
153
 
154
154
  ## Change log
155
- See [CHANGELOG.md](https://github.com/[my-github-username]/fluent-plugin-parse_cookie/blob/master/CHANGELOG.md) for details.
155
+ See [CHANGELOG.md](https://github.com/h-michael-z/fluent-plugin-parse_cookie/blob/master/CHANGELOG.md) for details.
156
156
 
157
157
  ## Contributing
158
158
 
159
- 1. Fork it ( https://github.com/[my-github-username]/fluent-plugin-parse_cookie/fork )
159
+ 1. Fork it ( https://github.com/h-michael-z/fluent-plugin-parse_cookie/fork )
160
160
  2. Create your feature branch (`git checkout -b my-new-feature`)
161
161
  3. Commit your changes (`git commit -am 'Add some feature'`)
162
162
  4. Push to the branch (`git push origin my-new-feature`)
@@ -9,7 +9,7 @@ module Fluent
9
9
 
10
10
  def initialize
11
11
  super
12
- require 'CGI'
12
+ require 'cgi'
13
13
  end
14
14
 
15
15
  # Define `log` method for v0.10.42 or earlier
@@ -47,10 +47,10 @@ module Fluent
47
47
  if record[key]
48
48
  parsed_cookie = CGI::Cookie.parse(record[key])
49
49
  hash = {}
50
- parsed_cookie.each do |k,array|
50
+ parsed_cookie.each do |k,array|
51
51
  hash.merge!({k => array.select {|v| v.class == String }})
52
52
  end
53
-
53
+
54
54
  hash = hash.select {|k, v| v != []} if remove_empty_array == true
55
55
 
56
56
  if single_value_to_string == true
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module ParseCookie
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-parse_cookie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirokazu Hata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -181,3 +181,4 @@ summary: Fluentd plugin to parse cookie
181
181
  test_files:
182
182
  - test/helper.rb
183
183
  - test/plugin/test_out_parse_cookie.rb
184
+ has_rdoc: