slack-notifier 0.3.0 → 0.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: 8e49764cf6dc75809e6155065bd277f9451d64ff
4
- data.tar.gz: 9ad72756470888e48c487042f17f668440dd7e41
3
+ metadata.gz: 74be6686d197c0285dad45f56a46c77dfedeae9b
4
+ data.tar.gz: 0df6fa89e9f255d7c531d94b591759e02dd72663
5
5
  SHA512:
6
- metadata.gz: 305a9e8e70b81cdca0cdc9d76262245e0852d845093f6a321a64ce9c1abc702e2a97d706dca7cbd270ee6fe4a1cd73b3f64ae72081fe9340a324979004345dff
7
- data.tar.gz: 88097ecf33b8c3c62f301ca6a81feb7fd17555aca735ea1ac14bd5a92ce94c522983e68f1b5730da7ce2a0222c167febfea486da11de72cf0331d16cdc14d036
6
+ metadata.gz: 4fc10076579789f5e6ce385daa35230728bb070ed0173eb9aaa19452bfd3ac68659a3014f08320623c179d62b61c446da4942124e09151e80aca6612fcca883d
7
+ data.tar.gz: 02baddde738bd21635fe9c266c678c7cb2ac3fb42ced0238a1494c666d7a2309496040861f0e4e4afb07eb488b6aed32cb46cb9b819b838ff78805d35df01f21
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Slack
2
2
  class Notifier
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -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.0
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-20 00:00:00.000000000 Z
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: