fluent-plugin-indicative 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-indicative.gemspec +1 -1
- data/lib/fluent/plugin/out_indicative.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9726291406c4deb4adb6ea6cfb8ec0da889f36c48825ba170ac4f146ebce7dc6
|
4
|
+
data.tar.gz: ef26a743c3de5480e65aef1f421f2b04067f0f88d94ea23fbbdedaf9ee874ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d37374890aeea8d674a15292307505a46a4365413fa0a10a47490b0d54c551bd6ccbc69b2a06ecdc84ea3ca555127aea76d473889c3202a688a3320da221de
|
7
|
+
data.tar.gz: 7a4045e12fd72d08088d42be7cdc6fb634695c3835ed64f22e8f498bb41b8a994d390cf054d838ff7d1054317c3cdcf7ef1b7c21557727d4b0743c5fe5c223fe
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-indicative"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.2"
|
7
7
|
s.authors = ["Sam Millar"]
|
8
8
|
s.email = ["sam@millar.io"]
|
9
9
|
s.homepage = "https://github.com/millar/fluent-plugin-indicative"
|
@@ -11,7 +11,7 @@ def flatten_hash(hash)
|
|
11
11
|
flatten_hash(v).map do |h_k, h_v|
|
12
12
|
h["#{k}.#{h_k}"] = h_v
|
13
13
|
end
|
14
|
-
|
14
|
+
elsif !v.is_a? Array
|
15
15
|
h[k] = v
|
16
16
|
end
|
17
17
|
end
|
@@ -54,8 +54,8 @@ class Fluent::Plugin::IndicativeOutput < Fluent::Plugin::Output
|
|
54
54
|
request.body = payload.to_json
|
55
55
|
response = http.request(request)
|
56
56
|
|
57
|
-
if response.code != 200
|
58
|
-
log.warn("Indicative responded with error: #{response.
|
57
|
+
if response.code != "200"
|
58
|
+
log.warn("Indicative responded with error (code: #{response.code}): #{payload.to_json} -> #{response.body}")
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-indicative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Millar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07
|
11
|
+
date: 2019-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|