fluent-plugin-maskrx 0.0.1.beta1 → 0.0.1.beta2

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
- SHA1:
3
- metadata.gz: 45025880984ced2282ac66208cc5966fedc32496
4
- data.tar.gz: fd67a25b59aca551f1a55dd5eaec70f465dd330a
2
+ SHA256:
3
+ metadata.gz: 339d212ed1716a996b1ebdaaa7cd187f6bb92c790e6302aac418453cb9f256df
4
+ data.tar.gz: c6c5fde1b1e06419bcd765aec62068e15324555da04bc33bc72f1e05f4bcfa46
5
5
  SHA512:
6
- metadata.gz: d861b468466096d4b78c1ea844f6732e578bef7bc5aff7c337bfda86af937850dc8976b6ab830e58ee26b801d218b02840fddbe9a6835749b478120240d8aec8
7
- data.tar.gz: fbef82c26eb680b4e25ea2614a0c2c478572b26863eeaf6fb99262c374d50d87c3a6f5c515eab3c5c464759c0ea3b472758f7b52812fbaa708a924386c62ec58
6
+ metadata.gz: 4e978acf62e3c532e2fa6fd7c55a97e02e8a3ac0a501a05b9db6cfc8a7d3eb6c5a854328422e9051179440aa05c53258a12afddad8523fd78fe56396dc7a863a
7
+ data.tar.gz: 9a2455fdf843a1a86c3c1ae437d74f74aa404a5f337ae45161b8965300b046b7f7481a75ee82c0f51d8169b20fee141a17e50a864fda1d96be6e67f9fb80f27f
data/.gitignore CHANGED
@@ -1,2 +1,4 @@
1
1
  .bundle
2
2
  Gemfile.lock
3
+ pkg
4
+ .DS_Store
@@ -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-maskrx"
7
- spec.version = "0.0.1.beta1"
7
+ spec.version = "0.0.1.beta2"
8
8
  spec.authors = ["Joshua Mervine"]
9
9
  spec.email = ["joshua@mervine.net"]
10
10
  spec.summary = %q{Fluentd filter plugin to mask strings within records.}
@@ -16,12 +16,16 @@ module Fluent::Plugin
16
16
 
17
17
  def configure(conf)
18
18
  super
19
- end
20
19
 
21
- def filter(_, _, record)
22
20
  @mask_config_list.each do |config|
23
21
  raise Fluent::ConfigError, "pattern is required" if config.pattern.nil?
22
+ end
23
+ end
24
24
 
25
+ def filter(_, _, record)
26
+ log.debug("processing record: #{record}")
27
+
28
+ @mask_config_list.each do |config|
25
29
  record = mask_record(config, record)
26
30
  end
27
31
 
@@ -51,6 +55,8 @@ module Fluent::Plugin
51
55
  value.gsub!(m, mask)
52
56
  end
53
57
 
58
+ log.debug("applied pattern=#{pattern} to value=#{value}")
59
+
54
60
  return value
55
61
  end
56
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-maskrx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta1
4
+ version: 0.0.1.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Mervine
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: 1.3.1
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.5.2
124
+ rubygems_version: 3.1.4
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: Fluentd filter plugin to mask strings within records.