bot 0.0.26 → 0.0.27

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: f8a7f2d7d490fb9cbe15964fada2a76ae89d6413
4
- data.tar.gz: 378726e279dcec7929bbd070af2ad36a7114e4a7
3
+ metadata.gz: 889785f6da977a5bc62b998664a6300509ef0835
4
+ data.tar.gz: 75ab49322e930736c0a938524f55e30d41e34adc
5
5
  SHA512:
6
- metadata.gz: 62de4860542e8b99017b65b9269b05614627ede2d310ef5293d6faf5b48c4774055cd079bd6081bc6e3b9cb345b7b40aefd8aee9979a80f14435cad58f28830e
7
- data.tar.gz: 86d29f627b43ac29904a3a0934d0d31e6c25f808e483ce7f1b01caeb5ae790c5bf61c60b1691dade119a9275a0e815619136afe78f437aced86ed1ba0c833c9f
6
+ metadata.gz: 06d4a7158a7778cac70d41fc378970450ab4c26d9d8cdf86604cf008cfba4b16d19064a0cde34a8ec4059b79d01449a6bfa52e2953cf38f1c10f8188f779fdbb
7
+ data.tar.gz: 2793ffe1b9f391a2ef7e1673f23d3b8bb2ca6e91550b87e95e5a2bb719488dc14e5411842d7e53db0234a6c24d12c0a62c48d12df19bb1404fb0a93ebc7d1e83
@@ -85,6 +85,8 @@ module Bot
85
85
  end
86
86
 
87
87
  def match_message(match)
88
+ return false unless message['body']
89
+
88
90
  if match.is_a?(Regexp)
89
91
  !!(message['body'] =~ match)
90
92
  else
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
@@ -2816,6 +2816,49 @@ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
2816
2816
  NavigationTest: test_notify_multi_types
2817
2817
  ---------------------------------------
2818
2818
  Started POST "/bot/notify" for 127.0.0.1 at 2016-04-18 16:40:23 -0400
2819
+ Processing by Bot::BotController#notify as HTML
2820
+ Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2821
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2822
+  (0.1ms) rollback transaction
2823
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2824
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2825
+  (0.1ms) select sqlite_version(*)
2826
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2827
+  (0.1ms) SELECT version FROM "schema_migrations"
2828
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
2829
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2830
+  (0.1ms) begin transaction
2831
+ -------------------
2832
+ BotTest: test_truth
2833
+ -------------------
2834
+  (0.1ms) rollback transaction
2835
+  (0.1ms) begin transaction
2836
+ ---------------------------
2837
+ NavigationTest: test_notify
2838
+ ---------------------------
2839
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 10:15:25 -0400
2840
+ Processing by Bot::BotController#notify as HTML
2841
+ Parameters: {"bot"=>ApplicationHandler}
2842
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2843
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 10:15:25 -0400
2844
+ Processing by Bot::BotController#notify as HTML
2845
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2846
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2847
+  (0.1ms) rollback transaction
2848
+  (0.1ms) begin transaction
2849
+ -----------------------------------------
2850
+ NavigationTest: test_notify_special_types
2851
+ -----------------------------------------
2852
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 10:15:25 -0400
2853
+ Processing by Bot::BotController#notify as HTML
2854
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2855
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2856
+  (0.1ms) rollback transaction
2857
+  (0.1ms) begin transaction
2858
+ ---------------------------------------
2859
+ NavigationTest: test_notify_multi_types
2860
+ ---------------------------------------
2861
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 10:15:25 -0400
2819
2862
  Processing by Bot::BotController#notify as HTML
2820
2863
  Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2821
2864
  Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
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.26
4
+ version: 0.0.27
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-18 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails