fluent-plugin-serialize-nested-json 0.0.3 → 0.0.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1926c8ba8b3decb6b8e1347a0c3f67a35409e892e9da40bdde252b9e60369e24
|
4
|
+
data.tar.gz: 7d3cb7ca34300eff5974763e1680ebdfce491301e865301527dafd77de1acfe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6386f79a3ae606e6576fa9d158a279d039c91b9a9f5ee90638473a4b367907fe29a946c90ca0eac1a87c02373076695b8674fb865830b5becab1bf52d551eac
|
7
|
+
data.tar.gz: 9cfa7b24476d0b61bc7bc8d891c41afd25263be9054a396fd42bde986f387befd065be9bcbc8ac39c79907e02c631222b4743f0cbbf2df25c131f331eaa6c653
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "fluent-plugin-serialize-nested-json"
|
4
|
-
spec.version = "0.0.
|
4
|
+
spec.version = "0.0.4"
|
5
5
|
spec.authors = ["Yagnesh Mistry"]
|
6
6
|
spec.email = ["ysh@live.in"]
|
7
7
|
spec.description = %q{Parser plugin that serializes nested JSON attributes}
|
@@ -7,6 +7,7 @@ module Fluent
|
|
7
7
|
Plugin.register_parser('serialize_nested_json', self)
|
8
8
|
|
9
9
|
config_param :stringify_num, :bool, default: "false" # strinfify_num is configurable with "false" as default
|
10
|
+
config_param :exclude, :array, default: [], value_type: :string
|
10
11
|
config_set_default :time_key, 'time'
|
11
12
|
config_set_default :time_type, :float
|
12
13
|
|
@@ -24,6 +25,8 @@ module Fluent
|
|
24
25
|
values = Hash.new
|
25
26
|
|
26
27
|
record.each do |k, v|
|
28
|
+
next if @exclude.include?(k.to_s)
|
29
|
+
|
27
30
|
if v.is_a?(Hash) || v.is_a?(Array)
|
28
31
|
begin
|
29
32
|
values[k] = Yajl::Encoder.encode(v)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-serialize-nested-json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yagnesh Mistry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -134,8 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
|
-
|
138
|
-
rubygems_version: 2.5.2.3
|
137
|
+
rubygems_version: 3.0.3
|
139
138
|
signing_key:
|
140
139
|
specification_version: 4
|
141
140
|
summary: Parser plugin that serializes nested JSON attributes
|