slack-post 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/slack/post.rb +3 -3
- data/lib/slack/post/version.rb +1 -1
- 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: 2f60d8ad3553919216112bb9c3cec04f932017f1
|
4
|
+
data.tar.gz: b5d9b7143c3b221dd595b211e4a3f1b4e0f39508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9858388400dac429984f897f9472ac8d1e3feb4d16a5da98fc410dd5ef82c76d3b60d49c6c1f357e4e64e7759a9ab8db032efbe4713daa98f4a9a5c097318ca8
|
7
|
+
data.tar.gz: 5ef014f9bb8a9542ef09619e8d3bfd79bfa4fa27114b81fc3c1659d82f4b5e67340d0c9823f0d124e757b8ea05bf6fb7b79eb6f7042c39923fd585b7dbec54d4
|
data/README.md
CHANGED
data/lib/slack/post.rb
CHANGED
@@ -8,14 +8,14 @@ module Slack
|
|
8
8
|
module Post
|
9
9
|
|
10
10
|
DefaultOpts = {
|
11
|
-
channel
|
11
|
+
:channel => '#general'
|
12
12
|
}.freeze
|
13
13
|
|
14
14
|
def self.post_with_attachments(message, attachments, chan = nil, opts = {})
|
15
15
|
fail "Slack::Post.configure was not called or configuration was invalid" unless configured?(chan)
|
16
16
|
pkt = {
|
17
|
-
channel
|
18
|
-
text
|
17
|
+
:channel => chan || config[:channel],
|
18
|
+
:text => message
|
19
19
|
}
|
20
20
|
if config[:username]
|
21
21
|
pkt[:username] = config[:username]
|
data/lib/slack/post/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-post
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bragg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|