slack_webhooks 0.0.3 → 0.0.4
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 +2 -1
- 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: 6392837e069b0b29a9fe559d5a518f95caa29b9c
|
4
|
+
data.tar.gz: dabb45b973648b81975afb435b25cb64f369bf81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b8395db74d7ce4e3d4ed796bc64e788fecb80882c26d3fe46a0fd609d095d73b39f039b13ccb3879c360fb7d1bfc4f65f69dad09668fb0bd068291a4dcb125
|
7
|
+
data.tar.gz: 2067c8b1b458b8bb81474d31ae5dcf78b826a1217bb99b7c0cc1f4bfe39c7c7a6816dc05671ec0b8e691e1706661d15a071b49f796e1cf9a8538daa8261edf8d
|
data/lib/slack_webhooks.rb
CHANGED
@@ -49,7 +49,6 @@ module SlackWebhooks
|
|
49
49
|
def send(s, options={})
|
50
50
|
# Now send it to back to the channel on slack
|
51
51
|
s = "#{command} #{text}" if s.nil?
|
52
|
-
puts "Posting #{s} to #{channel}. .."
|
53
52
|
notifier = Slack::Notifier.new webhook_url
|
54
53
|
notifier.channel = channel
|
55
54
|
notifier.username = botname
|
@@ -61,6 +60,8 @@ module SlackWebhooks
|
|
61
60
|
options[:icon_url] = self.icon_url
|
62
61
|
end
|
63
62
|
|
63
|
+
puts "Posting #{s} to #{channel} with options #{options}"
|
64
|
+
|
64
65
|
resp = notifier.ping s, options
|
65
66
|
|
66
67
|
p resp
|