sensu-plugins-slack 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/handler-slack-multichannel.rb +5 -0
- data/lib/sensu-plugins-slack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5579a23a8858bc8529d481ed4a02ea25f2102c77
|
4
|
+
data.tar.gz: 7dd114c35c39b4aa2ce84d9cac6a8a8f3b0b1b56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cf0939e2b68fb1db386ffe53d89259694c471e8553f804fd7782b6ce0eaaa0297a1d4e83b0729048cecec027ba4f5b4702b130a9e8d1070f26ad85af1953c48
|
7
|
+
data.tar.gz: a70ba0e606b325f8b093db76319902b66ee6a5390ee3233e4ad6a8d8b5c24934fe509a98de74b69191ffbf1537282dec33defb3ff0c5511e7de4968d22bdb7bf
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|