slack-cli 0.1 → 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: eb312d9cf901f9f0769a9b0203bad4c715d0dd05
4
- data.tar.gz: 386d017987747e8b585ddedb8d1a34f781e4d2a2
3
+ metadata.gz: 6d3066b6a543153736161a8adf8318f842b72593
4
+ data.tar.gz: 3821402745930730c261b70000ce8d8f27b3e14a
5
5
  SHA512:
6
- metadata.gz: 00e0ea8f6020be734ba1f07a3d1ce6c3b40e2578c63fb19d4c0a6241475be20339456f41141934815460389520506e03a6e830a46988b3c22fa48784bcb69521
7
- data.tar.gz: 62a50fd29f664a7e08a501215d084bc43844763be25d29c111884be07bb72e2a89b5700158b2f8449374140a586ba0430682e5ef3b090b021b6b221e041d336e
6
+ metadata.gz: 347edd091865b61746d54c2ee3e5bd2ec803c048f124882dba64a0174b6a3e4f3b432d6b06cd3388b7284efcaab0e8e5f1f8eb9fe418f320a810a5f5d9abc200
7
+ data.tar.gz: 06a5732714759e48b97e359f62d7509e9789b3aeadb733b181ccd4f129b8490086b459a51fea742e3b7f472c6a474aabc5d8a44a4208be625f91fc534a84a8ff
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /*.gem
11
+ /*~
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in slack-cli.gemspec
4
+ gemspec
@@ -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.
@@ -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).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -20,7 +20,6 @@ channel = ARGV[1]
20
20
  message = ARGV[2]
21
21
 
22
22
  options = YAML.load_file(ENV['HOME'] + '/.slack-cli.yml')
23
- p options
24
23
  if options[slack_name] == nil or options[slack_name]['token'] == nil
25
24
  puts 'Cannot found token in ~/.slack-cli.yml'
26
25
  exit(1)
@@ -0,0 +1,5 @@
1
+ module Slack
2
+ module Cli
3
+ VERSION = '0.2'
4
+ end
5
+ end
@@ -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.1'
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
- homepage: http://github.io
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: