fluent-plugin-parse_request_body 0.0.16 → 0.0.17

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: d55c8ad27fd1480dd52033881a111dfeaf233384a1d6c47d3b48cf86c290d2de
4
- data.tar.gz: 33348a3a917cd5b69e4f6a2454d82657c111e1b4d30d1c4418304878e8b83735
3
+ metadata.gz: dcc2969f8cabd34a353df3768dbe6d1162b2e004d05f6d5a7431e6f7f25fa394
4
+ data.tar.gz: 89a170411ee51fd7ad822adb0b758e3dbb541c9930356d4408f1d2cced8c7f3d
5
5
  SHA512:
6
- metadata.gz: 5cf90b6200d6ace13a2e86ff67045829fd6c05376cd0b11906d290dace2c4abb028b6feddb166282e6767b0c92e2aba1f80a5526f40ebaaa634b7053d15d6904
7
- data.tar.gz: f809571d05cbbd3dc6f8027c2df0cadbbcf7f57034e52b1ec3944b554dd6ef040cf715c12d9893183e4f4c2fcc0a119a06789b2ef379d8766bf73975770064b8
6
+ metadata.gz: 8b3a71e7b7ba789768f4412c9f7f22edbade2a99587da320f1c2c7ff5f9f2e2d1ffd70d9ede0bae283eea0375f538e7af07c2958481a652582be6f88cbfac353
7
+ data.tar.gz: fe9f1ab785ac80a862569cae659e2438a9443d7936fad9535680a8d1f955a35ecdc2a66b8b4a7cb97e0e029bddbf29d470b664a98c6727d8a40be96f55ac8e42
@@ -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.16'
3
+ gem.version = '0.0.17'
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'
@@ -64,7 +64,9 @@ module Fluent::Plugin
64
64
  def replace_record_by_key(record)
65
65
  return record unless record[@replace_key]
66
66
  replace_value = record[@array_value_key]
67
- record[@replace_key] = replace_value if replace_value
67
+ if replace_value && replace_value.to_i
68
+ record[@replace_key] = replace_value
69
+ end
68
70
  end
69
71
 
70
72
  def have_tag_option?(plugin)
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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - EkiSong