slack-cli 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +11 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/bin/setup +8 -0
- data/bin/slack-cli +0 -1
- data/lib/slack/cli/version.rb +5 -0
- data/slack-cli.gemspec +33 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d3066b6a543153736161a8adf8318f842b72593
|
4
|
+
data.tar.gz: 3821402745930730c261b70000ce8d8f27b3e14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 347edd091865b61746d54c2ee3e5bd2ec803c048f124882dba64a0174b6a3e4f3b432d6b06cd3388b7284efcaab0e8e5f1f8eb9fe418f320a810a5f5d9abc200
|
7
|
+
data.tar.gz: 06a5732714759e48b97e359f62d7509e9789b3aeadb733b181ccd4f129b8490086b459a51fea742e3b7f472c6a474aabc5d8a44a4208be625f91fc534a84a8ff
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Gaëtan JUVIN
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Slack::Cli
|
2
|
+
|
3
|
+
Small CLI client in Ruby to Slack.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Install it yourself as:
|
8
|
+
|
9
|
+
```
|
10
|
+
$>gem install slack-cli
|
11
|
+
```
|
12
|
+
Create your token here: https://api.slack.com/docs/oauth-test-tokens
|
13
|
+
```
|
14
|
+
$>cat ~/.slack-cli.yml
|
15
|
+
slack-name:
|
16
|
+
token: 'XXXX-XXXX-XXXX-XXXX'
|
17
|
+
$>
|
18
|
+
```
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
$>slack-cli
|
24
|
+
Usage: slack-cli "slack-name" "channel|@user" "message"
|
25
|
+
$>
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
## License
|
30
|
+
|
31
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/setup
ADDED
data/bin/slack-cli
CHANGED
data/slack-cli.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'slack/cli/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "slack-cli"
|
8
|
+
spec.version = Slack::Cli::VERSION
|
9
|
+
spec.authors = ["Gaëtan JUVIN"]
|
10
|
+
spec.email = ["gaetanjuvin@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Small CLI client in Ruby to Slack.}
|
13
|
+
spec.description = %q{Small CLI client to slack. :-)}
|
14
|
+
spec.homepage = "https://github.com/GaetanJUVIN/slack-cli"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
if spec.respond_to?(:metadata)
|
18
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
19
|
+
else
|
20
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
21
|
+
end
|
22
|
+
|
23
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
spec.executables = 'slack-cli'
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
|
+
spec.add_dependency "slack-ruby-client", '~> 0.7.7'
|
29
|
+
spec.add_dependency 'activesupport', '~> 5.0'
|
30
|
+
spec.add_dependency 'json', '~> 2.0'
|
31
|
+
spec.add_dependency 'thread_safe', '~> 0.3'
|
32
|
+
spec.add_dependency 'minitest', '~> 5.9'
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gaëtan JUVIN
|
@@ -102,8 +102,16 @@ executables:
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- bin/setup
|
105
111
|
- bin/slack-cli
|
106
|
-
|
112
|
+
- lib/slack/cli/version.rb
|
113
|
+
- slack-cli.gemspec
|
114
|
+
homepage: https://github.com/GaetanJUVIN/slack-cli
|
107
115
|
licenses:
|
108
116
|
- MIT
|
109
117
|
metadata:
|