slack-notifier 0.3.0 → 0.3.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-notifier.rb +0 -4
- data/lib/slack-notifier/version.rb +1 -1
- data/spec/lib/slack-notifier_spec.rb +0 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74be6686d197c0285dad45f56a46c77dfedeae9b
|
4
|
+
data.tar.gz: 0df6fa89e9f255d7c531d94b591759e02dd72663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc10076579789f5e6ce385daa35230728bb070ed0173eb9aaa19452bfd3ac68659a3014f08320623c179d62b61c446da4942124e09151e80aca6612fcca883d
|
7
|
+
data.tar.gz: 02baddde738bd21635fe9c266c678c7cb2ac3fb42ced0238a1494c666d7a2309496040861f0e4e4afb07eb488b6aed32cb46cb9b819b838ff78805d35df01f21
|
data/lib/slack-notifier.rb
CHANGED
@@ -23,10 +23,6 @@ module Slack
|
|
23
23
|
message = LinkFormatter.format(message)
|
24
24
|
payload = { text: message }.merge(default_payload).merge(options)
|
25
25
|
|
26
|
-
unless payload.has_key? :channel
|
27
|
-
raise ArgumentError, "You must set a channel"
|
28
|
-
end
|
29
|
-
|
30
26
|
Net::HTTP.post_form endpoint, payload: payload.to_json
|
31
27
|
end
|
32
28
|
|
@@ -31,12 +31,6 @@ describe Slack::Notifier do
|
|
31
31
|
described_class.new('team','token').ping "the message", channel: 'foo'
|
32
32
|
end
|
33
33
|
|
34
|
-
it "requires a channel to be set" do
|
35
|
-
expect{
|
36
|
-
described_class.new('team','token').ping "the message"
|
37
|
-
}.to raise_error
|
38
|
-
end
|
39
|
-
|
40
34
|
context "with a default channel set" do
|
41
35
|
|
42
36
|
before :each do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " A slim ruby wrapper for posting to slack webhooks "
|
14
14
|
email:
|