fluent-plugin-anonymizer 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-anonymizer"
|
7
|
-
spec.version = "0.4.
|
7
|
+
spec.version = "0.4.1"
|
8
8
|
spec.authors = ["Kentaro Yoshida"]
|
9
9
|
spec.email = ["y.ken.studio@gmail.com"]
|
10
10
|
spec.summary = %q{Fluentd filter output plugin to anonymize records with HMAC of MD5/SHA1/SHA256/SHA384/SHA512 algorithms. This data masking plugin protects privacy data such as UserID, Email, Phone number, IPv4/IPv6 address and so on.}
|
@@ -8,6 +8,11 @@ class Fluent::AnonymizerOutput < Fluent::Output
|
|
8
8
|
define_method(:log) { $log }
|
9
9
|
end
|
10
10
|
|
11
|
+
# Define `router` method of v0.12 to support v0.10 or earlier
|
12
|
+
unless method_defined?(:router)
|
13
|
+
define_method("router") { Fluent::Engine }
|
14
|
+
end
|
15
|
+
|
11
16
|
config_param :tag, :string, :default => nil
|
12
17
|
config_param :hash_salt, :string, :default => ''
|
13
18
|
config_param :ipv4_mask_subnet, :integer, :default => 24
|
@@ -33,9 +38,8 @@ class Fluent::AnonymizerOutput < Fluent::Output
|
|
33
38
|
record = @anonymizer.anonymize(record)
|
34
39
|
emit_tag = tag.dup
|
35
40
|
filter_record(emit_tag, time, record)
|
36
|
-
|
41
|
+
router.emit(emit_tag, time, record)
|
37
42
|
end
|
38
43
|
chain.next
|
39
44
|
end
|
40
45
|
end
|
41
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-anonymizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|