bot 0.0.17 → 0.0.18
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/responder.rb +6 -1
- data/lib/bot/version.rb +1 -1
- data/test/dummy/log/test.log +43 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd59c7cd67ef8163737e929f767d231739b1c719
|
|
4
|
+
data.tar.gz: 138781ab7994b69048a088c2fc914b3650c8a914
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d47e8dcb91cc65962d33207ab513ee0718548475e8dbee1bc65346173a445eac5963c00e9b7c767b2a0119a6a3251a02982ce30a684abdc8c1d6361c0dd1a45
|
|
7
|
+
data.tar.gz: e45d1bb8c7e21010b5686aa4ba7fb1ffda40a2af5db0422599c412c756005979552562934dbe6c8e5baeee3e6bba6c3b8a1957739ddf716e6d7687e2bebaafc9
|
data/lib/bot/responder.rb
CHANGED
|
@@ -42,7 +42,12 @@ module Bot
|
|
|
42
42
|
'body' => message_text,
|
|
43
43
|
'typeTime' => 0
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
case suggested_responses
|
|
46
|
+
when Array
|
|
47
|
+
text_response['suggestedResponses'] = suggested_responses
|
|
48
|
+
when Hash
|
|
49
|
+
text_response.merge!(suggested_responses)
|
|
50
|
+
end
|
|
46
51
|
text_response
|
|
47
52
|
end
|
|
48
53
|
|
data/lib/bot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -2433,3 +2433,46 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
|
2433
2433
|
BotTest: test_truth
|
|
2434
2434
|
-------------------
|
|
2435
2435
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
2436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2437
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
2438
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
2439
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
2440
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
2441
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
2442
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
2443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2444
|
+
---------------------------------------
|
|
2445
|
+
NavigationTest: test_notify_multi_types
|
|
2446
|
+
---------------------------------------
|
|
2447
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 10:47:22 -0400
|
|
2448
|
+
Processing by Bot::BotController#notify as HTML
|
|
2449
|
+
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
2450
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
2451
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2453
|
+
-----------------------------------------
|
|
2454
|
+
NavigationTest: test_notify_special_types
|
|
2455
|
+
-----------------------------------------
|
|
2456
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 10:47:22 -0400
|
|
2457
|
+
Processing by Bot::BotController#notify as HTML
|
|
2458
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
2459
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
2460
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2461
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2462
|
+
---------------------------
|
|
2463
|
+
NavigationTest: test_notify
|
|
2464
|
+
---------------------------
|
|
2465
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 10:47:22 -0400
|
|
2466
|
+
Processing by Bot::BotController#notify as HTML
|
|
2467
|
+
Parameters: {"bot"=>ApplicationHandler}
|
|
2468
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
2469
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-03-30 10:47:22 -0400
|
|
2470
|
+
Processing by Bot::BotController#notify as HTML
|
|
2471
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
2472
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
|
2473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
2474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
2475
|
+
-------------------
|
|
2476
|
+
BotTest: test_truth
|
|
2477
|
+
-------------------
|
|
2478
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Morris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|