bot 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bot/responder.rb +4 -0
- 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: 7b1843598210c65e8b51b3b49668a9e8ccfa971f
|
4
|
+
data.tar.gz: 21e06efdea5806491025527ecf64f70aeea95861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e728adceb3d0f3808ca92c161cc3b3aa20206478630820caf203f0562d826621c930c5eda60e5ee9820f219ae1207744b04cb2cfa7c3cc0f18d66e780dda8fc8
|
7
|
+
data.tar.gz: c75ded2c8f46043af37f1c848585049755a8d7c81fd0b10a9248aadfac4ab7a42397441285d34b09c056688a5495ea32421eef7e9aa74612dcbd446fa88b4ded
|
data/lib/bot/responder.rb
CHANGED
@@ -66,6 +66,8 @@ module Bot
|
|
66
66
|
'to' => message['from'],
|
67
67
|
'picUrl' => photo_url
|
68
68
|
}
|
69
|
+
|
70
|
+
photo_response['chatId'] = message['chatId'] if message['chatId']
|
69
71
|
photo_response['suggestedResponses'] = suggested_responses if suggested_responses
|
70
72
|
photo_response
|
71
73
|
end
|
@@ -85,6 +87,7 @@ module Bot
|
|
85
87
|
|
86
88
|
card['picUrl'] = icon if icon
|
87
89
|
card['attribution']['iconUrl'] = icon if icon
|
90
|
+
card['chatId'] = message['chatId'] if message['chatId']
|
88
91
|
|
89
92
|
[
|
90
93
|
card
|
@@ -99,6 +102,7 @@ module Bot
|
|
99
102
|
'muted' => true,
|
100
103
|
'autoplay' => true
|
101
104
|
}
|
105
|
+
video_response['chatId'] = message['chatId'] if message['chatId']
|
102
106
|
video_response['suggestedResponses'] = suggested_responses if suggested_responses
|
103
107
|
video_response
|
104
108
|
end
|
data/lib/bot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -3680,3 +3680,46 @@ Processing by Bot::BotController#notify as HTML
|
|
3680
3680
|
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3681
3681
|
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
3682
3682
|
[1m[35m (0.1ms)[0m rollback transaction
|
3683
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3684
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
3685
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3686
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3687
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3688
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
3689
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3690
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3691
|
+
-------------------
|
3692
|
+
BotTest: test_truth
|
3693
|
+
-------------------
|
3694
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3696
|
+
---------------------------
|
3697
|
+
NavigationTest: test_notify
|
3698
|
+
---------------------------
|
3699
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:16:35 -0400
|
3700
|
+
Processing by Bot::BotController#notify as HTML
|
3701
|
+
Parameters: {"bot"=>ApplicationHandler}
|
3702
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
3703
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:16:35 -0400
|
3704
|
+
Processing by Bot::BotController#notify as HTML
|
3705
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3706
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
3707
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3708
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3709
|
+
---------------------------------------
|
3710
|
+
NavigationTest: test_notify_multi_types
|
3711
|
+
---------------------------------------
|
3712
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:16:35 -0400
|
3713
|
+
Processing by Bot::BotController#notify as HTML
|
3714
|
+
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3715
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
3716
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3717
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3718
|
+
-----------------------------------------
|
3719
|
+
NavigationTest: test_notify_special_types
|
3720
|
+
-----------------------------------------
|
3721
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-05-13 16:16:35 -0400
|
3722
|
+
Processing by Bot::BotController#notify as HTML
|
3723
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3724
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
3725
|
+
[1m[35m (0.1ms)[0m rollback transaction
|