Skip to content

Commit 2ab6341

Browse files
lagartoflojomajormoses
authored andcommitted
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.
1 parent 383569e commit 2ab6341

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44
This CHANGELOG follows [this format](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md).
55

66
## [Unreleased]
7+
8+
## [3.0.0] - 2018-11-24
79
### Breaking Changes
810
- 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).
11+
- Update sensu-plugins to `~> 2.7`. Many breaking changes, see:
12+
- [1.4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v140---2016-07-20)
13+
- [2.0.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
914

1015
### Security
1116
- Updated Rubocop to `~> 0.60.0`, which fixes [CVE-2017-8418](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418).

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ After installation, you have to set up a `pipe` type handler, like so:
1919
"handlers": {
2020
"telegram": {
2121
"type": "pipe",
22-
"command": "handler-telegram.rb"
22+
"command": "handler-telegram.rb",
23+
"filter": "occurrences"
2324
}
2425
}
2526
}

lib/sensu-plugins-telegram/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
module SensuPluginsTelegram
44
module Version
5-
MAJOR = 2
5+
MAJOR = 3
66
MINOR = 0
7-
PATCH = 1
7+
PATCH = 0
88

99
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
1010
end

sensu-plugins-telegram.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
3737
s.test_files = s.files.grep(%r{^(test|spec|features)/})
3838
s.version = SensuPluginsTelegram::Version::VER_STRING
3939

40-
s.add_runtime_dependency 'sensu-plugin', '~> 1.1'
4140
s.add_runtime_dependency 'rest-client', '~> 2.0'
41+
s.add_runtime_dependency 'sensu-plugin', '~> 2.7'
4242

4343
s.add_development_dependency 'bundler', '~> 1.7'
4444
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'

0 commit comments

Comments
 (0)