ruboty-slack_rtm 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/adapters/slack_rtm.rb +2 -2
- data/lib/ruboty/slack_rtm/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: f217d7192d7d8f2175dfb86a77fabcf708811700
|
4
|
+
data.tar.gz: 026e96f448b87e99c30ffd1d92a4b5ee49235c4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a82f7a20511359d57e1915df808380cdf7cecd8ad7e814bcd4e88902c41dd54fdb396add71942fb5c6bdb994057726a25adc56353af0ac715d7d27fb3e1d74a
|
7
|
+
data.tar.gz: 2602950fc89273c455dd1ce5bf36f17d2bfdd2691b137424b3a670f8c9ede0ce6ff90a32c036efaa8b2814f06d93a5c929435a626145812f7d2be7f9936ebc50
|
@@ -129,9 +129,9 @@ module Ruboty
|
|
129
129
|
robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text']))
|
130
130
|
|
131
131
|
(data['attachments'] || []).each do |attachment|
|
132
|
-
body = (attachments['fallback'] || "#{attachment['text']} #{attachment['pretext']}")
|
132
|
+
body = (attachments['fallback'] || "#{attachment['text']} #{attachment['pretext']}")
|
133
133
|
|
134
|
-
robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless
|
134
|
+
robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless body.empty?
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|