sensu-plugins-http 3.0.0 → 3.0.1

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: 38c996485865eb03a270ca5b91d56c240dcd183c8034948c195424e68ca1dc8e
4
- data.tar.gz: 07739716e28110be2b0a652eee6aae4bfc003c5281468e299b0e5af3be6d3257
3
+ metadata.gz: c17907f231ced5e58116bfad183b917a889216b1b4c3f5e2445a355d28ad7bb6
4
+ data.tar.gz: 3a381a6476af14205b0305adefb9ea322be67cc002fc319ea4f6f19c35c677ab
5
5
  SHA512:
6
- metadata.gz: a665e88d9ac92ab05c0f114f53a916f84346a8be2ae73225dba93b5003780cbc5f1f6a0a41bb073df6cf18c965a696dc1dc6df9322984e19c13c5d3b11cd3404
7
- data.tar.gz: e98e8cfe0ca501834c17936aed442c9a1aa539717ff6ad8861d53102e7f212fc066a0f758d840d7f9b8f3d270b07b25c627a11a1c22fe99f9579ada3097eb69f
6
+ metadata.gz: 76609341403e80c116585b6ceab354118ec107656949ec1386ae04356ee4f54cfb8077076d3ea6b32fd36696af902cff477d2cbc3213e0f1f0bab97c47bc64c9
7
+ data.tar.gz: 526923d335d291b02edd38124a49ddf51603fa8ce37341cb6d86f4318d1cfdb0778369520363d89e69130370f42ad35ac091ebc3d1a827fa787205e509967716
data/CHANGELOG.md CHANGED
@@ -5,7 +5,9 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
-
8
+ ## [3.0.1] - 2018-09-04
9
+ ### Fixed
10
+ - `metrics-http-json-deep.rb`: properly filter out non numeric values (@CosmoPennypacker)
9
11
 
10
12
  ## [3.0.0] - 2018-08-19
11
13
  ### Breaking Changes
@@ -208,7 +210,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
208
210
  ### Added
209
211
  - Initial release
210
212
 
211
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.0...HEAD
213
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.1...HEAD
214
+ [3.0.1]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.0...3.0.1
212
215
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.11.0...3.0.0
213
216
  [2.11.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.10.0...2.11.0
214
217
  [2.10.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.9.0...2.10.0
@@ -91,8 +91,8 @@ class JsonDeepMetrics < Sensu::Plugin::Metric::CLI::Graphite
91
91
  ekey = key.gsub(/\s/, '_')
92
92
  if value.is_a?(Hash)
93
93
  deep_value(value, "#{scheme}.#{ekey}")
94
- elsif config[:numonly] && value.is_a?(Numeric)
95
- output "#{scheme}.#{ekey}", value.round(config[:decimal_places])
94
+ elsif config[:numonly]
95
+ output "#{scheme}.#{ekey}", value.round(config[:decimal_places]) if value.is_a?(Numeric)
96
96
  else
97
97
  output "#{scheme}.#{ekey}", value
98
98
  end
@@ -4,7 +4,7 @@ module SensuPluginsHttp
4
4
  module Version
5
5
  MAJOR = 3
6
6
  MINOR = 0
7
- PATCH = 0
7
+ PATCH = 1
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-19 00:00:00.000000000 Z
11
+ date: 2018-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin