Skip to content

Commit

Permalink
Update sensu-plugins to ~> 2.7, which includes breaking changes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lagartoflojo committed Nov 20, 2018
1 parent 83a3c60 commit faec7ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/sensu-plugins-telegram/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sensu-plugins-telegram.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit faec7ed

Please sign in to comment.