bot_mob 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/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +6 -0
- data/bin/console +6 -0
- data/bin/setup +8 -0
- data/bot_mob.gemspec +37 -0
- data/lib/bot_mob/application.rb +37 -0
- data/lib/bot_mob/authority.rb +41 -0
- data/lib/bot_mob/bot.rb +130 -0
- data/lib/bot_mob/inbound_message.rb +25 -0
- data/lib/bot_mob/version.rb +3 -0
- data/lib/bot_mob/wire.rb +38 -0
- data/lib/bot_mob.rb +30 -0
- metadata +227 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f8b5e4bf2a1e375906e4dcfe40746bf90a17ee9f
|
4
|
+
data.tar.gz: 629956ead0e3bccbcb96d835d3d7f399b992c8e3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c4d75c04c0238daa3fcd5f3cb33574d5b474a06bdc8ee2fcbfad1dee96de6003def0e5c8a44ab53d801873abd97bb269497052364a0b6cdc5519bac15c0623c7
|
7
|
+
data.tar.gz: 766edd7dac3c2d329f4648e5254263ec0e2b227700fb05c0a0e8cf6dbe4a7e3de93ab67b402ee6db36430d66d6144ff0d67b525ca2996a4b8ca9c65e35986db4
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at m@mjw.io. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# BotMob
|
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/bot_mob`. 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 'bot_mob'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install bot_mob
|
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. Then, run `rake spec` to run the tests. 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/[USERNAME]/bot_mob. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/setup
ADDED
data/bot_mob.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bot_mob/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'bot_mob'
|
8
|
+
spec.version = BotMob::VERSION
|
9
|
+
spec.authors = ['Matthew Werner']
|
10
|
+
spec.email = ['m@mjw.io']
|
11
|
+
|
12
|
+
spec.summary = 'Build your bots'
|
13
|
+
spec.description = 'Easily create your own bot mob'
|
14
|
+
spec.homepage = 'https://github.com/mwerner/bot_mob'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'bunny', '~> 2.5'
|
25
|
+
spec.add_dependency 'simplecov', '~> 0.12'
|
26
|
+
spec.add_dependency 'crypt_keeper', '~> 0.21'
|
27
|
+
spec.add_dependency 'slack-ruby-client', '~> 0.7'
|
28
|
+
spec.add_dependency 'celluloid-io', '~> 0.17'
|
29
|
+
|
30
|
+
spec.add_development_dependency 'activerecord', '~> 4.2'
|
31
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
32
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.40'
|
34
|
+
spec.add_development_dependency 'simplecov', '~> 0.7'
|
35
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
36
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module BotMob
|
2
|
+
# ## BotMob::Application
|
3
|
+
#
|
4
|
+
# This is the base class for BotMob.
|
5
|
+
class Application
|
6
|
+
attr_reader :bot_class, :bots, :wire
|
7
|
+
|
8
|
+
def initialize(bot_class)
|
9
|
+
@bot_class = bot_class
|
10
|
+
@bots = {}
|
11
|
+
@wire = BotMob::Wire.new
|
12
|
+
Install.all.each { |install| register(install) }
|
13
|
+
end
|
14
|
+
|
15
|
+
def start!
|
16
|
+
wire.connect(self)
|
17
|
+
loop { sleep(10) }
|
18
|
+
end
|
19
|
+
|
20
|
+
def add_bot(user_id)
|
21
|
+
BotMob.logger.info "Adding bot: #{user_id}"
|
22
|
+
install = Install.find_by_user_id(user_id)
|
23
|
+
if install.nil?
|
24
|
+
BotMob.logger.info "Could not find bot: #{user_id}"
|
25
|
+
return
|
26
|
+
end
|
27
|
+
|
28
|
+
register install
|
29
|
+
end
|
30
|
+
|
31
|
+
def register(install)
|
32
|
+
bot = bot_class.new(install.user_id, install.token)
|
33
|
+
@bots[install.user_id] ||= bot
|
34
|
+
@bots[install.user_id].refresh
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module BotMob
|
2
|
+
# ## BotMob::Authority
|
3
|
+
#
|
4
|
+
# The Authority class will process an access code
|
5
|
+
# and retrieve an access token from Slack
|
6
|
+
class Authority
|
7
|
+
attr_accessor :code
|
8
|
+
|
9
|
+
def initialize(code)
|
10
|
+
@code = code
|
11
|
+
end
|
12
|
+
|
13
|
+
def process
|
14
|
+
return nil unless code
|
15
|
+
response = request_access.bot
|
16
|
+
|
17
|
+
Install.where(user_id: response.bot_user_id).first_or_initialize.tap do |install|
|
18
|
+
install.token = response.bot_access_token
|
19
|
+
install.save!
|
20
|
+
BotMob::Wire.new.publish(user_id: install.user_id)
|
21
|
+
end
|
22
|
+
rescue Slack::Web::Api::Error => e
|
23
|
+
puts e.message
|
24
|
+
nil
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def request_access
|
30
|
+
client.oauth_access(auth_params)
|
31
|
+
end
|
32
|
+
|
33
|
+
def auth_params
|
34
|
+
{ client_id: ENV['CLIENT_ID'], client_secret: ENV['CLIENT_SECRET'], code: code }
|
35
|
+
end
|
36
|
+
|
37
|
+
def client
|
38
|
+
@client ||= Slack::Web::Client.new
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/lib/bot_mob/bot.rb
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
module BotMob
|
2
|
+
# ## BotMob::Bot
|
3
|
+
#
|
4
|
+
# This is the base for all bots that will connect
|
5
|
+
# to Slack.
|
6
|
+
class Bot
|
7
|
+
attr_reader :user_id, :state
|
8
|
+
|
9
|
+
def initialize(user_id, token)
|
10
|
+
@user_id = user_id
|
11
|
+
|
12
|
+
if token.nil?
|
13
|
+
@state = :inactive
|
14
|
+
else
|
15
|
+
@token = token
|
16
|
+
setup
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def establish_connection
|
21
|
+
client.start_async
|
22
|
+
rescue Slack::Web::Api::Error => e
|
23
|
+
logger.info e.message
|
24
|
+
logger.info "State[#{user_id}] - disabled"
|
25
|
+
@state = :inactive
|
26
|
+
end
|
27
|
+
|
28
|
+
def connect
|
29
|
+
logger.info "State[#{user_id}] - connecting"
|
30
|
+
establish_connection
|
31
|
+
end
|
32
|
+
|
33
|
+
def reconnect
|
34
|
+
logger.info "State[#{user_id}] - reconnecting"
|
35
|
+
@client = Slack::RealTime::Client.new(token: @token)
|
36
|
+
setup
|
37
|
+
establish_connection
|
38
|
+
end
|
39
|
+
|
40
|
+
def api_post(args = {})
|
41
|
+
logger.info(" Sending \"#{args.inspect}\"\n")
|
42
|
+
client.web_client.chat_postMessage(args)
|
43
|
+
end
|
44
|
+
|
45
|
+
def realtime_post(args = {})
|
46
|
+
logger.info(" Sending \"#{args[:text]}\"\n")
|
47
|
+
client.message(args)
|
48
|
+
end
|
49
|
+
|
50
|
+
def refresh
|
51
|
+
return unless active?
|
52
|
+
|
53
|
+
case true
|
54
|
+
when waiting?
|
55
|
+
connect
|
56
|
+
when disconnected?
|
57
|
+
reconnect
|
58
|
+
else
|
59
|
+
logger.info "State[#{user_id}] - No Change"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def handle(_message)
|
64
|
+
# noop
|
65
|
+
end
|
66
|
+
|
67
|
+
def respond?(_message)
|
68
|
+
false
|
69
|
+
end
|
70
|
+
|
71
|
+
def active?
|
72
|
+
@state != :inactive
|
73
|
+
end
|
74
|
+
|
75
|
+
def waiting?
|
76
|
+
@state == :waiting
|
77
|
+
end
|
78
|
+
|
79
|
+
def disconnected?
|
80
|
+
@state != :connected
|
81
|
+
end
|
82
|
+
|
83
|
+
def connected?
|
84
|
+
@state == :connected
|
85
|
+
end
|
86
|
+
|
87
|
+
def closed?
|
88
|
+
@state == :closed
|
89
|
+
end
|
90
|
+
|
91
|
+
private
|
92
|
+
|
93
|
+
def setup
|
94
|
+
@state = :waiting
|
95
|
+
|
96
|
+
client.on :hello do
|
97
|
+
logger.info "Successfully connected, '#{client.team.name}' team at https://#{client.team.domain}.slack.com."
|
98
|
+
@state = :connected
|
99
|
+
logger.info "State[#{user_id}] - #{state}"
|
100
|
+
end
|
101
|
+
|
102
|
+
client.on :message do |data|
|
103
|
+
message = BotMob::InboundMessage.new(data)
|
104
|
+
|
105
|
+
if respond?(message)
|
106
|
+
logger.info("Received message at #{Time.now}")
|
107
|
+
logger.info(" Message: \"#{message.text}\"")
|
108
|
+
handle message
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
client.on :close do |_data|
|
113
|
+
logger.info "State[#{user_id}] - about to disconnect"
|
114
|
+
end
|
115
|
+
|
116
|
+
client.on :closed do |_data|
|
117
|
+
logger.info "State[#{user_id}] - disconnected"
|
118
|
+
@state = :closed
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
def client
|
123
|
+
@client ||= Slack::RealTime::Client.new(token: @token)
|
124
|
+
end
|
125
|
+
|
126
|
+
def logger
|
127
|
+
@logger ||= BotMob.logger
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module BotMob
|
2
|
+
# ## BotMob::Inbound Message
|
3
|
+
#
|
4
|
+
# The InboundMessage class provides easy access to
|
5
|
+
# messages received from Slack's Real Time API
|
6
|
+
class InboundMessage
|
7
|
+
attr_reader :source, :data
|
8
|
+
|
9
|
+
def initialize(data)
|
10
|
+
@data = data
|
11
|
+
end
|
12
|
+
|
13
|
+
def text
|
14
|
+
data[:text] || ''
|
15
|
+
end
|
16
|
+
|
17
|
+
def channel_id
|
18
|
+
data[:channel] || data[:channel_id]
|
19
|
+
end
|
20
|
+
|
21
|
+
def human?
|
22
|
+
data[:bot_id].nil?
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/bot_mob/wire.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
module BotMob
|
2
|
+
# ## BotMob::Wire
|
3
|
+
#
|
4
|
+
# The Wire class is a connection to the Web Server. It
|
5
|
+
# receives notifications from authenticated installs
|
6
|
+
# over RabbitMQ
|
7
|
+
class Wire
|
8
|
+
def publish(message = {})
|
9
|
+
BotMob.logger.info "Publishing #{message} to wire.notifications"
|
10
|
+
queue.publish(message.to_json, routing_key: queue.name)
|
11
|
+
end
|
12
|
+
|
13
|
+
def connect(app)
|
14
|
+
queue.subscribe do |_info, _props, body|
|
15
|
+
app.add_bot(JSON.parse(body)['user_id'])
|
16
|
+
end
|
17
|
+
rescue Bunny::PreconditionFailed => e
|
18
|
+
BotMob.logger.info "#{e.channel_close.reply_code}, message: #{e.channel_close.reply_text}"
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def channel
|
24
|
+
@channel ||= connection.create_channel
|
25
|
+
end
|
26
|
+
|
27
|
+
def queue
|
28
|
+
@queue ||= channel.queue('wire.notifications')
|
29
|
+
end
|
30
|
+
|
31
|
+
def connection
|
32
|
+
@connection ||= Bunny.new.tap do |conn|
|
33
|
+
Rails.logger.info('=> Connecting BotMob Wire')
|
34
|
+
conn.start
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/bot_mob.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
$LOAD_PATH.unshift File.dirname(__FILE__)
|
2
|
+
require 'bunny'
|
3
|
+
require 'slack-ruby-client'
|
4
|
+
require 'bot_mob/version'
|
5
|
+
|
6
|
+
# ## BotMob
|
7
|
+
#
|
8
|
+
# BotMob provides all the tools you need to easily
|
9
|
+
# connect to chat networks
|
10
|
+
module BotMob
|
11
|
+
autoload :Application, 'bot_mob/application'
|
12
|
+
autoload :Authority, 'bot_mob/authority'
|
13
|
+
autoload :Bot, 'bot_mob/bot'
|
14
|
+
autoload :InboundMessage, 'bot_mob/inbound_message'
|
15
|
+
autoload :Wire, 'bot_mob/wire'
|
16
|
+
|
17
|
+
def self.root
|
18
|
+
File.expand_path('../..', __FILE__)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.logger
|
22
|
+
@logger ||= begin
|
23
|
+
$stdout.sync = true
|
24
|
+
log = Logger.new($stdout)
|
25
|
+
log.datetime_format = '%Y-%m-%d %H:%M:%S'
|
26
|
+
log.level = Logger::DEBUG
|
27
|
+
log
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bot_mob
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Werner
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bunny
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: simplecov
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.12'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: crypt_keeper
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.21'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.21'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: slack-ruby-client
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: celluloid-io
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.17'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.17'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activerecord
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.12'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.12'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.40'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.40'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.7'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.7'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1.3'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1.3'
|
181
|
+
description: Easily create your own bot mob
|
182
|
+
email:
|
183
|
+
- m@mjw.io
|
184
|
+
executables: []
|
185
|
+
extensions: []
|
186
|
+
extra_rdoc_files: []
|
187
|
+
files:
|
188
|
+
- ".gitignore"
|
189
|
+
- ".travis.yml"
|
190
|
+
- CODE_OF_CONDUCT.md
|
191
|
+
- Gemfile
|
192
|
+
- README.md
|
193
|
+
- Rakefile
|
194
|
+
- bin/console
|
195
|
+
- bin/setup
|
196
|
+
- bot_mob.gemspec
|
197
|
+
- lib/bot_mob.rb
|
198
|
+
- lib/bot_mob/application.rb
|
199
|
+
- lib/bot_mob/authority.rb
|
200
|
+
- lib/bot_mob/bot.rb
|
201
|
+
- lib/bot_mob/inbound_message.rb
|
202
|
+
- lib/bot_mob/version.rb
|
203
|
+
- lib/bot_mob/wire.rb
|
204
|
+
homepage: https://github.com/mwerner/bot_mob
|
205
|
+
licenses: []
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.5.1
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: Build your bots
|
227
|
+
test_files: []
|