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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a1f7e33dbe67ed7c98c51b31abb341fc46d6305d53e450cb2097b7fb95e0836
4
- data.tar.gz: a3a89d0dba472abbc7ec0bc4d5a541f473dac6ed792e1e8ad113e5622c588061
3
+ metadata.gz: 9726291406c4deb4adb6ea6cfb8ec0da889f36c48825ba170ac4f146ebce7dc6
4
+ data.tar.gz: ef26a743c3de5480e65aef1f421f2b04067f0f88d94ea23fbbdedaf9ee874ae6
5
5
  SHA512:
6
- metadata.gz: c47a09e0bd2ac51f238fb2d72e749ae25eec3773eb61561e75c04af27bdd0a632bfe9305af451154bfe3583810764248d561dcaa818504917dec0e909112132c
7
- data.tar.gz: bd7f03755abd0411e136a7cec65f78c21d2c01647a4a0d8a303f997d796cc126a983d874e204bb33dcc60ef289f71a521ca8878dbff3c62313e773ec7250a5d7
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.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
- else
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.body} for #{payload.to_json}")
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.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-10 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake