bot 0.0.34 → 0.0.35
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd5e8125f54000ad059876794098663a3a34aa3
|
4
|
+
data.tar.gz: 31205394d2f3f2ce599831803f176d355785272e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 714e4c41f49b239845a79a0b1a512b1b98758770d40be7d94c6cfe9d47ba24642f7027e7eb9ac5e9be69e100520512614e2fc8411ed6061eec21bffaf54cea33
|
7
|
+
data.tar.gz: b8d69d30fad7aff51e97b4cbf5d90abcda17ff238e4bbe3abe1705a64ea566b064d1cb628e3285f4041c2f06322207e3fc0466a10736d757fbcca5cb5f39f72a
|
data/lib/bot/engine.rb
CHANGED
@@ -2,6 +2,11 @@ module Bot
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace Bot
|
4
4
|
|
5
|
+
# Add a load path for this specific Engine
|
6
|
+
initializer "responders.helpers.autoload", before: :set_autoload_paths do |app|
|
7
|
+
app.config.autoload_paths << File.join(app.config.root, "app", "bot", "helpers")
|
8
|
+
end
|
9
|
+
|
5
10
|
initializer 'bot.routes', after: 'action_dispatch.prepare_dispatcher' do |app|
|
6
11
|
ActionDispatch::Routing::Mapper.send :include, ::Bot::RouteExtensions
|
7
12
|
end
|
data/lib/bot/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -3207,3 +3207,46 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
|
3207
3207
|
BotTest: test_truth
|
3208
3208
|
-------------------
|
3209
3209
|
[1m[35m (0.0ms)[0m rollback transaction
|
3210
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3211
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
3212
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3213
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3214
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
3215
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
3216
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
3217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3218
|
+
-------------------
|
3219
|
+
BotTest: test_truth
|
3220
|
+
-------------------
|
3221
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3223
|
+
---------------------------------------
|
3224
|
+
NavigationTest: test_notify_multi_types
|
3225
|
+
---------------------------------------
|
3226
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 20:49:38 -0400
|
3227
|
+
Processing by Bot::BotController#notify as HTML
|
3228
|
+
Parameters: {"messages"=>[{"body"=>"multi", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3229
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
3230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3232
|
+
---------------------------
|
3233
|
+
NavigationTest: test_notify
|
3234
|
+
---------------------------
|
3235
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 20:49:38 -0400
|
3236
|
+
Processing by Bot::BotController#notify as HTML
|
3237
|
+
Parameters: {"bot"=>ApplicationHandler}
|
3238
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
3239
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 20:49:38 -0400
|
3240
|
+
Processing by Bot::BotController#notify as HTML
|
3241
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"text", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3242
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
3243
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3244
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3245
|
+
-----------------------------------------
|
3246
|
+
NavigationTest: test_notify_special_types
|
3247
|
+
-----------------------------------------
|
3248
|
+
Started POST "/bot/notify" for 127.0.0.1 at 2016-04-28 20:49:39 -0400
|
3249
|
+
Processing by Bot::BotController#notify as HTML
|
3250
|
+
Parameters: {"messages"=>[{"body"=>"Hello", "readReceiptRequested"=>"true", "from"=>"bnmrrs", "timestamp"=>"1452785908454", "type"=>"scan-data", "id"=>"2af0d873-d157-4627-b863-8be11b0dfd86"}], "bot"=>ApplicationHandler}
|
3251
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
3252
|
+
[1m[35m (0.1ms)[0m 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.
|
4
|
+
version: 0.0.35
|
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-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/generators/bot/install/install_generator.rb
|
124
124
|
- lib/generators/bot/install/templates/application_handler.rb
|
125
125
|
- lib/generators/bot/install/templates/application_responder.rb
|
126
|
+
- lib/generators/bot/install/templates/bot_helper.rb
|
126
127
|
- lib/generators/bot/install/templates/default_responder.rb
|
127
128
|
- lib/generators/bot/install/templates/initializer.rb
|
128
129
|
- lib/generators/bot/responder/responder_generator.rb
|