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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6635e4f60940cd52c3906be1aa355d24b6bde317
4
- data.tar.gz: 8850f36dae2d8ad3f071b72449c31653d7bad2e2
3
+ metadata.gz: dd59c7cd67ef8163737e929f767d231739b1c719
4
+ data.tar.gz: 138781ab7994b69048a088c2fc914b3650c8a914
5
5
  SHA512:
6
- metadata.gz: 5060aeef5b92a2ee8f4a7a441c2e9f8ef9b2f8970f9109de3454aacba1f8e0c789dc6dea1482958a244425808c999a1497c2ae34955dd84004626d3203298cf2
7
- data.tar.gz: c7ddff534dc98d3e14652abd96c2286295e2c6d72a6c890a101ed45d8526181bb18e54ef738cf3f1391e34a97685916dfa7be3b68411c7a3ab2727ce185da21e
6
+ metadata.gz: 9d47e8dcb91cc65962d33207ab513ee0718548475e8dbee1bc65346173a445eac5963c00e9b7c767b2a0119a6a3251a02982ce30a684abdc8c1d6361c0dd1a45
7
+ data.tar.gz: e45d1bb8c7e21010b5686aa4ba7fb1ffda40a2af5db0422599c412c756005979552562934dbe6c8e5baeee3e6bba6c3b8a1957739ddf716e6d7687e2bebaafc9
@@ -42,7 +42,12 @@ module Bot
42
42
  'body' => message_text,
43
43
  'typeTime' => 0
44
44
  }
45
- text_response['suggestedResponses'] = suggested_responses if suggested_responses
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
 
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -2433,3 +2433,46 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2433
2433
  BotTest: test_truth
2434
2434
  -------------------
2435
2435
   (0.1ms) rollback transaction
2436
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2437
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2438
+  (0.1ms) select sqlite_version(*)
2439
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2440
+  (0.1ms) SELECT version FROM "schema_migrations"
2441
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
2442
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2443
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
2452
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
2461
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
2474
+  (0.0ms) begin transaction
2475
+ -------------------
2476
+ BotTest: test_truth
2477
+ -------------------
2478
+  (0.0ms) 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.17
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-29 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails