fluent-plugin-filter-kv-parser 0.0.6 → 0.0.7

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: 8932148ec7a3bfaa0a6241823bda594b85d5a91b24dca0156fb2e7497e4f5eef
4
- data.tar.gz: 810626b5c05a84a382719b9bb40393ee3f901b7d3d9b8366114e1b8633e08621
3
+ metadata.gz: caba515d5a8c6695dbcf8260e35b17a334b3f0bd52ae0a69c806b7328bfe3ec8
4
+ data.tar.gz: 66d598cdcc9e239c31d3ea75beec7482eaec99b6ac47c1b8a6a1f33b73fb10e2
5
5
  SHA512:
6
- metadata.gz: 89089861029085470ada61bb7d34bee99d33c46b3d089b56fc840c4f2881a479fab0a31a0f6ea663171d1c3bb5e7eface8cd5e92cd0c57b4769179e55c6ba610
7
- data.tar.gz: 8bba97ee414b53f06222af5f6f8bad5ef89e4e2538896a8f9e0a3b5c239ef594f796a7da033843cac4e62f1207eb38591a42827147757c6adfc38f9fdb8cf3b4
6
+ metadata.gz: 0f5e88578e8de5411a2b78dbb9939ba002618bab919cb0536238deee6f3d3547af9776019c181afe28db4dfb51564834cc09d9107bf4a637d3b13966fb50669c
7
+ data.tar.gz: 4b8496dde13c15551e497434d8976bce6711023010a2e81f6412b05baa4df4fea1f631189800d3e6f9bd7365ac77a1b6a6da9ad9a2470937b3d381989ee505ed
data/README.md CHANGED
@@ -24,7 +24,7 @@ gem install fluent-plugin-filter-kv-parser
24
24
  remove_key false
25
25
  remove_prefix /^prefix/
26
26
  keys_delimiter /\s+/
27
- kv_delimiter_chart '='
27
+ kv_delimiter_char '='
28
28
  filtered_keys akey,bkey,ckey
29
29
  filtered_keys_regex /^sub_[a-zA-Z_0-9]+/
30
30
  filter_out_lines_without_keys false
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-filter-kv-parser"
6
- s.version = "0.0.6"
6
+ s.version = "0.0.7"
7
7
  s.authors = ["Al-waleed Shihadeh"]
8
8
  s.email = ["wshihadeh.dev@gmail.com"]
9
9
  s.homepage = "https://github.com/wshihadeh/fluent-plugin-filter-kv-parser.git"
@@ -11,7 +11,7 @@ module Fluent
11
11
  config_param :use_regex, :bool, default: false
12
12
  config_param :remove_prefix, :string, default: ''
13
13
  config_param :keys_delimiter, :string, default: '/\s+/'
14
- config_param :kv_delimiter_chart, :string, default: '='
14
+ config_param :kv_delimiter_char, :string, default: '='
15
15
  config_param :filtered_keys, :string, default: nil
16
16
  config_param :filtered_keys_regex, :string, default: nil
17
17
  config_param :filtered_keys_delimiter, :string, default: ','
@@ -63,7 +63,7 @@ module Fluent
63
63
  def delimiter_filter(line)
64
64
  items = {}
65
65
  line.split(@keys_delimiter).each do |kv|
66
- key, value = kv.split(@kv_delimiter_chart, 2)
66
+ key, value = kv.split(@kv_delimiter_char, 2)
67
67
  items[key] = value if value
68
68
  end
69
69
  items
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter-kv-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al-waleed Shihadeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd