slack-poster 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack-poster/poster.rb +1 -1
- data/lib/slack-poster/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: f0a050b12a6ce8ae2c53036b2702123eca962fa4
|
4
|
+
data.tar.gz: a896b337ec14ca27be143f8c730bc3c4309d48a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac18b2c2d966ab3887c72d64456a570c3275d9176d3c4c4b70fa6769dba148b57845363d93f748a9292337032442e9f20c86699e1e9cc652ea625961a87d5a7
|
7
|
+
data.tar.gz: 93348ae808183956d5389e943b0f12990108363de88ac33f611dfbb40f28a631ea645895ffddc349c6cb945e893976b7162051540ae38b7f051a4c3755adf3e0
|
data/lib/slack-poster/poster.rb
CHANGED
@@ -47,7 +47,7 @@ module Slack
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def send_message(message)
|
50
|
-
body = message.is_a?(String) ? options.merge(text:
|
50
|
+
body = message.is_a?(String) ? options.merge(text: message) : options.merge(message.as_json)
|
51
51
|
|
52
52
|
attach_extras(body) unless attachments.empty?
|
53
53
|
|
data/lib/slack-poster/version.rb
CHANGED