slackcat 0.0.1 → 0.0.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: 8f11f1b851e7c133cf3d42791935865c8d8ee1a3
4
- data.tar.gz: 9bba5f97ae8edf49e617ebf560aebcf2845946c8
3
+ metadata.gz: 9530df0f2adb06a122bb7533813c0dadca7ebffa
4
+ data.tar.gz: 55b338f3cc37f0c57a3bb6e54bbb2ab64aae19d2
5
5
  SHA512:
6
- metadata.gz: 16cff737bd551802fe55f58701fd76b2bed9e997eae420efe6ea2cb771a4bee8c13ffc688b3c65bc7f4a375da72bee80c5fdabc9ef580f282dba07495cd21f35
7
- data.tar.gz: f4b80327411546a4172d9f151b29855f86cb1875f33cfcda4073c3395360060b177075e911a4cfca341fc4130105befe170fe9ad57213cc6ceb3824da05660ab
6
+ metadata.gz: 1804f2af8432e1b50bcc28be73cecf6e89167e7c7abdbeb38d94d3811f60f923e852c9aa9c8169bffd7aedf613d1ec522ada2bf8b6945e7930289db946c6445e
7
+ data.tar.gz: 87464836bb03c29f4f28964964b5f8340bdfe74a897d1fdfa5e7260ce7052d3072db19d5e89256249794ba129876142e9a2a981076e76f32e802186612e36572
data/README.md CHANGED
@@ -8,7 +8,7 @@ command-line.
8
8
  Log in to your slack.com account and get your API token from
9
9
  https://api.slack.com/.
10
10
 
11
- gem install 'slackcat'
11
+ gem install'slackcat
12
12
  export SLACKCAT_TOKEN=<your api token>
13
13
  echo 'hello world' | slackcat -c <channel>
14
14
 
data/bin/slackcat CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'httparty'
4
4
  require 'trollop'
5
5
 
6
+ require 'pp'
7
+
6
8
  class Slackcat
7
9
  include HTTParty
8
10
  base_uri 'https://slack.com/api'
@@ -30,7 +32,7 @@ opts = Trollop::options do
30
32
  opt :channels, 'Channels to share into', type: :string, short: 'c', default: ENV.fetch('SLACK_CHANNELS', nil)
31
33
  opt :filetype, 'File type identifier', type: :string, short: 't'
32
34
  opt :title, 'Title of file', type: :string, short: 'T'
33
- opt :filename, 'Filename of file', type: :string, short: 'n'
35
+ opt :filename, 'Filename of file', type: :string, short: 'n', default: ARGV.first
34
36
  opt :initial_comment, 'Initial comment to add', type: :string, short: 'i'
35
37
  end
36
38
 
@@ -1,3 +1,3 @@
1
1
  module Slackcat
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/slackcat.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Slackcat::VERSION
9
9
  spec.authors = ["Richard Lister"]
10
10
  spec.email = ["rlister@gmail.com"]
11
- spec.description = %q{Upload a file to slack}
11
+ spec.description = %q{Upload a file to Slack chat}
12
12
  spec.summary = %q{Upload a file to slack}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/rlister/slackcat"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Upload a file to slack
69
+ description: Upload a file to Slack chat
70
70
  email:
71
71
  - rlister@gmail.com
72
72
  executables:
@@ -82,7 +82,7 @@ files:
82
82
  - bin/slackcat
83
83
  - lib/slackcat/version.rb
84
84
  - slackcat.gemspec
85
- homepage: ''
85
+ homepage: https://github.com/rlister/slackcat
86
86
  licenses:
87
87
  - MIT
88
88
  metadata: {}