[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass
Purpose
Fix some runtime warnings. Test artifact:
Before:
$ cat <<EOF | bundle exec bin/handler-hipchat.rb
{
"client": {
"name": "client"
},
"check": {
"status": 1,
"name": "name",
"source": "source",
"output": "Hello, warning"
}
}
EOF
warning: event filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin
connection refused attempting to query the sensu api for a stash
connection refused attempting to query the sensu api for a stash
connection refused attempting to query the sensu api for a stash
warning: occurrence filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin
bin/handler-hipchat.rb:87:in `handle': Object#timeout is deprecated, use Timeout.timeout instead.
$
Pull Request Checklist
Fixes #9
General
[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass
Purpose
Fix some runtime warnings. Test artifact:
Before:
After:
(and yes, the message still arrives in Hipchat :p )
Known Compatibility Issues
The sensu-plugin gem has been updated, but I don't think what this handler does with it should break anything.