sensu-plugins-postgres 1.4.5 → 1.4.6

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: 198f862f1cd9350c9b665cc4fbd895c10c42c519d0061ab50e78391ede028a54
4
- data.tar.gz: 3c129515ec4c43e382c803d5a860356265008f5a1f2d7ecfcd31c2147f2db09a
3
+ metadata.gz: 293228a918cdbfcbe15ead7e0438a2f83ae0e57634ebbbf04136cdf31c5c8731
4
+ data.tar.gz: 158180e2674583f308db8335f971445876a6baec7fd06e16a618d6476b1bb71f
5
5
  SHA512:
6
- metadata.gz: dcda4158f9346296b6c0a1125aca93627e4b3bc9d2a2fb2add7aaf89366038d58ca16b9c535c8acba09681b6d88d9dfaaaeeb637fb9ef9c47110d0e5d10fb793
7
- data.tar.gz: 1abd52ce648f54ea1bda5e2ed37daf5fa3a4c51993787775c6dc7ff71a0059cade5037c2057f907d8a7afc10a4e5351c50ce95c196066ab848adcc4325bc8f5f
6
+ metadata.gz: 1861ea77b27e3156545eece47bdc367e024a45c2146b62c399cc9138eb71b2cf475232e36432e423e7fc69c349ff3ea85b9fa89af7655ebfb38d9e9050d58d0a
7
+ data.tar.gz: c2af7a5e1033ae73f85dafda7bd90cabb32433ab2ffd4670051747ccdb007ba0960d801127572130a47643ee4033900b9dc5ccebf75922a4755f70f045b1d000
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.4.6] - 2018-05-03
9
+ ### Fixed
10
+ - version number check for build strings such as `10.3 (Ubuntu 10.3-1.pgdg16.04+1)`
11
+
12
+ ### Added
13
+ - tests for connecting with a pgpass file (@majormoses)
14
+
8
15
  ## [1.4.5] - 2018-02-15
9
16
  ### Fixed
10
17
  - metric-postgres-graphite.rb: use the custom defined port when connecting to slave (@henkjan)
@@ -138,7 +145,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
138
145
  ### Added
139
146
  - initial release
140
147
 
141
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.5...HEAD
148
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.6...HEAD
149
+ [1.4.6]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.5...1.4.6
142
150
  [1.4.5]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.4...1.4.5
143
151
  [1.4.4]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.3...1.4.4
144
152
  [1.4.3]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.4.2...1.4.3
@@ -106,6 +106,7 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
106
106
 
107
107
  def check_vsn(conn)
108
108
  pg_vsn = conn.exec("SELECT current_setting('server_version')").getvalue(0, 0)
109
+ pg_vsn = pg_vsn.split(' ')[0]
109
110
  Gem::Version.new(pg_vsn) < Gem::Version.new('10.0') && Gem::Version.new(pg_vsn) >= Gem::Version.new('9.0')
110
111
  end
111
112
 
@@ -2,7 +2,7 @@ module SensuPluginsPostgres
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- PATCH = 5
5
+ PATCH = 6
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: 1.4.5
4
+ version: 1.4.6
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-02-16 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  requirements: []
326
326
  rubyforge_project:
327
- rubygems_version: 2.7.5
327
+ rubygems_version: 2.7.6
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: Sensu plugins for postgres