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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a34f17a8acb5c086b0e0b443cf114559c8c51d29
4
- data.tar.gz: 7f49fd573c45047acf618cba1671b03f34ec7b41
3
+ metadata.gz: 6c28a651d17f150fa23a1788a373ad646d635704
4
+ data.tar.gz: 3b88722aeac99904225caa477019ac2ab66a4de5
5
5
  SHA512:
6
- metadata.gz: 2811b3ac411fca7cb958698d0dcd3f04cfd7b0af9fde18b569e0217ea51b6ba5326f26f0e4c34b2bfeeaede77b3f2a55e7ea8efe39cea75419422ef346a4fe99
7
- data.tar.gz: 3f65785e6f256961155f26a632539288e5a1a6f0e4fef040ef871f82d990d64659b856f04bdb8f2e00e85eb3bedb299ee495bbe3f85a30c1cbabeee99e741446
6
+ metadata.gz: 950899cef21dd298039d3467a280dd6a26e0307f6c45ff68419e5f429e0a857c768f439104e660c271f55563b65ba03e5eb8ef5334af5573c3a29186b31d53fa
7
+ data.tar.gz: cc182bfc304b86dd817906fe7ab389c70bfa802e41acded33e3144c20a56e894c2468ba3c7d2e404982af525ac7db112899afd94f3749c574e67f5457f842276
@@ -1,4 +1,5 @@
1
1
  rvm:
2
- - "2.0"
3
- - "2.1"
4
2
  - "2.2"
3
+ - "2.3"
4
+ - "2.4"
5
+ - "2.5"
@@ -1,3 +1,3 @@
1
1
  module SlackNotify
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "webmock", "~> 1.0"
26
26
 
27
27
  spec.add_dependency "faraday", "~> 0.9"
28
- spec.add_dependency "json", "~> 1.8"
28
+ spec.add_dependency "json", ">= 1.8", "<= 3.0"
29
29
  end
@@ -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\"}"=>true},
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\"}"=>true},
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\"}"=>true},
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\"}"=>true},
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\"}"=>true},
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\"}"=>true},
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\"}"=>true},
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.1
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: 2015-03-06 00:00:00.000000000 Z
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.4.6
162
+ rubygems_version: 2.6.13
157
163
  signing_key:
158
164
  specification_version: 4
159
165
  summary: Send notifications to a Slack channel