fluent-plugin-json-schema-filter 0.0.2 → 0.0.3
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.
- checksums.yaml +8 -8
- data/README.md +1 -0
- data/fluent-plugin-json-schema-filter.gemspec +1 -1
- data/lib/fluent/plugin/filter_json_schema.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
M2M3MjA4MmZkOWNlNmE4YWYxMGZiNzg2OWIxODJmMTZiN2MxODMxZg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTg0ODdhMDcxZGZlNzU3YTE1ZmY1YTBkMmRlNjA2N2E5YTc5MDgzMw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NWRlNmE3ZGVjZWU4OTUyN2Y1YTNkOGQ1ZTdiYzJhYWJkZjRiZGIyN2E3NDRi
|
|
10
|
+
YmMxMDI3MjI5ODNjMmE2NjFmOTBhMTkyZGRlMTYxM2NkYmZhNmU2MGRmMDY2
|
|
11
|
+
MWFjZjBhYzVjYTUzODdkYzEzYWQ2MzA1YzFkZGJlNjkxNjk2N2Y=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTRjZDAyZjQxOTdhNzBiNDljY2E0M2YwMmNmMTE2ZTgxZWU0NmY3NzdjNGVh
|
|
14
|
+
OTNmMTA0ODU2YmVlNzllNWJlZjIwYjM0MTc0NDJlNDQxODg1OTg2OTQ1MTli
|
|
15
|
+
Y2RhNWI4Zjk3YWQzNGRmNjhmMDYzMmM1ZDM4ZmVlYjg4ODljYTA=
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# fluent-plugin-json-schema-filter
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/ansoni/fluent-plugin-json-schema-filter)
|
|
4
|
+
[](https://badge.fury.io/rb/fluent-plugin-json-schema-filter)
|
|
4
5
|
|
|
5
6
|
[Fluentd](http://fluentd.org) filter plugin to validate records against a [json-schema](http://json-schema.org)
|
|
6
7
|
|
|
@@ -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-json-schema-filter"
|
|
7
|
-
spec.version = "0.0.
|
|
7
|
+
spec.version = "0.0.3"
|
|
8
8
|
spec.authors = ["Anthony Johnson"]
|
|
9
9
|
spec.email = ["ansoni@gmail.com"]
|
|
10
10
|
|
|
@@ -39,8 +39,8 @@ module Fluent
|
|
|
39
39
|
new_record = record.dup
|
|
40
40
|
begin
|
|
41
41
|
valid, error_msg = validate(record)
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
log.debug "Match: #{valid}"
|
|
43
|
+
log.debug "Message: #{error_msg}"
|
|
44
44
|
|
|
45
45
|
if not valid
|
|
46
46
|
new_record['validation-error']=error_msg if @add_validation_error
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-json-schema-filter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anthony Johnson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|