sensu-plugins-postgres 2.2.1 → 2.2.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: bed59e060151a61f8c3c0944a4d020007d265c8f0bb4070f45a86bfc29d96395
4
- data.tar.gz: ce3fa0b54016107d3afa230d664b8835049c528e579db0edcad4f36e9f5e97a9
3
+ metadata.gz: e486ba4b6be97a59bf9ce5ab6698aa1f06259b3d047f1664f9c8ea5af50af2ba
4
+ data.tar.gz: fe88e75af6e33f353b5f0971a4a10758c390e3462a7cfb07de43b42ef6450e83
5
5
  SHA512:
6
- metadata.gz: 5f6bf0b92a9777659b244a89b108a96e5866c6f55c7bea8c0de5528143b1859566f743d8716d9057d54065cfd9c60868dda1510ae2cdab3a46f487cc5d2679ec
7
- data.tar.gz: f87e7a2faf3334172c901a82e2a595fda335c267791baccdbf650b1c1d8b7134ac60c3326b014ca792ca7ad619e27c4af11f5fbd593e20e11b04f38199d78d80
6
+ metadata.gz: 9daf56fc3e7329dcddba532844f4cb1e0f39962d1ae3a8c31f1ec84d6db6a62ec024044037cf241d544e5f2c4d2fc09b12a904e237d65a7bd6a7fac34f912f45
7
+ data.tar.gz: 883c5427c025521d5e303ab1a5024ab1b81af9c104cb65629702ccf28cf0405ed3e15029c1f39bbcdd0275f0003e0abe1280757ab6e37d8202224b2f5bb7d152
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.2.2] - 2018-10-27
9
+ ### Fixed
10
+ - Remove unexplicit dependency on ActiveSupport (@multani)
11
+
8
12
  ## [2.2.1] - 2018-10-16
9
13
  ### Security
10
14
  - updated yard dependency to `~> 0.9.11` per: https://nvd.nist.gov/vuln/detail/CVE-2017-17042 (@majormoses)
@@ -162,7 +166,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
162
166
  ### Added
163
167
  - initial release
164
168
 
165
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.2.1...HEAD
169
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.2.2...HEAD
170
+ [2.2.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.2.1...2.2.2
166
171
  [2.2.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.2.0...2.2.1
167
172
  [2.2.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.1.0...2.2.0
168
173
  [2.1.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.0.0...2.1.0
@@ -29,7 +29,6 @@
29
29
  # for details.
30
30
  #
31
31
 
32
- require 'active_support/core_ext/hash'
33
32
  require 'sensu-plugins-postgres/pgpass'
34
33
  require 'sensu-plugin/metric/cli'
35
34
  require 'pg'
@@ -95,7 +94,8 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
95
94
  ]
96
95
  con.exec(request.join(' ')) do |result|
97
96
  result.each do |row|
98
- row.except('datid', 'stats_reset').each do |key, value|
97
+ row.each do |key, value|
98
+ next if %w[datid stats_reset].include?(key)
99
99
  output "#{config[:scheme]}.statsdb.#{config[:database]}.#{key}", value.to_s, timestamp
100
100
  end
101
101
  end
@@ -2,7 +2,7 @@ module SensuPluginsPostgres
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
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-10-17 00:00:00.000000000 Z
11
+ date: 2018-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin