fluent-plugin-mesosphere-filter 0.1.5 → 0.1.6
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,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NjYxZWVmZDQzNDc2MTRmN2Y2YTcwMWQ1NDExM2ZjMjY4YzRjYjgzYQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODY0YWJlZWZkYTc5MmM4NDI5MjhjMzU5NGUzMjE1NGExZDM2MzZhNA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NGE3OGM2NTAzYjgwMTZlZmM4OTUwYWMxNTVmYmFmOTMyYWY0NzUyNDgxMDJm
|
|
10
|
+
OTZmMThlNTM1ZTY5ZWI4MThhNjQzN2RhZjYyOTU4NzQ4M2RjZDUxZTY3NTUy
|
|
11
|
+
NDVjNzczZTQ0YmY5ZGY4NTk1MWMzZTA1NGM5MjgxZjM4NGNiNmQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTJkMDY4YjkyMDc5YTdiZjEwMDZlOTk3YTY2NWVkMzM5ZjIyYThlMmJlNmU3
|
|
14
|
+
ZDMxNmJjYWM0OWM1MTY0MWM2ZTU0MzIzYzhlMjBkMTI2OTQ3ODhhNjIxOTA5
|
|
15
|
+
ODVjODM5MDk5NWFhYjY2YjdiMGExMGI5MDcyMTUwOWMzZDE5ODM=
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = 'fluent-plugin-mesosphere-filter'
|
|
7
|
-
gem.version = '0.1.
|
|
7
|
+
gem.version = '0.1.6'
|
|
8
8
|
gem.authors = ['Joseph Hughes']
|
|
9
9
|
gem.email = ['jjhughes57@gmail.com']
|
|
10
10
|
gem.description = 'Filter plugin to add Mesosphere metadata'
|
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
|
|
|
23
23
|
gem.add_runtime_dependency 'fluentd', '>= 0.10.43'
|
|
24
24
|
gem.add_runtime_dependency 'lru_redux', '~> 1.1'
|
|
25
25
|
gem.add_runtime_dependency 'docker-api', '~> 1.23'
|
|
26
|
+
gem.add_runtime_dependency 'oj', '>= 2.13.1'
|
|
26
27
|
|
|
27
28
|
gem.add_development_dependency 'bundler', '~> 1.3'
|
|
28
29
|
gem.add_development_dependency 'codeclimate-test-reporter'
|
|
@@ -37,6 +37,7 @@ module Fluent
|
|
|
37
37
|
|
|
38
38
|
require 'docker-api'
|
|
39
39
|
require 'lru_redux'
|
|
40
|
+
require 'oj'
|
|
40
41
|
|
|
41
42
|
@cache_ttl = :none if @cache_ttl < 0
|
|
42
43
|
|
|
@@ -177,8 +178,8 @@ module Fluent
|
|
|
177
178
|
log = record['log'].strip
|
|
178
179
|
if log[0].eql?('{') && log[-1].eql?('}')
|
|
179
180
|
begin
|
|
180
|
-
record =
|
|
181
|
-
rescue
|
|
181
|
+
record = Oj.load(log).merge(record)
|
|
182
|
+
rescue Oj::ParseError
|
|
182
183
|
end
|
|
183
184
|
end
|
|
184
185
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-mesosphere-filter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joseph Hughes
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - ~>
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.23'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: oj
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 2.13.1
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ! '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 2.13.1
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: bundler
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|