slappy 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.sample +1 -0
- data/.gitignore +7 -0
- data/.hound.yml +29 -0
- data/.rspec +1 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +17 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Guardfile +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +141 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/slappy.rb +21 -0
- data/lib/slappy/client.rb +56 -0
- data/lib/slappy/configuration.rb +21 -0
- data/lib/slappy/event.rb +21 -0
- data/lib/slappy/listener.rb +17 -0
- data/lib/slappy/version.rb +3 -0
- data/slappy.gemspec +33 -0
- metadata +219 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8034e5ae2cda470ffff7983b126ca56adfb5efad
|
4
|
+
data.tar.gz: 833b8fe2cba8bc864071119b4ecc670acf625365
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e856b1cce7f2bb1a438e727578408b93d9903b79a199295d41e0d9bfd43426a35d4cb7e3774051bc0c6b7c34af76a0e0c5cca0bdd161857b7dfd5029b583ae7
|
7
|
+
data.tar.gz: 5dc257ec761b6f1698c71efd9252f7b0d0aee991f439f2515a7aa7c8bc7babe7c05427762cba7724fdedccecba1bae530ba0c22cb99f7c68240eaacdb90d4d4f
|
data/.env.sample
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
SLACK_TOKEN=
|
data/.gitignore
ADDED
data/.hound.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- "vendor/**/*"
|
4
|
+
- "Gemfile"
|
5
|
+
- "Guardfile"
|
6
|
+
- "slappy.gemspec"
|
7
|
+
DisplayCopNames: true
|
8
|
+
|
9
|
+
##################### Style ##################################
|
10
|
+
|
11
|
+
Style/Documentation:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Style/StringLiterals:
|
15
|
+
EnforcedStyle: single_quotes
|
16
|
+
|
17
|
+
##################### Metrics ##################################
|
18
|
+
|
19
|
+
Metrics/AbcSize:
|
20
|
+
Max: 30
|
21
|
+
|
22
|
+
Metrics/CyclomaticComplexity:
|
23
|
+
Max: 10
|
24
|
+
|
25
|
+
Metrics/LineLength:
|
26
|
+
Max: 100
|
27
|
+
|
28
|
+
Metrics/MethodLength:
|
29
|
+
Max: 20
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--format documentation --color
|
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.0
|
4
|
+
- 2.1
|
5
|
+
- 2.2
|
6
|
+
- ruby-head
|
7
|
+
before_install: gem install bundler -v "~> 1.10"
|
8
|
+
bundler_args: --jobs=2
|
9
|
+
cache: bundler
|
10
|
+
before_script:
|
11
|
+
- export CODECLIMATE_REPO_TOKEN=46e09f028aadd0d0f7e8aa4d917dc6f053c0a3d9ab0f82aab41f0918acc0384a
|
12
|
+
script:
|
13
|
+
- ruby --version
|
14
|
+
- bundle exec rspec
|
15
|
+
branches:
|
16
|
+
only:
|
17
|
+
- master
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
5
|
+
# directories %w(app lib config test spec features) \
|
6
|
+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
+
|
8
|
+
## Note: if you are using the `directories` clause above and you are not
|
9
|
+
## watching the project directory ('.'), then you will want to move
|
10
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
+
#
|
12
|
+
# $ mkdir config
|
13
|
+
# $ mv Guardfile config/
|
14
|
+
# $ ln -s config/Guardfile .
|
15
|
+
#
|
16
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
+
|
18
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
19
|
+
# rspec may be run, below are examples of the most common uses.
|
20
|
+
# * bundler: 'bundle exec rspec'
|
21
|
+
# * bundler binstubs: 'bin/rspec'
|
22
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
23
|
+
# installed the spring binstubs per the docs)
|
24
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
25
|
+
# * 'just' rspec: 'rspec'
|
26
|
+
|
27
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
28
|
+
watch(%r{^spec/.+_spec\.rb$})
|
29
|
+
watch(%r{^lib/(.+)/(.+)\.rb$}) { |m| "spec/#{m[1]}/#{m[2]}_spec.rb" }
|
30
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
31
|
+
end
|
32
|
+
|
33
|
+
guard :rubocop, all_on_start: false, cli: ['--format', 'clang', '--display-cop-names'], cmd: 'bundle exec rubocop', notification: true do
|
34
|
+
watch(%r{.+\.rb$})
|
35
|
+
watch(%r{.+\.rake$})
|
36
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
37
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 yuemori
|
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,141 @@
|
|
1
|
+
# Slappy
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/yuemori/slappy.svg?branch=master)](https://travis-ci.org/yuemori/slappy)
|
4
|
+
[![Code Climate](https://codeclimate.com/repos/563cbaad1787d72930000582/badges/9753daa4ecd1a303b6ae/gpa.svg)](https://codeclimate.com/repos/563cbaad1787d72930000582/feed)
|
5
|
+
[![Test Coverage](https://codeclimate.com/repos/563cbaad1787d72930000582/badges/9753daa4ecd1a303b6ae/coverage.svg)](https://codeclimate.com/repos/563cbaad1787d72930000582/coverage)
|
6
|
+
[![Dependency Status](https://gemnasium.com/yuemori/slappy.svg)](https://gemnasium.com/yuemori/slappy)
|
7
|
+
|
8
|
+
This gem support to make slack bot with hubot like interface.
|
9
|
+
Use the Slack Realtime API(see the [official-documentation](https://api.slack.com/rtm)).
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'slappy'
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install slappy
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
### ENV
|
29
|
+
Store configuration value in environment variables. They are easy to change between deploys without changing any code.
|
30
|
+
|
31
|
+
```
|
32
|
+
SLACK_TOKEN - required (when not configured)
|
33
|
+
```
|
34
|
+
|
35
|
+
Slack API Token generated in [this page](https://api.slack.com/web).
|
36
|
+
|
37
|
+
### Configure
|
38
|
+
Configure default settings.
|
39
|
+
There configrations effect on send message to slack when use `say` method and should override when option given.
|
40
|
+
|
41
|
+
#### Example
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
require 'slappy'
|
45
|
+
|
46
|
+
Slappy.configure do |config|
|
47
|
+
config.username = 'slappy'
|
48
|
+
config.channel = '#general'
|
49
|
+
config.icon_emoji = ':slappy:'
|
50
|
+
end
|
51
|
+
|
52
|
+
slappy = Slappy::Client.new
|
53
|
+
slappy.say 'hello!' #=> username: slappy, channel: '#general', icon_emoji: ':slappy:'
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Configuration Parameters
|
57
|
+
|
58
|
+
```
|
59
|
+
token - default: ENV['SLACK_TOKEN']
|
60
|
+
botname - not effect now
|
61
|
+
username - default: 'slappy'
|
62
|
+
icon_emoji - default: nil
|
63
|
+
channel - default: '#general'
|
64
|
+
icon_url - default: nil
|
65
|
+
```
|
66
|
+
|
67
|
+
### Example Code
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
require 'slappy'
|
71
|
+
|
72
|
+
slappy = Slappy::Client.new
|
73
|
+
|
74
|
+
# called when start up
|
75
|
+
slappy.hello do
|
76
|
+
puts 'successfly connected'
|
77
|
+
end
|
78
|
+
|
79
|
+
# called when match message
|
80
|
+
slappy.hear(/foo/) do
|
81
|
+
puts 'foo'
|
82
|
+
end
|
83
|
+
|
84
|
+
# called when match message with pattern match
|
85
|
+
slappy.hear(/bar (.*)/) do |event|
|
86
|
+
puts event.matches[1] #=> Event#matches return MatchData object
|
87
|
+
end
|
88
|
+
|
89
|
+
# event object is slack event JSON (convert to [hashie](https://github.com/intridea/hashie))
|
90
|
+
slappy.hear(/bar (.*)/) do |event|
|
91
|
+
puts event.channel #=> channel id
|
92
|
+
slappy.say 'slappy!', channel: event.channel #=> to received message channel
|
93
|
+
slappy.say 'slappy!', channel: '#general'
|
94
|
+
slappy.say 'slappy!', username: 'slappy!', icon_emoji: ':slappy:'
|
95
|
+
end
|
96
|
+
|
97
|
+
slappy.start
|
98
|
+
```
|
99
|
+
|
100
|
+
## How to run tests
|
101
|
+
|
102
|
+
Please create a file named .env on the root of this repository. You can use .env.example file as a template
|
103
|
+
|
104
|
+
```
|
105
|
+
cp .env.example .env
|
106
|
+
```
|
107
|
+
|
108
|
+
and edit `.env` file properly.
|
109
|
+
|
110
|
+
```
|
111
|
+
SLACK_TOKEN=abcd-1234567890-1234567890-1234567890
|
112
|
+
```
|
113
|
+
|
114
|
+
Then run tests.
|
115
|
+
|
116
|
+
```
|
117
|
+
bundle install
|
118
|
+
bundle exec rspec
|
119
|
+
```
|
120
|
+
|
121
|
+
## Feature
|
122
|
+
|
123
|
+
- [ ] Support private channel
|
124
|
+
- [ ] Support Schedule event (cron like)
|
125
|
+
- [ ] Generate template settings
|
126
|
+
- [ ] CLI commands
|
127
|
+
- [ ] Add bot name
|
128
|
+
- [ ] client#respond (hubot#respond)
|
129
|
+
|
130
|
+
## Contributing
|
131
|
+
|
132
|
+
1. Fork it ( http://github.com/aki017/slack-ruby-gem/fork )
|
133
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
134
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
135
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
136
|
+
5. Create new Pull Request
|
137
|
+
|
138
|
+
## License
|
139
|
+
|
140
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
141
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'slappy'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/slappy.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'slappy/client'
|
2
|
+
require 'slappy/configuration'
|
3
|
+
require 'slappy/version'
|
4
|
+
|
5
|
+
module Slappy
|
6
|
+
class << self
|
7
|
+
@configuration = nil
|
8
|
+
|
9
|
+
def configure
|
10
|
+
@configuration = Configuration.new
|
11
|
+
|
12
|
+
yield configuration if block_given?
|
13
|
+
|
14
|
+
configuration
|
15
|
+
end
|
16
|
+
|
17
|
+
def configuration
|
18
|
+
@configuration || configure
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'slack'
|
2
|
+
require 'slappy/event'
|
3
|
+
require 'slappy/listener'
|
4
|
+
require 'slappy/configuration'
|
5
|
+
|
6
|
+
module Slappy
|
7
|
+
class Client
|
8
|
+
def initialize
|
9
|
+
Slack.configure { |slack| slack.token = config.token }
|
10
|
+
@listeners = {}
|
11
|
+
end
|
12
|
+
|
13
|
+
def client
|
14
|
+
@client ||= Slack.realtime
|
15
|
+
end
|
16
|
+
|
17
|
+
def start
|
18
|
+
@listeners.each do |key, array|
|
19
|
+
client.on key do |data|
|
20
|
+
array.each do |listener|
|
21
|
+
event = Event.new(data, listener.pattern) if key == :message
|
22
|
+
listener.call(event)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
client.start
|
27
|
+
end
|
28
|
+
|
29
|
+
def hello(&block)
|
30
|
+
@listeners[:hello] ||= []
|
31
|
+
@listeners[:hello].push block
|
32
|
+
end
|
33
|
+
|
34
|
+
def hear(regexp, &block)
|
35
|
+
@listeners[:message] ||= []
|
36
|
+
@listeners[:message].push Listener.new(regexp, block)
|
37
|
+
end
|
38
|
+
|
39
|
+
def say(text, options = {})
|
40
|
+
options[:text] = text
|
41
|
+
params = merge_send_params options
|
42
|
+
Slack.chat_postMessage params
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def config
|
48
|
+
Slappy.configuration
|
49
|
+
end
|
50
|
+
|
51
|
+
def merge_send_params(options)
|
52
|
+
default = config.send_params
|
53
|
+
default.merge options
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Slappy
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :username, :botname, :token, :icon_emoji, :channel, :icon_url
|
4
|
+
|
5
|
+
def botname
|
6
|
+
@botname || username
|
7
|
+
end
|
8
|
+
|
9
|
+
def token
|
10
|
+
@token || ENV['SLACK_TOKEN']
|
11
|
+
end
|
12
|
+
|
13
|
+
def username
|
14
|
+
@username || 'slappy'
|
15
|
+
end
|
16
|
+
|
17
|
+
def send_params
|
18
|
+
{ username: username, icon_emoji: icon_emoji, channel: channel, icon_url: icon_url }
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/slappy/event.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'hashie'
|
2
|
+
require 'forwardable'
|
3
|
+
|
4
|
+
module Slappy
|
5
|
+
class Event
|
6
|
+
extend Forwardable
|
7
|
+
|
8
|
+
attr_reader :matches
|
9
|
+
|
10
|
+
def_delegators :@data, :method_missing, :respond_to_missing?
|
11
|
+
|
12
|
+
def initialize(data, pattern)
|
13
|
+
@data = Hashie::Mash.new data
|
14
|
+
@matches = text.match pattern
|
15
|
+
end
|
16
|
+
|
17
|
+
def text
|
18
|
+
@data['text'].to_s
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Slappy
|
2
|
+
class Listener
|
3
|
+
def initialize(regexp, callback)
|
4
|
+
@regexp = regexp
|
5
|
+
@callback = callback
|
6
|
+
end
|
7
|
+
|
8
|
+
def call(event)
|
9
|
+
return unless event.text.match @regexp
|
10
|
+
@callback.call(event)
|
11
|
+
end
|
12
|
+
|
13
|
+
def pattern
|
14
|
+
@regexp
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/slappy.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 'slappy/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "slappy"
|
8
|
+
spec.version = Slappy::VERSION
|
9
|
+
spec.authors = ["yuemori"]
|
10
|
+
spec.email = ["yuemori@aiming-inc.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Slack bot maker}
|
13
|
+
spec.description = %q{Simple Slack bot maker. This gem wapper to Slack Realtime API}
|
14
|
+
spec.homepage = "https://github.com/yuemori/slappy"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'slack-api'
|
23
|
+
spec.add_dependency 'hashie'
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "guard"
|
28
|
+
spec.add_development_dependency "guard-rspec"
|
29
|
+
spec.add_development_dependency "rubocop"
|
30
|
+
spec.add_development_dependency "guard-rubocop"
|
31
|
+
spec.add_development_dependency "dotenv"
|
32
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slappy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- yuemori
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: slack-api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashie
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.10'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: dotenv
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: codeclimate-test-reporter
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: Simple Slack bot maker. This gem wapper to Slack Realtime API
|
168
|
+
email:
|
169
|
+
- yuemori@aiming-inc.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".env.sample"
|
175
|
+
- ".gitignore"
|
176
|
+
- ".hound.yml"
|
177
|
+
- ".rspec"
|
178
|
+
- ".rubocop.yml"
|
179
|
+
- ".travis.yml"
|
180
|
+
- CODE_OF_CONDUCT.md
|
181
|
+
- Gemfile
|
182
|
+
- Guardfile
|
183
|
+
- LICENSE.txt
|
184
|
+
- README.md
|
185
|
+
- Rakefile
|
186
|
+
- bin/console
|
187
|
+
- bin/setup
|
188
|
+
- lib/slappy.rb
|
189
|
+
- lib/slappy/client.rb
|
190
|
+
- lib/slappy/configuration.rb
|
191
|
+
- lib/slappy/event.rb
|
192
|
+
- lib/slappy/listener.rb
|
193
|
+
- lib/slappy/version.rb
|
194
|
+
- slappy.gemspec
|
195
|
+
homepage: https://github.com/yuemori/slappy
|
196
|
+
licenses:
|
197
|
+
- MIT
|
198
|
+
metadata: {}
|
199
|
+
post_install_message:
|
200
|
+
rdoc_options: []
|
201
|
+
require_paths:
|
202
|
+
- lib
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
requirements: []
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 2.4.5.1
|
216
|
+
signing_key:
|
217
|
+
specification_version: 4
|
218
|
+
summary: Slack bot maker
|
219
|
+
test_files: []
|