slack-notifier 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68824ffcac979f733a61c7b5a77d0d21e8ed1dfe
4
- data.tar.gz: '08d9cee6b3a56238304f54756640794f443c78ec'
3
+ metadata.gz: b26d815a68d346fe2726a68a896d54276b91b6f9
4
+ data.tar.gz: 92803f407f329b8b908062a033adc583b86f00cc
5
5
  SHA512:
6
- metadata.gz: 65efd0c9618f26051b0f562f3ee46b5e6c697c479a6fe50d2014f77da3fdfb13c1ad6009f255cf6481cb4922d7bcc33b49ce8d4a65fb3372734f422f87189e7d
7
- data.tar.gz: 9b636e5fcd4d0bc0c815fb6d3c0625a9f1fd62a366bd24e4f0cd3fbe368eadc0405410ce0786a87b12ccd5fbd4f9968b1d89239cd955e9ed62f6407982a76276
6
+ metadata.gz: b08f9faeb71b9cd2d20fc96d30f8585ca530b16c6a02af6ed13b14ef47c7fca513c2173aae7cb344e02f247df40b4d258d4cf35d6c2251d7250d7a8aafc53af5
7
+ data.tar.gz: f611a92dbe367be0cced5b590b58fbaddde92f17fc9eb50e170086bda195291569906956d4b6d1000279fbfb1b14f6456d23e11c40df566ee0edf3fd0092ce8c
@@ -43,7 +43,7 @@ module Slack
43
43
 
44
44
  params[:http_options] = payload.delete(:http_options) if payload.key?(:http_options)
45
45
 
46
- middleware.call(payload).each do |pld|
46
+ middleware.call(payload).map do |pld|
47
47
  params[:payload] = pld.to_json
48
48
  client.post endpoint, params
49
49
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Slack
3
3
  class Notifier
4
- VERSION = "2.3.0".freeze # rubocop:disable Style/RedundantFreeze
4
+ VERSION = "2.3.1".freeze # rubocop:disable Style/RedundantFreeze
5
5
  end
6
6
  end
@@ -91,7 +91,8 @@ RSpec.describe Slack::Notifier do
91
91
  payload: '{"test":"stack"}'
92
92
  )
93
93
 
94
- subject.post
94
+ responses = subject.post
95
+ expect(responses).to eq([:posted])
95
96
  end
96
97
  end
97
98
  end
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: 2.3.0
4
+ version: 2.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: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " A slim ruby wrapper for posting to slack webhooks "
14
14
  email: