sensu-plugins-slack 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9e17d470810e6c1b420fd9978176d83068be519
4
- data.tar.gz: 92bc6643bb39dd91419fd92a532b3a51637c9a34
3
+ metadata.gz: 5579a23a8858bc8529d481ed4a02ea25f2102c77
4
+ data.tar.gz: 7dd114c35c39b4aa2ce84d9cac6a8a8f3b0b1b56
5
5
  SHA512:
6
- metadata.gz: 28f88ff3cf8228d5fada54e72e0c902ed08b7cd38729b247162bbf483f1643e14f8b09aba012b29754e48d4aec1f83e4757e9ced821e8be6a01492af6957c58d
7
- data.tar.gz: f1bc4b64b7297383b597c6f20bb4bad8e9f8994e42b761bc047e3e4b3b5b01d9eb7577379f6a3b540c055bd556e65713fe05c2633d0a105596940a2f8e6463af
6
+ metadata.gz: 1cf0939e2b68fb1db386ffe53d89259694c471e8553f804fd7782b6ce0eaaa0297a1d4e83b0729048cecec027ba4f5b4702b130a9e8d1070f26ad85af1953c48
7
+ data.tar.gz: a70ba0e606b325f8b093db76319902b66ee6a5390ee3233e4ad6a8d8b5c24934fe509a98de74b69191ffbf1537282dec33defb3ff0c5511e7de4968d22bdb7bf
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.3.0] - 2017-07-19
9
+ ### Added
10
+ - `slack-handler-multichannel.rb`: Added support for `icon_emoji` option, which documentation already suggested was supported (@fildred13)
11
+
8
12
  ## [1.2.0] - 2017-07-13
9
13
  ### Added
10
14
  - ruby 2.4 testing in travis (@majormoses)
@@ -86,6 +90,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
86
90
  - initial release
87
91
 
88
92
  [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.2.0...HEAD
93
+ [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.2.0...1.3.0
89
94
  [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.1.1...1.2.0
90
95
  [1.1.1]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.1.0...1.1.1.
91
96
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.0.0...1.1.0
@@ -90,6 +90,10 @@ class Slack < Sensu::Handler
90
90
  get_setting('webhook_url')
91
91
  end
92
92
 
93
+ def slack_icon_emoji
94
+ get_setting('icon_emoji')
95
+ end
96
+
93
97
  def slack_proxy_addr
94
98
  get_setting('proxy_addr')
95
99
  end
@@ -280,6 +284,7 @@ class Slack < Sensu::Handler
280
284
  }.tap do |payload|
281
285
  payload[:channel] = channel
282
286
  payload[:username] = slack_bot_name if slack_bot_name
287
+ payload[:icon_emoji] = slack_icon_emoji if slack_icon_emoji
283
288
  payload[:attachments][0][:mrkdwn_in] = %w(text) if markdown_enabled
284
289
  end
285
290
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsSlack
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
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: 1.2.0
4
+ version: 1.3.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: 2017-07-13 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis