slackcat 0.2.1 → 0.2.2

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: be3a8e5d238d74351da94bcdedd76868cdb958b2
4
- data.tar.gz: 221735b558a336d5ccb5651e15776f03a27aac70
3
+ metadata.gz: 7de9a8aab911b39858e30051b0df560a66a2729b
4
+ data.tar.gz: c7a3865e615c0acec76c6ab8dda3cde5060dcb0b
5
5
  SHA512:
6
- metadata.gz: 760e9bd8afc31213d54e8d852441416d42c252b43d2077b785d0a5bd9991e58af64268fd059bc4dc5e95010d4c028a697e2763804a495f372631c6155b6d20f6
7
- data.tar.gz: bc3b251a6b4ecb2cddea9eecc743c5c9c9241c5893c8bc256d742ba3282e0a9976e4bcafec4dd0da950fe5ea321d68ac04f9f59cc9249eb6f4b95a8d3b8ee4d3
6
+ metadata.gz: bd34212773780f8e2f16d8b551d78306d65ac4be038252e556d142a9e99da3d44e4281dc2dbe87cb24f70a351c45d927e97d0c1207e061a3df4efb0a8d15d520
7
+ data.tar.gz: 5f041285e516808dd62828b4a66ecbe283db084a672b4ab44e0d19f03622ecfcca34bdf041f75b6b61617a783a7fb903b286ad2f2874be9b43bc996c2b1289b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slackcat (0.1.0)
4
+ slackcat (0.2.2)
5
5
  httmultiparty
6
6
  trollop
7
7
 
data/bin/slackcat CHANGED
@@ -14,7 +14,7 @@ class Slackcat
14
14
  ## get a channel, group, im or user list
15
15
  def get_objects(method, key)
16
16
  self.class.get("/#{method}", query: { token: @token }).tap do |response|
17
- raise "error retrieving #{thing} list: #{response.fetch('error', 'unknown error')}" unless response['ok']
17
+ raise "error retrieving #{key} from #{method}: #{response.fetch('error', 'unknown error')}" unless response['ok']
18
18
  end.fetch(key)
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Slackcat
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler