slack-notify 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/lib/slack-notify/version.rb +1 -1
- data/slack-notify.gemspec +1 -1
- data/spec/slack-notify/client_spec.rb +7 -7
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c28a651d17f150fa23a1788a373ad646d635704
|
4
|
+
data.tar.gz: 3b88722aeac99904225caa477019ac2ab66a4de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 950899cef21dd298039d3467a280dd6a26e0307f6c45ff68419e5f429e0a857c768f439104e660c271f55563b65ba03e5eb8ef5334af5573c3a29186b31d53fa
|
7
|
+
data.tar.gz: cc182bfc304b86dd817906fe7ab389c70bfa802e41acded33e3144c20a56e894c2468ba3c7d2e404982af525ac7db112899afd94f3749c574e67f5457f842276
|
data/.travis.yml
CHANGED
data/lib/slack-notify/version.rb
CHANGED
data/slack-notify.gemspec
CHANGED
@@ -31,7 +31,7 @@ describe SlackNotify::Client do
|
|
31
31
|
|
32
32
|
before do
|
33
33
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
34
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>
|
34
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>nil},
|
35
35
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
36
36
|
to_return(:status => 200, :body => "", :headers => {})
|
37
37
|
end
|
@@ -50,7 +50,7 @@ describe SlackNotify::Client do
|
|
50
50
|
|
51
51
|
before do
|
52
52
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
53
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_url\":\"foobar\",\"unfurl_links\":\"1\"}"=>
|
53
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_url\":\"foobar\",\"unfurl_links\":\"1\"}"=>nil},
|
54
54
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
55
55
|
to_return(:status => 200, :body => "", :headers => {})
|
56
56
|
end
|
@@ -70,7 +70,7 @@ describe SlackNotify::Client do
|
|
70
70
|
|
71
71
|
before do
|
72
72
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
73
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_emoji\":\"foobar\",\"unfurl_links\":\"1\"}"=>
|
73
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_emoji\":\"foobar\",\"unfurl_links\":\"1\"}"=>nil},
|
74
74
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
75
75
|
to_return(:status => 200, :body => "", :headers => {})
|
76
76
|
end
|
@@ -90,7 +90,7 @@ describe SlackNotify::Client do
|
|
90
90
|
|
91
91
|
before do
|
92
92
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
93
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"link_names\":1,\"unfurl_links\":\"1\"}"=>
|
93
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"link_names\":1,\"unfurl_links\":\"1\"}"=>nil},
|
94
94
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
95
95
|
to_return(:status => 200, :body => "", :headers => {})
|
96
96
|
end
|
@@ -114,7 +114,7 @@ describe SlackNotify::Client do
|
|
114
114
|
context "when team name is invalid" do
|
115
115
|
before do
|
116
116
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
117
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>
|
117
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>nil},
|
118
118
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
119
119
|
to_return(:status => 404, :body => "Line 1\nLine 2\nLine 3", :headers => {})
|
120
120
|
end
|
@@ -127,7 +127,7 @@ describe SlackNotify::Client do
|
|
127
127
|
context "when token is invalid" do
|
128
128
|
before do
|
129
129
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
130
|
-
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>
|
130
|
+
with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"unfurl_links\":\"1\"}"=>nil},
|
131
131
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
132
132
|
to_return(:status => 500, :body => "No hooks", :headers => {})
|
133
133
|
end
|
@@ -141,7 +141,7 @@ describe SlackNotify::Client do
|
|
141
141
|
context "when channel is invalid" do
|
142
142
|
before do
|
143
143
|
stub_request(:post, "https://hooks.slack.com/services/foo/bar").
|
144
|
-
with(:body => {"{\"text\":\"message\",\"username\":\"webhookbot\",\"channel\":\"#foobar\",\"unfurl_links\":\"1\"}"=>
|
144
|
+
with(:body => {"{\"text\":\"message\",\"username\":\"webhookbot\",\"channel\":\"#foobar\",\"unfurl_links\":\"1\"}"=>nil},
|
145
145
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
146
146
|
to_return(:status => 500, :body => "Invalid channel specified", :headers => {})
|
147
147
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Sosedoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -98,16 +98,22 @@ dependencies:
|
|
98
98
|
name: json
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.8'
|
104
|
+
- - "<="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '3.0'
|
104
107
|
type: :runtime
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
|
-
- - "
|
111
|
+
- - ">="
|
109
112
|
- !ruby/object:Gem::Version
|
110
113
|
version: '1.8'
|
114
|
+
- - "<="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.0'
|
111
117
|
description: Send notifications to a Slack channel
|
112
118
|
email:
|
113
119
|
- dan.sosedoff@gmail.com
|
@@ -153,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
159
|
version: '0'
|
154
160
|
requirements: []
|
155
161
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.6.13
|
157
163
|
signing_key:
|
158
164
|
specification_version: 4
|
159
165
|
summary: Send notifications to a Slack channel
|