slack-bot-server 0.4.0 → 0.4.1
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/lib/slack_bot_server/bot.rb +5 -5
- data/lib/slack_bot_server/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2057d536126e6a0d8c97aeaae58e2e3daaf91de1
|
4
|
+
data.tar.gz: 88d0b466fd378b2478eeb5daf8195e67b28aaa1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 691c0b764c00490f6dab7fbd3af1b1aefac684c03dc26260bd182f491cca8a4b928197799b9d6ad0023ae388c3ec84cfaed1bca3512052518f21506f2ce7a557
|
7
|
+
data.tar.gz: ecf4e0f45c96aa35ebe37d46dd06a8cc28d31734f8db62e3cc67ba70d299dcf1c95291ad7929f1bfa995dce0c606b46ea185fb9ea31f4ab3fdbda4425a04276c
|
data/CHANGELOG.md
CHANGED
data/lib/slack_bot_server/bot.rb
CHANGED
@@ -424,11 +424,11 @@ class SlackBotServer::Bot
|
|
424
424
|
end
|
425
425
|
|
426
426
|
def rtm_incompatible_message?(data)
|
427
|
-
data[:attachments].nil?
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
427
|
+
!(data[:attachments].nil? &&
|
428
|
+
data[:username].nil? &&
|
429
|
+
data[:icon_url].nil? &&
|
430
|
+
data[:icon_emoji].nil? &&
|
431
|
+
data[:channel].match(/^#/).nil?)
|
432
432
|
end
|
433
433
|
|
434
434
|
def default_message_options
|