boty 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/boty/cli.rb +2 -0
- data/lib/boty/rspec.rb +3 -3
- data/lib/boty/version.rb +1 -1
- data/template/project/spec/spec_helper.rb +1 -1
- metadata +2 -2
- data/boty +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc2c0485b34d41c484c6226afcd775177ae9ff4
|
4
|
+
data.tar.gz: 41dc976a9443dc170427775a5db302f67c64a4fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e36b9176d3ddd5f8cffa05457637d2a98c1897f38f5d485f960b2306b2ab88be1606f6069bfabc9c8540f596a30249b8891c0f79fce80ea430f8b6ad7a00ddd0
|
7
|
+
data.tar.gz: b8f8b998064f4aabab2ca72abb91be20ee513c4f841eec7201d90d1e240106f2ff837af1d9faee3691366589d485cf21e8399daaa205a9cafc69651843ec1c88
|
data/Gemfile.lock
CHANGED
data/lib/boty/cli.rb
CHANGED
data/lib/boty/rspec.rb
CHANGED
data/lib/boty/version.rb
CHANGED
@@ -2,7 +2,7 @@ require "bundler"; Bundler.setup :default, :test
|
|
2
2
|
require "boty"
|
3
3
|
require "boty/rspec"
|
4
4
|
|
5
|
-
Dir[
|
5
|
+
Dir["./spec/support/**/*.rb"].each { |f| require f }
|
6
6
|
|
7
7
|
RSpec.configure do |config|
|
8
8
|
config.include Boty::RSpec::Bot, bot: true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Valeriano
|
@@ -170,7 +170,6 @@ files:
|
|
170
170
|
- Rakefile
|
171
171
|
- bin/console
|
172
172
|
- bin/setup
|
173
|
-
- boty
|
174
173
|
- boty.gemspec
|
175
174
|
- exe/boty
|
176
175
|
- lib/boty.rb
|
@@ -221,3 +220,4 @@ signing_key:
|
|
221
220
|
specification_version: 4
|
222
221
|
summary: Boty is a pretty bot specially tailored for Slack.
|
223
222
|
test_files: []
|
223
|
+
has_rdoc:
|
data/boty
DELETED
@@ -1,12 +0,0 @@
|
|
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
|
-
end
|