bot 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bot/adapters/kik.rb +5 -0
- data/lib/bot/version.rb +1 -1
- data/test/dummy/log/test.log +43 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477549a5e3cab73d97f3f868de4ef46469da1d1a
|
4
|
+
data.tar.gz: f98c7bab34d326e5fbc300a353a8b81982438ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456568f2f5e841557d200c2bd7c988f5b046e7df3ab89c91e0847afbb6c201fdd9fa6123c8c372a6c5093912a1312a39681dd3cde18273b87f9d150a0719873c
|
7
|
+
data.tar.gz: 3672df288eb41dff4b2bef5d4ad3683992f89ebbadccedaafbed21d3841b4b0e5d27454a43e2984643906e4595e3680d0d2425cd22086560302fd970c17ce7d8
|
data/lib/bot/adapters/kik.rb
CHANGED
@@ -20,6 +20,11 @@ module Bot
|
|
20
20
|
payload: { messages: messages }.to_json,
|
21
21
|
headers: { content_type: :json }
|
22
22
|
})
|
23
|
+
rescue Exception => e
|
24
|
+
Rails.logger.error "\n\n\nError:\n"
|
25
|
+
Rails.logger.error e.response
|
26
|
+
Rails.logger.error "\n\n\n"
|
27
|
+
raise e
|
23
28
|
end
|
24
29
|
end
|
25
30
|
end
|
data/lib/bot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -2476,3 +2476,46 @@ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
|
2476
2476
|
BotTest: test_truth
|
2477
2477
|
-------------------
|
2478
2478
|
[1m[35m (0.0ms)[0m rollback transaction
|
2479
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2480
|
+
[1m[36m (13.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2481
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
2482
|
+
[1m[36m (18.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2483
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
2484
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
2485
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2486
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2487
|
+
-------------------
|
2488
|
+
BotTest: test_truth
|
2489
|
+
-------------------
|
2490
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2492
|
+
---------------------------
|
2493
|
+
NavigationTest: test_notify
|
2494
|
+
---------------------------
|
2495
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 13:38:55 -0400
|
2496
|
+
Processing by Bot::BotController#notify as HTML
|
2497
|
+
Parameters: {"bot"=>ApplicationHandler}
|
2498
|
+
Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
|
2499
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 13:38:55 -0400
|
2500
|
+
Processing by Bot::BotController#notify as HTML
|
2501
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
2502
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2503
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2505
|
+
---------------------------------------
|
2506
|
+
NavigationTest: test_notify_multi_types
|
2507
|
+
---------------------------------------
|
2508
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 13:38:55 -0400
|
2509
|
+
Processing by Bot::BotController#notify as HTML
|
2510
|
+
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
2511
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2512
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2513
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2514
|
+
-----------------------------------------
|
2515
|
+
NavigationTest: test_notify_special_types
|
2516
|
+
-----------------------------------------
|
2517
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 13:38:55 -0400
|
2518
|
+
Processing by Bot::BotController#notify as HTML
|
2519
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
2520
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
2521
|
+
[1m[35m (0.1ms)[0m rollback transaction
|