ruboty-slack_rtm 2.4.1 → 2.4.2
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 +3 -3
- 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: f77e6ea5e7b18b37c9552ff4a2bdd4f49e543ef7
|
4
|
+
data.tar.gz: ad5c8c7c9f66110e4b67cffa8fa851d5fada7886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e6d5f9ca604bacb69ff8bcf0f6b91c95a00c7470d0e5666b5584382c789b9ebf785b2a8202a76f719b594bd0e78495217097876be2e0ac08391f4bf771024a
|
7
|
+
data.tar.gz: 2559a3b14c72ff93ca8a0e859a64071cc43e34366da65a78a350a02eed262d6be8051dbbed864f369d67a22e46cf0412ec3894c0cb8ced46f555f48e34516fa8
|
@@ -126,12 +126,12 @@ module Ruboty
|
|
126
126
|
time: Time.at(data['ts'].to_f)
|
127
127
|
}
|
128
128
|
|
129
|
-
robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text']))
|
129
|
+
robot.receive(message_info.merge(body: CGI.unescapeHTML(data['text'])))
|
130
130
|
|
131
131
|
(data['attachments'] || []).each do |attachment|
|
132
|
-
body =
|
132
|
+
body = attachment['fallback'] || "#{attachment['text']} #{attachment['pretext']}"
|
133
133
|
|
134
|
-
robot.receive(message_info.merge(body: CGI.unescapeHTML(body)) unless body.empty?
|
134
|
+
robot.receive(message_info.merge(body: CGI.unescapeHTML(body))) unless body.empty?
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|