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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c56d11068e5884b23fdee2f3d8c004a64ae4a23d
4
- data.tar.gz: a183ce55b1a8c9e2ec5c68e1cec2d60fd119e88d
3
+ metadata.gz: 2f60d8ad3553919216112bb9c3cec04f932017f1
4
+ data.tar.gz: b5d9b7143c3b221dd595b211e4a3f1b4e0f39508
5
5
  SHA512:
6
- metadata.gz: d2b6bcc08818b37dbe747b0c7e13bbef5fdcde60e9fc957aeb37a3b7eaa2decc3dbd4e6a1ad850dbb7d81a8b3b23088ec0c2cc47efd7e0ae68568b45a83bece7
7
- data.tar.gz: 14d400c25c9276c37657cef36e03ec23030c3db1fdb0ed724fbfd2d9c7af265853f743ef2cfc5d9455e270baedb558d8210547977213ed0ea4e80f74eba05f1c
6
+ metadata.gz: 9858388400dac429984f897f9472ac8d1e3feb4d16a5da98fc410dd5ef82c76d3b60d49c6c1f357e4e64e7759a9ab8db032efbe4713daa98f4a9a5c097318ca8
7
+ data.tar.gz: 5ef014f9bb8a9542ef09619e8d3bfd79bfa4fa27114b81fc3c1659d82f4b5e67340d0c9823f0d124e757b8ea05bf6fb7b79eb6f7042c39923fd585b7dbec54d4
data/README.md CHANGED
@@ -12,6 +12,8 @@ And then execute:
12
12
 
13
13
  $ bundle install
14
14
 
15
+ This gem should be compatible with most ruby versions and interpreters. MRI 1.8.7 is supported on a best-effort basis.
16
+
15
17
  ## Usage
16
18
 
17
19
  Example:
@@ -8,14 +8,14 @@ module Slack
8
8
  module Post
9
9
 
10
10
  DefaultOpts = {
11
- channel: '#general'
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: chan || config[:channel],
18
- text: message
17
+ :channel => chan || config[:channel],
18
+ :text => message
19
19
  }
20
20
  if config[:username]
21
21
  pkt[:username] = config[:username]
@@ -1,5 +1,5 @@
1
1
  module Slack
2
2
  module Post
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
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.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-02 00:00:00.000000000 Z
11
+ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler