From 06450f19b0c37bc19ef10f4ba59d2414c42dde87 Mon Sep 17 00:00:00 2001 From: Jef Spaleta Date: Tue, 2 Jun 2020 13:35:23 -0800 Subject: [PATCH 1/2] fix literal string freeze setting for binaries --- bin/check-postgres-alive.rb | 2 +- bin/check-postgres-connections.rb | 2 +- bin/check-postgres-query.rb | 2 +- bin/metric-postgres-connections.rb | 2 +- bin/metric-postgres-dbsize.rb | 2 +- bin/metric-postgres-graphite.rb | 2 +- bin/metric-postgres-locks.rb | 2 +- bin/metric-postgres-statsbgwriter.rb | 2 +- bin/metric-postgres-statsdb.rb | 2 +- bin/metric-postgres-statsio.rb | 2 +- bin/metric-postgres-statstable.rb | 2 +- bin/metrics-postgres-query.rb | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/check-postgres-alive.rb b/bin/check-postgres-alive.rb index d46a690..00d35c6 100755 --- a/bin/check-postgres-alive.rb +++ b/bin/check-postgres-alive.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # check-postgres-alive diff --git a/bin/check-postgres-connections.rb b/bin/check-postgres-connections.rb index a5edfb3..8255d92 100755 --- a/bin/check-postgres-connections.rb +++ b/bin/check-postgres-connections.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # check-postgres-connections diff --git a/bin/check-postgres-query.rb b/bin/check-postgres-query.rb index 5b8448b..64202fe 100755 --- a/bin/check-postgres-query.rb +++ b/bin/check-postgres-query.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # check-postgres-query diff --git a/bin/metric-postgres-connections.rb b/bin/metric-postgres-connections.rb index 8a86976..215fa75 100755 --- a/bin/metric-postgres-connections.rb +++ b/bin/metric-postgres-connections.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-connections diff --git a/bin/metric-postgres-dbsize.rb b/bin/metric-postgres-dbsize.rb index 18f38e8..cf72aa2 100755 --- a/bin/metric-postgres-dbsize.rb +++ b/bin/metric-postgres-dbsize.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-dbsize diff --git a/bin/metric-postgres-graphite.rb b/bin/metric-postgres-graphite.rb index 1fcd15b..64a01d3 100755 --- a/bin/metric-postgres-graphite.rb +++ b/bin/metric-postgres-graphite.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-graphite diff --git a/bin/metric-postgres-locks.rb b/bin/metric-postgres-locks.rb index 474ca53..311b806 100755 --- a/bin/metric-postgres-locks.rb +++ b/bin/metric-postgres-locks.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-locks diff --git a/bin/metric-postgres-statsbgwriter.rb b/bin/metric-postgres-statsbgwriter.rb index 43e1b63..01e83f9 100755 --- a/bin/metric-postgres-statsbgwriter.rb +++ b/bin/metric-postgres-statsbgwriter.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-statsbgwriter diff --git a/bin/metric-postgres-statsdb.rb b/bin/metric-postgres-statsdb.rb index 761a567..d34031a 100755 --- a/bin/metric-postgres-statsdb.rb +++ b/bin/metric-postgres-statsdb.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-statsdb diff --git a/bin/metric-postgres-statsio.rb b/bin/metric-postgres-statsio.rb index 21ef815..291b8db 100755 --- a/bin/metric-postgres-statsio.rb +++ b/bin/metric-postgres-statsio.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-statsio diff --git a/bin/metric-postgres-statstable.rb b/bin/metric-postgres-statstable.rb index a839d69..ec537f2 100755 --- a/bin/metric-postgres-statstable.rb +++ b/bin/metric-postgres-statstable.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metric-postgres-statstable diff --git a/bin/metrics-postgres-query.rb b/bin/metrics-postgres-query.rb index 4d9103f..675f534 100755 --- a/bin/metrics-postgres-query.rb +++ b/bin/metrics-postgres-query.rb @@ -1,5 +1,5 @@ #! /usr/bin/env ruby -# frozen_string_literal: true +# frozen_string_literal: false # # metrics-postgres-query From 5285de0833e6851963dd723f0cd65ac663996718 Mon Sep 17 00:00:00 2001 From: Jef Spaleta Date: Tue, 2 Jun 2020 13:36:10 -0800 Subject: [PATCH 2/2] prep for 4.0.2 release --- CHANGELOG.md | 7 +++++-- lib/sensu-plugins-postgres/version.rb | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 810252e..17eda8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md). ## [Unreleased] -- `check-postgres-replication.rb`: `# frozen_string_literal: true` does not play nicely with mixlib-cli + +## [4.0.2] - 2020-06-02 +- Fixed `# frozen_string_literal: true` does not play nicely with mixlib-cli. ## [4.0.1] - 2020-04-20 ### Fixed @@ -211,7 +213,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins ### Added - initial release -[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.1...HEAD +[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.2...HEAD +[4.0.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.1...4.0.2 [4.0.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.0...4.0.1 [4.0.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/3.0.0...4.0.0 [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.4.0...3.0.0 diff --git a/lib/sensu-plugins-postgres/version.rb b/lib/sensu-plugins-postgres/version.rb index 12e6054..ada955d 100644 --- a/lib/sensu-plugins-postgres/version.rb +++ b/lib/sensu-plugins-postgres/version.rb @@ -4,7 +4,7 @@ module SensuPluginsPostgres module Version MAJOR = 4 MINOR = 0 - PATCH = 1 + PATCH = 2 VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.') end