fluent-plugin-parse_request_body 0.0.10 → 0.0.11

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
  SHA256:
3
- metadata.gz: dc1045edf8a13d605c0ed10691a57c2a5ec893fe02ad7b1ce92dac7ef79687f3
4
- data.tar.gz: 1765400d3f889e8d21cb9aaf7f85312163e4a5cd6e5d8c2ebac6372442639faa
3
+ metadata.gz: 6b52ddd5d33945ea68843cd2ca453a2b22c870e698f7d80de859fffa9a91088f
4
+ data.tar.gz: 51c8f7de8e80a59d4f087c28b48979b093e7b5f6297f3a8445538bb4e13035f8
5
5
  SHA512:
6
- metadata.gz: 332e56807a8ace02459bc1a91bd6893ae3ad1d0fad4ba44e394d00a451d9ed1753bbb8219dcefe7f73920e2443be5d18a4b1136159e469e9bf1a9ea14e6a6c87
7
- data.tar.gz: 10ea9b2a03b033cb00c28f1413a35833d353f915c253bad73d9c677f00737bf6dfe4bb9880dcc57d829f65934669450d8ba90469d8d26d1ca09339dcfafbcdf4
6
+ metadata.gz: 447195188d7d5c7176ccbeeb34eaaa162b13d3a710a01189cf9e8dfda6ab2e55feb24b1efed031dfff90c99be12e398fd72903521a9c67b3977f3fde3f4ab290
7
+ data.tar.gz: a12496ca75a8c0a094108dbe5005ccdcf4cb1cd646cdd3ea8805cca6ef98047bc4998ad2f70bc691c35048719f6c8576304b5d0371df71080d9ef0c48b96694a
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'fluent-plugin-parse_request_body'
3
- gem.version = '0.0.10'
3
+ gem.version = '0.0.11'
4
4
  gem.authors = ['EkiSong']
5
5
  gem.email = ['yifriday0614@gmail.com']
6
6
  gem.homepage = 'https://github.com/yifriday/fluent-plugin-parse_request_body.git'
@@ -60,7 +60,6 @@ module Fluent::Plugin
60
60
 
61
61
  def replace_record_by_key(record)
62
62
  return record unless record[@replace_key]
63
- replace_value = record[@replace_key]
64
63
  value = record[@array_value_key]
65
64
  record[@replace_key] = value if value
66
65
  record.delete(@array_value_key)
@@ -118,8 +117,10 @@ module Fluent::Plugin
118
117
  record[@array_value_key] = "#{placeholder}";
119
118
  end
120
119
 
121
- replace_record_by_key(record)
122
-
120
+ if @replace_key
121
+ replace_record_by_key(record)
122
+ end
123
+
123
124
  end
124
125
  end
125
126
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-parse_request_body
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - EkiSong