bot 0.0.22 → 0.0.23

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: 6a9a1b48aa5afbacfcf34d04cdba5cd9472b3dfd
4
- data.tar.gz: 3b9e84f1a57e851760a608c68bd282d4c1434472
3
+ metadata.gz: 7967225a37443fee41b93f193463dfdf05c1b565
4
+ data.tar.gz: 18e97306e18829909941cdd6b5769d51c4104bc0
5
5
  SHA512:
6
- metadata.gz: 5a0facc9f48ec114c1431cfa83d10cb7dfa7c063e63617f69b3c5b1495e0a3d16b571f4cc3a399145ecf17cd13570465e85839fb94ee73d4b3a72e225d20ee77
7
- data.tar.gz: ffbbccac03ce03f0be9ff2c682b54667aadc3192e82543d00c0c299c54a5c5128d6d5e0e1e44e61e06d8d8bcd4fffdf80e16e6ab99720db0335f9036c9ff280d
6
+ metadata.gz: 536f9426be975038b276580bc567ea8f262f83a439fa2203226756497862a1e25d974af3351409d91de4470733ef98c0c1462322ad7a95824359005257d3a111
7
+ data.tar.gz: f41538f75df8b8e36621aeb46a0824dc974f98c5187535e9cd09e1b87178ef5b5d57b98113bef93fc8ec4dd6e99ba8cdddb11d640f4c92e259aeea31a2db8c3c
@@ -10,7 +10,9 @@ class Bot::BotController < ActionController::Base
10
10
  private
11
11
 
12
12
  def messages
13
- Array.wrap(params[:messages])
13
+ Array.wrap(params[:messages]).map do |m|
14
+ m.merge(to: params[:bot_username])
15
+ end
14
16
  end
15
17
 
16
18
  def adapter
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
@@ -2605,3 +2605,46 @@ Processing by Bot::BotController#notify as HTML
2605
2605
  Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2606
2606
  Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
2607
2607
   (0.1ms) rollback transaction
2608
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2609
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2610
+  (0.1ms) select sqlite_version(*)
2611
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2612
+  (0.2ms) SELECT version FROM "schema_migrations"
2613
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
2614
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2615
+  (0.1ms) begin transaction
2616
+ ---------------------------
2617
+ NavigationTest: test_notify
2618
+ ---------------------------
2619
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-11 11:44:14 -0400
2620
+ Processing by Bot::BotController#notify as HTML
2621
+ Parameters: {"bot"=>ApplicationHandler}
2622
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2623
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-11 11:44:14 -0400
2624
+ Processing by Bot::BotController#notify as HTML
2625
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2626
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2627
+  (0.2ms) rollback transaction
2628
+  (0.1ms) begin transaction
2629
+ ---------------------------------------
2630
+ NavigationTest: test_notify_multi_types
2631
+ ---------------------------------------
2632
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-11 11:44:14 -0400
2633
+ Processing by Bot::BotController#notify as HTML
2634
+ Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2635
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2636
+  (0.1ms) rollback transaction
2637
+  (0.0ms) begin transaction
2638
+ -----------------------------------------
2639
+ NavigationTest: test_notify_special_types
2640
+ -----------------------------------------
2641
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-11 11:44:14 -0400
2642
+ Processing by Bot::BotController#notify as HTML
2643
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2644
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2645
+  (0.1ms) rollback transaction
2646
+  (0.1ms) begin transaction
2647
+ -------------------
2648
+ BotTest: test_truth
2649
+ -------------------
2650
+  (0.1ms) 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.22
4
+ version: 0.0.23
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-04-10 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails