slack_webhooks 0.2.0 → 0.2.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_webhooks.rb +3 -3
- data/lib/slack_webhooks/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: 7c10874e79c1557fbdfd9f0d20dd8bb96c02ab54
|
4
|
+
data.tar.gz: dba3a30e613b336006b71ab034ad7fcb62e2e61f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cb968f08f0a4730e9a6950560d00601946adfcc5a5d11bf42a44ba54b73001f79320a933981a3e64180b5aa8b03b013405f0bad5bb31f113a359670b8b23d1
|
7
|
+
data.tar.gz: 01a1ae3912b95ef972d3470f99344057c3fd4d420496fd4da5f27830184d9da0af52727badce9d2be4a0e7f9abf7aff53b3037badec5f35cf933dd00a5f0becb
|
data/lib/slack_webhooks.rb
CHANGED
@@ -67,9 +67,9 @@ module SlackWebhooks
|
|
67
67
|
def send(s, options={})
|
68
68
|
# Now send it to back to the channel on slack
|
69
69
|
s = "#{command} #{text}" if s.nil?
|
70
|
-
notifier = Slack::Notifier.new webhook_url
|
71
|
-
notifier.channel = channel
|
72
|
-
notifier.username = botname
|
70
|
+
notifier = Slack::Notifier.new webhook_url, channel: channel, username: botname
|
71
|
+
# notifier.channel = channel
|
72
|
+
# notifier.username = botname
|
73
73
|
|
74
74
|
resp = nil
|
75
75
|
attachment = options.delete(:attachment)
|