bot 0.0.31 → 0.0.32

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: 12d54cb2255ebb5a791aed619d0dc9ca87b5f11e
4
- data.tar.gz: 6b9876dce5bc9b9744ada1cbd09e8288117989c6
3
+ metadata.gz: d604c8040f3511c15a681545741d76bcd89958fc
4
+ data.tar.gz: f98aa6719d9b1118f4e4378011832ce562371675
5
5
  SHA512:
6
- metadata.gz: 386d93e6d443aaac3492566889f8e3523e18afa60882d41a8c5bc6c6c5e9a4e2742d1d455e309ad7541bb75206688d221dbdf6b83ae330a08ad5a2f090e988ea
7
- data.tar.gz: 11315cdff74b5c47ae2703254dfed7ac816a8a111162b7ac787f18276721c149d9b70c65dbd487ff117cb949ee42d1ce472cdbf86e77b24e5aed58ae94ba2da7
6
+ metadata.gz: 9fa7b7279b2ea537eb85b96208a748a26738ac3aeb4cf8b2b0cd916bd7f78c41041d85edbc38f5a4cb5dc2a3b5a0c9abb5c6361910ea60e1a433dccb353a008f
7
+ data.tar.gz: feeb8ae8435d399b9602406ba4a1587c4b2f26e14dba7cb88cb5907448b6f9521d07a7d3acdf082e3da3abde2fc1013b552ff7aa7a50e1342c366e620fa34d86
data/lib/bot/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.31"
2
+ VERSION = "0.0.32"
3
3
  end
@@ -2,6 +2,6 @@ class ApplicationHandler < Bot::Handler
2
2
  use Responders::Default
3
3
 
4
4
  # def user_for(message)
5
- # User.find_or_initialize_by(username: message["from"])
5
+ # User.find_or_create_by(username: message["from"])
6
6
  # end
7
7
  end
@@ -1,11 +1,2 @@
1
1
  class ApplicationResponder < Bot::Responder
2
- #
3
- # def can_handle?
4
- # true
5
- # end
6
- #
7
- # def handle
8
- # text_response('Hello!')
9
- # end
10
- #
11
2
  end
@@ -5,16 +5,18 @@ module Bot
5
5
 
6
6
  def create_responder
7
7
  create_file "app/bot/responders/#{file_name}.rb", <<-FILE
8
- class Responders::#{class_name} < ApplicationResponder
9
- #
10
- # def can_handle?
11
- # true
12
- # end
13
- #
14
- # def handle
15
- # text_response('Hello!')
16
- # end
17
- #
8
+ module Responders
9
+ #{class_name} < ApplicationResponder
10
+ #
11
+ # def can_handle?
12
+ # true
13
+ # end
14
+ #
15
+ # def handle
16
+ # text_response('Hello!')
17
+ # end
18
+ #
19
+ end
18
20
  end
19
21
  FILE
20
22
  end
@@ -3078,3 +3078,46 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3078
3078
  BotTest: test_truth
3079
3079
  -------------------
3080
3080
   (0.0ms) rollback transaction
3081
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3082
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3083
+  (0.1ms) select sqlite_version(*)
3084
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3085
+  (0.1ms) SELECT version FROM "schema_migrations"
3086
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3087
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3088
+  (0.1ms) begin transaction
3089
+ ---------------------------
3090
+ NavigationTest: test_notify
3091
+ ---------------------------
3092
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 16:17:50 -0400
3093
+ Processing by Bot::BotController#notify as HTML
3094
+ Parameters: {"bot"=>ApplicationHandler}
3095
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3096
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 16:17:51 -0400
3097
+ Processing by Bot::BotController#notify as HTML
3098
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
3099
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3100
+  (0.1ms) rollback transaction
3101
+  (0.1ms) begin transaction
3102
+ ---------------------------------------
3103
+ NavigationTest: test_notify_multi_types
3104
+ ---------------------------------------
3105
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 16:17:51 -0400
3106
+ Processing by Bot::BotController#notify as HTML
3107
+ Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
3108
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3109
+  (0.1ms) rollback transaction
3110
+  (0.1ms) begin transaction
3111
+ -----------------------------------------
3112
+ NavigationTest: test_notify_special_types
3113
+ -----------------------------------------
3114
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 16:17:51 -0400
3115
+ Processing by Bot::BotController#notify as HTML
3116
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
3117
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3118
+  (0.1ms) rollback transaction
3119
+  (0.1ms) begin transaction
3120
+ -------------------
3121
+ BotTest: test_truth
3122
+ -------------------
3123
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Morris