bot 0.0.45 → 0.0.46
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 +0 -3
- data/lib/bot/version.rb +1 -1
- data/test/dummy/log/test.log +43 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d373376833c5840047d87f2b49525b50e520190
|
|
4
|
+
data.tar.gz: 77a06db1b12a375b28f83f7e812035aea0d4ff8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f84188cbdc6c6fafe98844f993186b4e32a8ebc9dc5e2f76b2e6c443632ca6f40d6ccc7daaffd27c527c9abe41b3d25aff54600e5904d2a236917c4edde6fea
|
|
7
|
+
data.tar.gz: 832c6675039e7ce5d5ce5091a550c028bdaf375622604fe6e3c919ed0463b4d5db9b92223e8c34b8e9245569e4155dcf1f16884f936eafc0ad9eaf03e2cff73f
|
data/lib/bot/responder.rb
CHANGED
|
@@ -67,7 +67,6 @@ module Bot
|
|
|
67
67
|
'picUrl' => photo_url
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
photo_response['chatId'] = message['chatId'] if message['chatId']
|
|
71
70
|
photo_response['suggestedResponses'] = suggested_responses if suggested_responses
|
|
72
71
|
photo_response
|
|
73
72
|
end
|
|
@@ -87,7 +86,6 @@ module Bot
|
|
|
87
86
|
|
|
88
87
|
card['picUrl'] = icon if icon
|
|
89
88
|
card['attribution']['iconUrl'] = icon if icon
|
|
90
|
-
card['chatId'] = message['chatId'] if message['chatId']
|
|
91
89
|
|
|
92
90
|
[
|
|
93
91
|
card
|
|
@@ -102,7 +100,6 @@ module Bot
|
|
|
102
100
|
'muted' => true,
|
|
103
101
|
'autoplay' => true
|
|
104
102
|
}
|
|
105
|
-
video_response['chatId'] = message['chatId'] if message['chatId']
|
|
106
103
|
video_response['suggestedResponses'] = suggested_responses if suggested_responses
|
|
107
104
|
video_response
|
|
108
105
|
end
|
data/lib/bot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -3723,3 +3723,46 @@ Processing by Bot::BotController#notify as HTML
|
|
|
3723
3723
|
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
3724
3724
|
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
|
3725
3725
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
3726
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
3727
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
3728
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
3729
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
3730
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
3731
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
3732
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
3733
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3734
|
+
-------------------
|
|
3735
|
+
BotTest: test_truth
|
|
3736
|
+
-------------------
|
|
3737
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3739
|
+
-----------------------------------------
|
|
3740
|
+
NavigationTest: test_notify_special_types
|
|
3741
|
+
-----------------------------------------
|
|
3742
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:37:49 -0400
|
|
3743
|
+
Processing by Bot::BotController#notify as HTML
|
|
3744
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
3745
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
|
3746
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
3747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3748
|
+
---------------------------
|
|
3749
|
+
NavigationTest: test_notify
|
|
3750
|
+
---------------------------
|
|
3751
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:37:49 -0400
|
|
3752
|
+
Processing by Bot::BotController#notify as HTML
|
|
3753
|
+
Parameters: {"bot"=>ApplicationHandler}
|
|
3754
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
3755
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:37:49 -0400
|
|
3756
|
+
Processing by Bot::BotController#notify as HTML
|
|
3757
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
3758
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
|
3759
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
|
3760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
3761
|
+
---------------------------------------
|
|
3762
|
+
NavigationTest: test_notify_multi_types
|
|
3763
|
+
---------------------------------------
|
|
3764
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:37:49 -0400
|
|
3765
|
+
Processing by Bot::BotController#notify as HTML
|
|
3766
|
+
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
|
3767
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
|
3768
|
+
[1m[35m (0.0ms)[0m rollback transaction
|