boty 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env +2 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +52 -0
- data/LICENSE.txt +21 -0
- data/Procfile +1 -0
- data/README.md +41 -0
- data/Rakefile +5 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/boty +23 -0
- data/boty.gemspec +33 -0
- data/lib/assets/.keep +0 -0
- data/lib/boty/bot.rb +89 -0
- data/lib/boty/dsl.rb +0 -0
- data/lib/boty/message.rb +24 -0
- data/lib/boty/session.rb +60 -0
- data/lib/boty/version.rb +3 -0
- data/lib/boty.rb +21 -0
- data/lib/tasks/.keep +0 -0
- data/log/.keep +0 -0
- data/script/boty/pug.rb +10 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- metadata +186 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 26a97fbe857b6bd235700d9ccfc27873546108de
|
4
|
+
data.tar.gz: d229decc0996d14056e398cc8e0afb2c8a1363ca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9822d6113cab1579edddfc4c162583c717de0ce960911ff718b9e8cfc1931adba10165e7762548727d76299a128c4d411406225712b1bb68605fc137129c69aa
|
7
|
+
data.tar.gz: 9d6d41549b9638608265664eadd325fc9f2fa11cf2cb377f036c2415872e8a58decd0eb6777849ca6c290f62c851e294367c0de6b4733dd5758188501ceaec98
|
data/.env
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore all logfiles and tempfiles.
|
11
|
+
/log/*
|
12
|
+
!/log/.keep
|
13
|
+
/tmp
|
14
|
+
|
15
|
+
.env.local
|
data/.rspec
ADDED
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/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
boty (0.0.1)
|
5
|
+
eventmachine
|
6
|
+
faye-websocket
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
byebug (8.2.0)
|
12
|
+
diff-lcs (1.2.5)
|
13
|
+
dotenv (2.0.2)
|
14
|
+
eventmachine (1.0.8)
|
15
|
+
faye-websocket (0.10.1)
|
16
|
+
eventmachine (>= 0.12.0)
|
17
|
+
websocket-driver (>= 0.5.1)
|
18
|
+
foreman (0.78.0)
|
19
|
+
thor (~> 0.19.1)
|
20
|
+
rake (10.4.2)
|
21
|
+
rspec (3.4.0)
|
22
|
+
rspec-core (~> 3.4.0)
|
23
|
+
rspec-expectations (~> 3.4.0)
|
24
|
+
rspec-mocks (~> 3.4.0)
|
25
|
+
rspec-core (3.4.0)
|
26
|
+
rspec-support (~> 3.4.0)
|
27
|
+
rspec-expectations (3.4.0)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.4.0)
|
30
|
+
rspec-mocks (3.4.0)
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
+
rspec-support (~> 3.4.0)
|
33
|
+
rspec-support (3.4.0)
|
34
|
+
thor (0.19.1)
|
35
|
+
websocket-driver (0.6.3)
|
36
|
+
websocket-extensions (>= 0.1.0)
|
37
|
+
websocket-extensions (0.1.2)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
boty!
|
44
|
+
bundler (~> 1.10)
|
45
|
+
byebug
|
46
|
+
dotenv
|
47
|
+
foreman
|
48
|
+
rake (~> 10.0)
|
49
|
+
rspec
|
50
|
+
|
51
|
+
BUNDLED WITH
|
52
|
+
1.10.6
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Ricardo Valeriano
|
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/Procfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
worker: bundle exec ./boty
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Boty
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/boty`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'boty'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install boty
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ricardovaleriano/boty. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "boty"
|
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/boty
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require "./lib/boty"
|
3
|
+
|
4
|
+
session = Boty::Session.new
|
5
|
+
session.verbose = true
|
6
|
+
session.start do |bot|
|
7
|
+
bot.verbose = true
|
8
|
+
bot.message(/jabber/i) do |message|
|
9
|
+
next if message.from? self
|
10
|
+
say "Ohay <@#{message.user}>! Ainda não sei o que fazer aqui. Sorry."
|
11
|
+
end
|
12
|
+
|
13
|
+
bot.respond(/pug me/i) do
|
14
|
+
response = JSON.parse Net::HTTP.get(URI "http://pugme.herokuapp.com/random")
|
15
|
+
say "<#{response["pug"]}>"
|
16
|
+
end
|
17
|
+
|
18
|
+
bot.respond(/pug bomb( (\d+))?/i) do |message|
|
19
|
+
count = message.match[2] || 5
|
20
|
+
response = JSON.parse Net::HTTP.get(URI "http://pugme.herokuapp.com/bomb?count=#{count}")
|
21
|
+
response["pugs"].each do |pug| say "<#{pug}>" end
|
22
|
+
end
|
23
|
+
end
|
data/boty.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 'boty/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "boty"
|
8
|
+
spec.version = Boty::VERSION
|
9
|
+
spec.authors = ["Ricardo Valeriano"]
|
10
|
+
spec.email = ["ricardo.valeriano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Boty is a pretty bot specially tailored for Slack.}
|
13
|
+
spec.description = %q{Boty is intendted to be a framework for construction of automated Slack Bots for your needs.}
|
14
|
+
spec.homepage = "http://github.com/ricardovaleriano/boty"
|
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 = "bin"
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.required_ruby_version = "~>2.0"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "eventmachine"
|
25
|
+
spec.add_runtime_dependency "faye-websocket"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "foreman"
|
30
|
+
spec.add_development_dependency "byebug"
|
31
|
+
spec.add_development_dependency "rspec"
|
32
|
+
spec.add_development_dependency "dotenv"
|
33
|
+
end
|
data/lib/assets/.keep
ADDED
File without changes
|
data/lib/boty/bot.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
module Boty
|
2
|
+
class Bot
|
3
|
+
attr_writer :verbose
|
4
|
+
attr_reader :id, :name
|
5
|
+
|
6
|
+
def initialize(bot_info, session)
|
7
|
+
@raw_info = bot_info
|
8
|
+
@id = bot_info["id"]
|
9
|
+
@name = bot_info["name"]
|
10
|
+
@verbose = false
|
11
|
+
@events = {}
|
12
|
+
end
|
13
|
+
|
14
|
+
def event(data)
|
15
|
+
type = data["type"].to_sym
|
16
|
+
debug "bot specifc event[#{type}] arrived", data
|
17
|
+
unless @events[type]
|
18
|
+
debug "no action binded to #{type}"
|
19
|
+
return
|
20
|
+
end
|
21
|
+
|
22
|
+
@events[type].each do |action|
|
23
|
+
action.call data
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def on(event_type, &block)
|
28
|
+
@events[event_type.to_sym] ||= []
|
29
|
+
@events[event_type.to_sym] << block
|
30
|
+
end
|
31
|
+
|
32
|
+
def message(regex, &block)
|
33
|
+
on :message do |data|
|
34
|
+
yield_message_if_matches(data, block) do
|
35
|
+
regex.match data["text"]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def respond(regex, &block)
|
41
|
+
on :message do |data|
|
42
|
+
# ignores if the mentions was sent by the bot itself, avoid infinite
|
43
|
+
# loops.
|
44
|
+
next if data["user"] == self.id
|
45
|
+
debug "message wasn't from bot itself, so continuing..."
|
46
|
+
yield_message_if_matches(data, block) do
|
47
|
+
has_mention?(data) && regex.match(data["text"])
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def say(message)
|
53
|
+
channel = (@_message.channel if @_message) || "general"
|
54
|
+
uri = URI("https://slack.com/api/chat.postMessage?" +
|
55
|
+
"token=#{ENV['SLACK_BOT_API_TOKEN']}&as_user=true&channel=#{channel}&" +
|
56
|
+
"text=#{URI.encode message}")
|
57
|
+
post_response = Net::HTTP.get uri
|
58
|
+
debug nil, post_response
|
59
|
+
end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
def verbose?; @verbose; end
|
64
|
+
|
65
|
+
def debug(message, *stuff)
|
66
|
+
return unless verbose?
|
67
|
+
|
68
|
+
$stdout.puts message
|
69
|
+
method = $stdout.respond_to?(:pp) ? :pp : :p
|
70
|
+
talker = $stdout.method method
|
71
|
+
stuff.each do |printable| talker.call printable end
|
72
|
+
end
|
73
|
+
|
74
|
+
def has_mention?(data)
|
75
|
+
/<@#{name}>|<@#{id}>/ =~ data["text"]
|
76
|
+
end
|
77
|
+
|
78
|
+
def yield_message_if_matches(data, message_block)
|
79
|
+
match = yield
|
80
|
+
if match
|
81
|
+
# Store the current message in the bot context so it can be used to
|
82
|
+
# infer channel to respond, and so on.
|
83
|
+
@_message = Message.new data, match: match
|
84
|
+
instance_exec @_message, &message_block
|
85
|
+
@_message = nil
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
data/lib/boty/dsl.rb
ADDED
File without changes
|
data/lib/boty/message.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Boty
|
2
|
+
class Message
|
3
|
+
attr_accessor :text, :user, :channel, :ts, :team
|
4
|
+
attr_reader :match
|
5
|
+
|
6
|
+
def initialize(data, match: nil)
|
7
|
+
@id = data["user"]
|
8
|
+
@text = data["text"]
|
9
|
+
@user = data["user"]
|
10
|
+
@channel = data["channel"]
|
11
|
+
@ts = data["ts"]
|
12
|
+
@team = data["team"]
|
13
|
+
@match = match
|
14
|
+
end
|
15
|
+
|
16
|
+
def from?(author)
|
17
|
+
if author.respond_to? :id
|
18
|
+
@id == author.id
|
19
|
+
else
|
20
|
+
@id == author
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/boty/session.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require "json"
|
2
|
+
require "net/http"
|
3
|
+
|
4
|
+
module Boty
|
5
|
+
class Session
|
6
|
+
SLACK_RTM_START_URL = "https://%{domain}.slack.com/api/rtm.start?"+
|
7
|
+
"token=%{token}&"+
|
8
|
+
"simple_latest=true&no_unreads=true"
|
9
|
+
private_constant :SLACK_RTM_START_URL
|
10
|
+
|
11
|
+
attr_reader :bot
|
12
|
+
attr_writer :verbose
|
13
|
+
|
14
|
+
def initialize(slack_domain = ENV["SLACK_COMPANY"], verbose: false)
|
15
|
+
@rtm_start_url = SLACK_RTM_START_URL.sub "%{domain}", slack_domain
|
16
|
+
@rtm_start_url = @rtm_start_url.sub "%{token}", ENV["SLACK_BOT_API_TOKEN"]
|
17
|
+
@verbose = verbose
|
18
|
+
end
|
19
|
+
|
20
|
+
def start(&block)
|
21
|
+
EM.run do
|
22
|
+
login
|
23
|
+
bot = Bot.new @slack_info["self"], self
|
24
|
+
block.call bot if block_given?
|
25
|
+
debug "bot is configured and ready to go!"
|
26
|
+
|
27
|
+
debug "starting to listen on #{@session_url}"
|
28
|
+
@ws = Faye::WebSocket::Client.new @session_url
|
29
|
+
|
30
|
+
@ws.on :message do |event|
|
31
|
+
debug "message arrived", event.data
|
32
|
+
bot.event JSON.parse(event.data)
|
33
|
+
end
|
34
|
+
|
35
|
+
@ws.on :close do
|
36
|
+
debug "bye bye"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
def verbose?; @verbose; end
|
43
|
+
|
44
|
+
def debug(message, *stuff)
|
45
|
+
return unless verbose?
|
46
|
+
$stdout.puts message
|
47
|
+
method = $stdout.respond_to?(:pp) ? :pp : :p
|
48
|
+
talker = $stdout.method method
|
49
|
+
stuff.each do |printable| talker.call printable end
|
50
|
+
end
|
51
|
+
|
52
|
+
def login
|
53
|
+
debug "logging in against slack right now"
|
54
|
+
@slack_info = JSON.parse Net::HTTP.get(URI @rtm_start_url)
|
55
|
+
debug "yep! logged in!"
|
56
|
+
@session_url = @slack_info["url"]
|
57
|
+
@logged = true
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/lib/boty/version.rb
ADDED
data/lib/boty.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
begin
|
2
|
+
require "pp"
|
3
|
+
|
4
|
+
require "dotenv"
|
5
|
+
if defined? Dotenv
|
6
|
+
Dotenv.load
|
7
|
+
Dotenv.overload ".env.local"
|
8
|
+
end
|
9
|
+
rescue LoadError
|
10
|
+
end
|
11
|
+
|
12
|
+
require "faye/websocket"
|
13
|
+
|
14
|
+
$:.unshift File.expand_path("../../lib", __FILE__)
|
15
|
+
require "boty/version"
|
16
|
+
require "boty/session"
|
17
|
+
require "boty/bot"
|
18
|
+
require "boty/message"
|
19
|
+
|
20
|
+
module Boty
|
21
|
+
end
|
data/lib/tasks/.keep
ADDED
File without changes
|
data/log/.keep
ADDED
File without changes
|
data/script/boty/pug.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
respond(/pug me/i) do |jabber, message|
|
2
|
+
response = JSON.parse Net::HTTP.get URI("http://pugme.herokuapp.com/random")
|
3
|
+
jabber.say "<#{response["pug"]}>", message.channel
|
4
|
+
end
|
5
|
+
|
6
|
+
respond(/pug bomb( (\d+))?/i) do |jabber, message|
|
7
|
+
count = message.match[2] || 5
|
8
|
+
response = JSON.parse Net::HTTP.get URI("http://pugme.herokuapp.com/bomb?count=#{count}")
|
9
|
+
response["pugs"].each do |pug| jabber.say "<#{pug}>", message.channel end
|
10
|
+
end
|
File without changes
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: boty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ricardo Valeriano
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: eventmachine
|
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: faye-websocket
|
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: foreman
|
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: byebug
|
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: 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: dotenv
|
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
|
+
description: Boty is intendted to be a framework for construction of automated Slack
|
126
|
+
Bots for your needs.
|
127
|
+
email:
|
128
|
+
- ricardo.valeriano@gmail.com
|
129
|
+
executables:
|
130
|
+
- console
|
131
|
+
- setup
|
132
|
+
extensions: []
|
133
|
+
extra_rdoc_files: []
|
134
|
+
files:
|
135
|
+
- ".env"
|
136
|
+
- ".gitignore"
|
137
|
+
- ".rspec"
|
138
|
+
- CODE_OF_CONDUCT.md
|
139
|
+
- Gemfile
|
140
|
+
- Gemfile.lock
|
141
|
+
- LICENSE.txt
|
142
|
+
- Procfile
|
143
|
+
- README.md
|
144
|
+
- Rakefile
|
145
|
+
- bin/console
|
146
|
+
- bin/setup
|
147
|
+
- boty
|
148
|
+
- boty.gemspec
|
149
|
+
- lib/assets/.keep
|
150
|
+
- lib/boty.rb
|
151
|
+
- lib/boty/bot.rb
|
152
|
+
- lib/boty/dsl.rb
|
153
|
+
- lib/boty/message.rb
|
154
|
+
- lib/boty/session.rb
|
155
|
+
- lib/boty/version.rb
|
156
|
+
- lib/tasks/.keep
|
157
|
+
- log/.keep
|
158
|
+
- script/boty/pug.rb
|
159
|
+
- vendor/assets/javascripts/.keep
|
160
|
+
- vendor/assets/stylesheets/.keep
|
161
|
+
homepage: http://github.com/ricardovaleriano/boty
|
162
|
+
licenses:
|
163
|
+
- MIT
|
164
|
+
metadata: {}
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
require_paths:
|
168
|
+
- lib
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2.0'
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
requirements: []
|
180
|
+
rubyforge_project:
|
181
|
+
rubygems_version: 2.4.5.1
|
182
|
+
signing_key:
|
183
|
+
specification_version: 4
|
184
|
+
summary: Boty is a pretty bot specially tailored for Slack.
|
185
|
+
test_files: []
|
186
|
+
has_rdoc:
|