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 +4 -4
- data/README.md +1 -1
- data/bin/slackcat +3 -1
- data/lib/slackcat/version.rb +1 -1
- data/slackcat.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9530df0f2adb06a122bb7533813c0dadca7ebffa
|
4
|
+
data.tar.gz: 55b338f3cc37f0c57a3bb6e54bbb2ab64aae19d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1804f2af8432e1b50bcc28be73cecf6e89167e7c7abdbeb38d94d3811f60f923e852c9aa9c8169bffd7aedf613d1ec522ada2bf8b6945e7930289db946c6445e
|
7
|
+
data.tar.gz: 87464836bb03c29f4f28964964b5f8340bdfe74a897d1fdfa5e7260ce7052d3072db19d5e89256249794ba129876142e9a2a981076e76f32e802186612e36572
|
data/README.md
CHANGED
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
|
|
data/lib/slackcat/version.rb
CHANGED
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
|
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.
|
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
|
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: {}
|