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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bf71695e734493e496a84de1edc72ad4d1efdd8
4
- data.tar.gz: 35449d7a8978b5c3543d3b3041e7c47c29cb737f
3
+ metadata.gz: 7cc2c0485b34d41c484c6226afcd775177ae9ff4
4
+ data.tar.gz: 41dc976a9443dc170427775a5db302f67c64a4fd
5
5
  SHA512:
6
- metadata.gz: ffd4910d8a3de3f7f5d51e1d256ede4404d532074f9fb7ed780c4360e74a32747f1c0bbbad2ac50a6369d63e345e3bdfc0705ad677eed1dea733269f9e1dca05
7
- data.tar.gz: 10f90b4d27edbc3a12d90018d584d479f09195d1b582bf6070126f8f52c5e0175d856d1ceedee09d4479bed73d3c9d41247c16349a1bcc846361ab2696411ce1
6
+ metadata.gz: e36b9176d3ddd5f8cffa05457637d2a98c1897f38f5d485f960b2306b2ab88be1606f6069bfabc9c8540f596a30249b8891c0f79fce80ea430f8b6ad7a00ddd0
7
+ data.tar.gz: b8f8b998064f4aabab2ca72abb91be20ee513c4f841eec7201d90d1e240106f2ff837af1d9faee3691366589d485cf21e8399daaa205a9cafc69651843ec1c88
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boty (0.0.3)
4
+ boty (0.0.4)
5
5
  eventmachine
6
6
  faye-websocket
7
7
  thor
data/lib/boty/cli.rb CHANGED
@@ -16,6 +16,8 @@ module Boty
16
16
  acquire_bot_info bot_name
17
17
  directory "project", bot_name, verbose: verbose
18
18
  inside bot_name do
19
+ # for some reason the example .rspec isn't been copied
20
+ create_file ".rspec", "--require=spec_helper"
19
21
  run "chmod +x bot"
20
22
  end
21
23
  end
data/lib/boty/rspec.rb CHANGED
@@ -20,10 +20,10 @@ module Boty
20
20
  bot
21
21
  }
22
22
  end
23
+ end
23
24
 
24
- def message_event(text)
25
- bot.event "type" => "message", "text" => text
26
- end
25
+ def message_event(text)
26
+ bot.event "type" => "message", "text" => text
27
27
  end
28
28
  end
29
29
 
data/lib/boty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Boty
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,7 +2,7 @@ require "bundler"; Bundler.setup :default, :test
2
2
  require "boty"
3
3
  require "boty/rspec"
4
4
 
5
- Dir['./spec/support/**/*.rb'].each { |f| require f }
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.3
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