sensu-plugins-slack 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 965e54c34560bc4c638f097866e6d0ad1b5f195811dd7cb758f68a6fef3d13e3
4
- data.tar.gz: 0bdf270da3c7aa91cf84903712ca5af0fbb430af8b8eb5a833105dce8c1bef66
3
+ metadata.gz: 7efce7409ed4fc12c85d25d5b310bd04b4b1b35f2330db8c7cac93643c3af24c
4
+ data.tar.gz: 4edac8431ae9543ea983f3c0e2147b374fe304784a358d4a7fcd0ae740134cb7
5
5
  SHA512:
6
- metadata.gz: 8199905e68efef5aa28b268be0ca47195585780dd28bf03c4c9fdb34c31de988ee7cc5fd52800ac93fd380668e6a451bef52a1599a5f59f072a4c6846c3c22b4
7
- data.tar.gz: bd2d84112128724e2b0792912aa2234e7863452ff54c2affaf69c39d2d51dfa6b665fa228c1f217ef579f7e64d500b3e3d3200da02ab967b55c00910909283e6
6
+ metadata.gz: 96af9cca85ebc39233536367fe90d2d8dcb44c969389faa8af01475afad4be170a8bbd9b4767433d5970b3bb6fb6a34113a22d1f62b7d4f2896bcef13400124e
7
+ data.tar.gz: 00a0bea5bd7fec2e1e2ffc7244c41d40afcd93052de9a2a4e181b92001018ae7705036757464a94ab6b7d6e4faeb853dc1f9216d05b04b36c87a088581865a55
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [3.1.0] - 2018-01-31
9
+ ### Changed
10
+ - `handler-slack.rb`: emit an `unknown` with helpful debug messages when passing in bad config (@majormoses)
11
+
12
+ ### Added
13
+ - added sample event payload and config (@majormoses)
14
+
8
15
  ## [3.0.0] - 2018-01-11
9
16
  ### Breaking Changes
10
17
  - bumped `sensu-plugin` dependency to 2.x which removes in handler filtering for `occurrences`. If you want to keep using the same filtering features you must specify it and ensure that you have applied the filter by setting `"filters": ["occurrences"]`. For more information see [here](https://blog.sensuapp.org/deprecating-event-filtering-in-sensu-plugin-b60c7c500be3) (@majormoses)
@@ -115,7 +122,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
115
122
  ### Added
116
123
  - initial release
117
124
 
118
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.0.0...HEAD
125
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.1.0...HEAD
126
+ [3.1.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.0.0...3.1.0
119
127
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/2.0.0...3.0.0
120
128
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.5.0...2.0.0
121
129
  [1.5.1]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.5.0...1.5.1
@@ -96,6 +96,15 @@ class Slack < Sensu::Handler
96
96
 
97
97
  def get_setting(name)
98
98
  settings[config[:json_config]][name]
99
+ rescue TypeError, NoMethodError => e
100
+ puts "settings: #{settings}"
101
+ puts "slack key: #{config[:json_config]}. This should not be a file name/path."
102
+ puts <<-EOS
103
+ key name: #{name}. This is the key in config that broke.
104
+ Check the slack key to make sure it's parent key exists"
105
+ EOS
106
+ puts "error: #{e.message}"
107
+ exit 3 # unknown
99
108
  end
100
109
 
101
110
  def handle
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsSlack
2
2
  module Version
3
3
  MAJOR = 3
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis