bot 0.0.27 → 0.0.28

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: 889785f6da977a5bc62b998664a6300509ef0835
4
- data.tar.gz: 75ab49322e930736c0a938524f55e30d41e34adc
3
+ metadata.gz: 199bd38056860b8c29af868d60901ea40b670d88
4
+ data.tar.gz: fa4f7acd8c0e28280782922a3e84a8a1521668bb
5
5
  SHA512:
6
- metadata.gz: 06d4a7158a7778cac70d41fc378970450ab4c26d9d8cdf86604cf008cfba4b16d19064a0cde34a8ec4059b79d01449a6bfa52e2953cf38f1c10f8188f779fdbb
7
- data.tar.gz: 2793ffe1b9f391a2ef7e1673f23d3b8bb2ca6e91550b87e95e5a2bb719488dc14e5411842d7e53db0234a6c24d12c0a62c48d12df19bb1404fb0a93ebc7d1e83
6
+ metadata.gz: 7055c2da1c9e56ee031c9f686d99673cb6a27754d83095167d2ec7a5fd9e71b95c7465e6671a73ddfc0e9092f9ed6bb31b69e53b0cc4698daf467c6c3a14c9b4
7
+ data.tar.gz: b168ce104af5601224016fd62ee4c4a9927e06a1b884e6e6273251d12b3ecea90869d1e70ad809f2e2435497a311e5bbc8005ec458d03b3081bfb275770328b8
@@ -7,6 +7,10 @@ module Bot
7
7
  @@sent_messages += Array.wrap(messages)
8
8
  end
9
9
 
10
+ def get_profile_image(username, as_user)
11
+ "#{username}_profile_image"
12
+ end
13
+
10
14
  def self.sent_messages
11
15
  @@sent_messages
12
16
  end
data/lib/bot/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
@@ -2861,5 +2861,48 @@ NavigationTest: test_notify_multi_types
2861
2861
  Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 10:15:25 -0400
2862
2862
  Processing by Bot::BotController#notify as HTML
2863
2863
  Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2864
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2865
+  (0.1ms) rollback transaction
2866
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2867
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2868
+  (0.1ms) select sqlite_version(*)
2869
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2870
+  (0.1ms) SELECT version FROM "schema_migrations"
2871
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
2872
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2873
+  (0.1ms) begin transaction
2874
+ -------------------
2875
+ BotTest: test_truth
2876
+ -------------------
2877
+  (0.0ms) rollback transaction
2878
+  (0.0ms) begin transaction
2879
+ ---------------------------
2880
+ NavigationTest: test_notify
2881
+ ---------------------------
2882
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 14:45:54 -0400
2883
+ Processing by Bot::BotController#notify as HTML
2884
+ Parameters: {"bot"=>ApplicationHandler}
2885
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2886
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 14:45:54 -0400
2887
+ Processing by Bot::BotController#notify as HTML
2888
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2889
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2890
+  (0.1ms) rollback transaction
2891
+  (0.0ms) begin transaction
2892
+ ---------------------------------------
2893
+ NavigationTest: test_notify_multi_types
2894
+ ---------------------------------------
2895
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 14:45:54 -0400
2896
+ Processing by Bot::BotController#notify as HTML
2897
+ Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2898
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2899
+  (0.1ms) rollback transaction
2900
+  (0.1ms) begin transaction
2901
+ -----------------------------------------
2902
+ NavigationTest: test_notify_special_types
2903
+ -----------------------------------------
2904
+ Started POST "/bot/notify" for 127.0.0.1 at 2016-04-21 14:45:54 -0400
2905
+ Processing by Bot::BotController#notify as HTML
2906
+ Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
2864
2907
  Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2865
2908
   (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Morris