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: a10a18d96622e3385da75b17a857a5e6ef45e5d3
4
- data.tar.gz: 1fd060a8bfc681a672ea48816bbe58772f006a4d
3
+ metadata.gz: 4bd5e8125f54000ad059876794098663a3a34aa3
4
+ data.tar.gz: 31205394d2f3f2ce599831803f176d355785272e
5
5
  SHA512:
6
- metadata.gz: ae58b2b58ee61a1168ebbbb92e34b40a30ca6cbbd4926bfe0cdc0e8c5d071a00bef9363ba78fddc5a5e8ddc4d7f7beb01a80d3c76377bcb200fa9d2c154c7e34
7
- data.tar.gz: b3c332647bfe2c06f1bda8f447fe8f1bacf3caf5b7f9c613a26f7683d6cabdf7d7d015f9bdf752333ae75926125ec272762e8772c69a250b83c9240db2c90ce7
6
+ metadata.gz: 714e4c41f49b239845a79a0b1a512b1b98758770d40be7d94c6cfe9d47ba24642f7027e7eb9ac5e9be69e100520512614e2fc8411ed6061eec21bffaf54cea33
7
+ data.tar.gz: b8d69d30fad7aff51e97b4cbf5d90abcda17ff238e4bbe3abe1705a64ea566b064d1cb628e3285f4041c2f06322207e3fc0466a10736d757fbcca5cb5f39f72a
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bot
2
- VERSION = "0.0.34"
2
+ VERSION = "0.0.35"
3
3
  end
@@ -16,6 +16,10 @@ module Bot
16
16
  "application_handler.rb",
17
17
  "app/bot/application_handler.rb"
18
18
  )
19
+ copy_file(
20
+ "bot_helper.rb",
21
+ "app/bot/helpers/bot_helper.rb"
22
+ )
19
23
  copy_file(
20
24
  "initializer.rb",
21
25
  "config/initializers/bot.rb"
@@ -0,0 +1,2 @@
1
+ module BotHelper
2
+ end
@@ -3207,3 +3207,46 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3207
3207
  BotTest: test_truth
3208
3208
  -------------------
3209
3209
   (0.0ms) rollback transaction
3210
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3211
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3212
+  (0.1ms) select sqlite_version(*)
3213
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3214
+  (0.2ms) SELECT version FROM "schema_migrations"
3215
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
3216
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3217
+  (0.1ms) begin transaction
3218
+ -------------------
3219
+ BotTest: test_truth
3220
+ -------------------
3221
+  (0.0ms) rollback transaction
3222
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3231
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
3244
+  (0.1ms) begin transaction
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
+  (0.1ms) 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.34
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-28 00:00:00.000000000 Z
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