From 6425d71abb7624a54456a89a60253c7f5f72eb7e Mon Sep 17 00:00:00 2001 From: Hernan Schmidt Date: Tue, 20 Nov 2018 12:12:15 +0100 Subject: [PATCH] Update sensu-plugins to `~> 2.7`, which includes breaking changes Closes #10. The occurrences filtering was removed from sensu-plugin and moved into a [Sensu extension](https://github.com/sensu/sensu-extensions-occurrences). The example configuration has been updated. --- CHANGELOG.md | 5 +++++ README.md | 3 ++- lib/sensu-plugins-telegram/version.rb | 4 ++-- sensu-plugins-telegram.gemspec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e822364..3380750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,13 @@ This project adheres to [Semantic Versioning](http://semver.org/). This CHANGELOG follows [this format](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md). ## [Unreleased] + +## [3.0.0] - 2018-11-20 ### Breaking Change - Remove support for Ruby < 2.3 per the Sensu Plugins [policy](https://github.com/sensu/sensu-docs/blob/master/content/plugins/1.0/faq.md#what-is-the-policy-on-supporting-end-of-lifeeol-ruby-versions). +- Update sensu-plugins to `~> 2.7`. Many breaking changes, see: + - [1.4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v140---2016-07-20) + - [2.0.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29) ### Security - Updated Rubocop to `~> 0.60.0`, which fixes [CVE-2017-8418](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418). diff --git a/README.md b/README.md index 53a339e..bec7927 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ After installation, you have to set up a `pipe` type handler, like so: "handlers": { "telegram": { "type": "pipe", - "command": "handler-telegram.rb" + "command": "handler-telegram.rb", + "filter": "occurrences" } } } diff --git a/lib/sensu-plugins-telegram/version.rb b/lib/sensu-plugins-telegram/version.rb index 1894d3d..40c35d8 100644 --- a/lib/sensu-plugins-telegram/version.rb +++ b/lib/sensu-plugins-telegram/version.rb @@ -2,9 +2,9 @@ module SensuPluginsTelegram module Version - MAJOR = 2 + MAJOR = 3 MINOR = 0 - PATCH = 1 + PATCH = 0 VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.') end diff --git a/sensu-plugins-telegram.gemspec b/sensu-plugins-telegram.gemspec index 2c380d1..fe74fcc 100644 --- a/sensu-plugins-telegram.gemspec +++ b/sensu-plugins-telegram.gemspec @@ -38,8 +38,8 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.version = SensuPluginsTelegram::Version::VER_STRING - s.add_runtime_dependency 'sensu-plugin', '~> 1.1' s.add_runtime_dependency 'rest-client', '~> 2.0' + s.add_runtime_dependency 'sensu-plugin', '~> 2.7' s.add_development_dependency 'bundler', '~> 1.7' s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'