action_smser 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -59220,4 +59220,2019 @@ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, n
59220
59220
  Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-07-30 15:47:15 +0300
59221
59221
  Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59222
59222
  Parameters: {"gateway"=>"example_gateway"}
59223
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59224
+  (0.0ms) select sqlite_version(*)
59225
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
59226
+  (0.0ms) PRAGMA index_list("schema_migrations")
59227
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
59228
+  (4.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
59229
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
59230
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
59231
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
59232
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
59233
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
59234
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59235
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59236
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59237
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59238
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59239
+ ActionSmser: Delivering sms by delayed_job
59240
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59241
+  (0.0ms) SAVEPOINT active_record_1
59242
+ SQL (4.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59244
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59245
+  (0.0ms) SAVEPOINT active_record_1
59246
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59248
+  (0.0ms) SAVEPOINT active_record_1
59249
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 15:59:10.473494' WHERE "action_smser_delivery_reports"."id" = 1
59250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59251
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59252
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 15:59:10", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 18:59:10: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 15:59:10", updated_at: "2013-08-15 15:59:10">
59253
+  (0.0ms) SAVEPOINT active_record_1
59254
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 15:59:10.475668' WHERE "action_smser_delivery_reports"."id" = 1
59255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59256
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59257
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
59258
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59259
+  (0.0ms) SAVEPOINT active_record_1
59260
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "test_array_id_82803"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59262
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
59263
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
59264
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
59265
+  (0.0ms) SAVEPOINT active_record_1
59266
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59268
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59269
+  (0.0ms) SAVEPOINT active_record_1
59270
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 18:59:10: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59272
+  (0.0ms) SAVEPOINT active_record_1
59273
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 15:59:10.505628', "log" = '2013-08-15 18:59:10: LOCAL_TEST
59274
+ 2013-08-15 18:59:10: TEST_2
59275
+ ', "updated_at" = '2013-08-15 15:59:10.505909' WHERE "action_smser_delivery_reports"."id" = 1
59276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59277
+  (0.0ms) SAVEPOINT active_record_1
59278
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 18:59:10: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59280
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59281
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59282
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59283
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59284
+  (0.0ms) SAVEPOINT active_record_1
59285
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 15:59:10.520381', "log" = '2013-08-15 18:59:10: ORIGINAL_STATUS
59286
+ 2013-08-15 18:59:10: DELIVERED
59287
+ ', "updated_at" = '2013-08-15 15:59:10.520852' WHERE "action_smser_delivery_reports"."id" = 1
59288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59289
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59290
+ Rendered text template (0.0ms)
59291
+ Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.3ms)
59292
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59293
+  (0.0ms) SAVEPOINT active_record_1
59294
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 18:59:10: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59296
+  (0.0ms) SAVEPOINT active_record_1
59297
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 18:59:10: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59299
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59300
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
59301
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59302
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59303
+  (0.0ms) SAVEPOINT active_record_1
59304
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 15:59:10.556458', "log" = '2013-08-15 18:59:10: ORIGINAL_STATUS
59305
+ 2013-08-15 18:59:10: DELIVERED
59306
+ ', "updated_at" = '2013-08-15 15:59:10.556877' WHERE "action_smser_delivery_reports"."id" = 1
59307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59308
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59309
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
59310
+  (0.0ms) SAVEPOINT active_record_1
59311
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 15:59:10.558101', "log" = '2013-08-15 18:59:10: ORIGINAL_STATUS
59312
+ 2013-08-15 18:59:10: DELIVERED
59313
+ ', "updated_at" = '2013-08-15 15:59:10.558417' WHERE "action_smser_delivery_reports"."id" = 2
59314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59315
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
59316
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
59317
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59318
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
59319
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59320
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59321
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
59322
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59323
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59324
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59325
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
59326
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
59327
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
59328
+  (0.0ms) SAVEPOINT active_record_1
59329
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59331
+  (0.0ms) SAVEPOINT active_record_1
59332
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59334
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59335
+ Parameters: {"use_route"=>"action_smser"}
59336
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244')
59337
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244') GROUP BY gateway
59338
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244')
59339
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244') GROUP BY status
59340
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244')
59341
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.574045' AND '2013-08-15 15:49:10.577244') GROUP BY sms_type
59342
+ Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.5ms)
59343
+  (0.0ms) SAVEPOINT active_record_1
59344
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59346
+  (0.0ms) SAVEPOINT active_record_1
59347
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59349
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59350
+ Parameters: {"use_route"=>"action_smser"}
59351
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993')
59352
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993') GROUP BY gateway
59353
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993')
59354
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993') GROUP BY status
59355
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993')
59356
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 15:59:10.593852' AND '2013-08-15 15:49:10.593993') GROUP BY sms_type
59357
+ Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.4ms)
59358
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59359
+ Parameters: {"use_route"=>"action_smser"}
59360
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59361
+  (0.0ms) SAVEPOINT active_record_1
59362
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59364
+  (0.0ms) SAVEPOINT active_record_1
59365
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59367
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
59368
+ Parameters: {"use_route"=>"action_smser"}
59369
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
59370
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
59371
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59372
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3475c18>
59373
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59374
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3475c18>
59375
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59376
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59377
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59378
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x346d928>
59379
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59380
+  (0.0ms) SAVEPOINT active_record_1
59381
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59383
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x346d928>
59384
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59385
+  (0.0ms) SAVEPOINT active_record_1
59386
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59388
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59389
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59390
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3441f58>
59391
+ ActionSmser: id_1234
59392
+ id_6666
59393
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59394
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59395
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x343c2d8>
59396
+ ActionSmser: id_1234
59397
+ id_6666
59398
+  (0.0ms) SAVEPOINT active_record_1
59399
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59401
+  (0.0ms) SAVEPOINT active_record_1
59402
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59404
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59405
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59406
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59407
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59408
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59409
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59410
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59411
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59412
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59413
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59414
+  (0.0ms) SAVEPOINT active_record_1
59415
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "test_array_id_70156225"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59417
+  (0.0ms) SAVEPOINT active_record_1
59418
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 18:59:10: LOCAL_SENT\n"], ["msg_id", "test_array_id_20719314"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 15:59:10 UTC +00:00]]
59419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59420
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59421
+
59422
+
59423
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 18:59:10 +0300
59424
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59425
+ Parameters: {"gateway"=>"example_gateway"}
59426
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59427
+  (0.0ms) select sqlite_version(*)
59428
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
59429
+  (0.0ms) PRAGMA index_list("schema_migrations")
59430
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
59431
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
59432
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
59433
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
59434
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
59435
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
59436
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
59437
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59438
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59439
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59440
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59441
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59442
+ ActionSmser: Delivering sms by delayed_job
59443
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59444
+  (0.0ms) SAVEPOINT active_record_1
59445
+ SQL (4.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:02: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00]]
59446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59447
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59448
+  (0.0ms) SAVEPOINT active_record_1
59449
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:02: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00]]
59450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59451
+  (0.0ms) SAVEPOINT active_record_1
59452
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:15:02.965570' WHERE "action_smser_delivery_reports"."id" = 1
59453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59454
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59455
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:15:02", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:15:02: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:15:02", updated_at: "2013-08-15 16:15:02">
59456
+  (0.0ms) SAVEPOINT active_record_1
59457
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:15:02.968020' WHERE "action_smser_delivery_reports"."id" = 1
59458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59459
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59460
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
59461
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59462
+  (0.0ms) SAVEPOINT active_record_1
59463
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:02: LOCAL_SENT\n"], ["msg_id", "test_array_id_79597812"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00]]
59464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59465
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
59466
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
59467
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
59468
+  (0.0ms) SAVEPOINT active_record_1
59469
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:02: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00]]
59470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59471
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59472
+  (0.0ms) SAVEPOINT active_record_1
59473
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:02: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:02 UTC +00:00]]
59474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59475
+  (0.0ms) SAVEPOINT active_record_1
59476
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:15:03.001201', "log" = '2013-08-15 19:15:02: LOCAL_TEST
59477
+ 2013-08-15 19:15:03: TEST_2
59478
+ ', "updated_at" = '2013-08-15 16:15:03.001491' WHERE "action_smser_delivery_reports"."id" = 1
59479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59480
+  (0.0ms) SAVEPOINT active_record_1
59481
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:03: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59483
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59484
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59485
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59486
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59487
+  (0.0ms) SAVEPOINT active_record_1
59488
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:03.016191', "log" = '2013-08-15 19:15:03: ORIGINAL_STATUS
59489
+ 2013-08-15 19:15:03: DELIVERED
59490
+ ', "updated_at" = '2013-08-15 16:15:03.016636' WHERE "action_smser_delivery_reports"."id" = 1
59491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59492
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59493
+ Rendered text template (0.0ms)
59494
+ Completed 200 OK in 15ms (Views: 11.2ms | ActiveRecord: 0.3ms)
59495
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59496
+  (0.0ms) SAVEPOINT active_record_1
59497
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:03: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59499
+  (0.0ms) SAVEPOINT active_record_1
59500
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:03: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59502
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59503
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
59504
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59505
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59506
+  (0.0ms) SAVEPOINT active_record_1
59507
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:03.052533', "log" = '2013-08-15 19:15:03: ORIGINAL_STATUS
59508
+ 2013-08-15 19:15:03: DELIVERED
59509
+ ', "updated_at" = '2013-08-15 16:15:03.052877' WHERE "action_smser_delivery_reports"."id" = 1
59510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59511
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59512
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
59513
+  (0.0ms) SAVEPOINT active_record_1
59514
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:03.054150', "log" = '2013-08-15 19:15:03: ORIGINAL_STATUS
59515
+ 2013-08-15 19:15:03: DELIVERED
59516
+ ', "updated_at" = '2013-08-15 16:15:03.054439' WHERE "action_smser_delivery_reports"."id" = 2
59517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59518
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
59519
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
59520
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59521
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
59522
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59523
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59524
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
59525
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59526
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59527
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59528
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
59529
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
59530
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
59531
+  (0.0ms) SAVEPOINT active_record_1
59532
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_0"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59534
+  (0.0ms) SAVEPOINT active_record_1
59535
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59537
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59538
+ Parameters: {"use_route"=>"action_smser"}
59539
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021')
59540
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021') GROUP BY gateway
59541
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021')
59542
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021') GROUP BY status
59543
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021')
59544
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.068859' AND '2013-08-15 16:05:03.069021') GROUP BY sms_type
59545
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.4ms)
59546
+  (0.0ms) SAVEPOINT active_record_1
59547
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59549
+  (0.0ms) SAVEPOINT active_record_1
59550
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59552
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59553
+ Parameters: {"use_route"=>"action_smser"}
59554
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615')
59555
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615') GROUP BY gateway
59556
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615')
59557
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615') GROUP BY status
59558
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615')
59559
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:03.084510' AND '2013-08-15 16:05:03.084615') GROUP BY sms_type
59560
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.4ms)
59561
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59562
+ Parameters: {"use_route"=>"action_smser"}
59563
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59564
+  (0.0ms) SAVEPOINT active_record_1
59565
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59567
+  (0.0ms) SAVEPOINT active_record_1
59568
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59570
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
59571
+ Parameters: {"use_route"=>"action_smser"}
59572
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
59573
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
59574
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59575
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x50d0278>
59576
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59577
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x50d0278>
59578
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59579
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59580
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59581
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x50c8258>
59582
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59583
+  (0.0ms) SAVEPOINT active_record_1
59584
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59586
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x50c8258>
59587
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59588
+  (0.0ms) SAVEPOINT active_record_1
59589
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59591
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59592
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59593
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x509c518>
59594
+ ActionSmser: id_1234
59595
+ id_6666
59596
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59597
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59598
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x5096aa0>
59599
+ ActionSmser: id_1234
59600
+ id_6666
59601
+  (0.0ms) SAVEPOINT active_record_1
59602
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59604
+  (0.0ms) SAVEPOINT active_record_1
59605
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59607
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59608
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59609
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59610
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59611
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59612
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59613
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59614
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59615
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59616
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59617
+  (0.0ms) SAVEPOINT active_record_1
59618
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "test_array_id_34000512"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59620
+  (0.0ms) SAVEPOINT active_record_1
59621
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:03: LOCAL_SENT\n"], ["msg_id", "test_array_id_7871309"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:03 UTC +00:00]]
59622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59623
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59624
+
59625
+
59626
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:15:03 +0300
59627
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59628
+ Parameters: {"gateway"=>"example_gateway"}
59629
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59630
+  (0.0ms) select sqlite_version(*)
59631
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
59632
+  (0.0ms) PRAGMA index_list("schema_migrations")
59633
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
59634
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
59635
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
59636
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
59637
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
59638
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
59639
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
59640
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59641
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59642
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59643
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59644
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59645
+ ActionSmser: Delivering sms by delayed_job
59646
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59647
+  (0.0ms) SAVEPOINT active_record_1
59648
+ SQL (3.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59650
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59651
+  (0.0ms) SAVEPOINT active_record_1
59652
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59654
+  (0.0ms) SAVEPOINT active_record_1
59655
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:15:08.491866' WHERE "action_smser_delivery_reports"."id" = 1
59656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59657
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59658
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:15:08", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:15:08: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:15:08", updated_at: "2013-08-15 16:15:08">
59659
+  (0.0ms) SAVEPOINT active_record_1
59660
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:15:08.493969' WHERE "action_smser_delivery_reports"."id" = 1
59661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59662
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59663
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
59664
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59665
+  (0.0ms) SAVEPOINT active_record_1
59666
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "test_array_id_14328914"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59668
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
59669
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
59670
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
59671
+  (0.0ms) SAVEPOINT active_record_1
59672
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59674
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59675
+  (0.0ms) SAVEPOINT active_record_1
59676
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:08: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59678
+  (0.0ms) SAVEPOINT active_record_1
59679
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:15:08.520572', "log" = '2013-08-15 19:15:08: LOCAL_TEST
59680
+ 2013-08-15 19:15:08: TEST_2
59681
+ ', "updated_at" = '2013-08-15 16:15:08.520854' WHERE "action_smser_delivery_reports"."id" = 1
59682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59683
+  (0.0ms) SAVEPOINT active_record_1
59684
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:08: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59686
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59687
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59688
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59689
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59690
+  (0.0ms) SAVEPOINT active_record_1
59691
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:08.533527', "log" = '2013-08-15 19:15:08: ORIGINAL_STATUS
59692
+ 2013-08-15 19:15:08: DELIVERED
59693
+ ', "updated_at" = '2013-08-15 16:15:08.533950' WHERE "action_smser_delivery_reports"."id" = 1
59694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59695
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59696
+ Rendered text template (0.0ms)
59697
+ Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.3ms)
59698
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59699
+  (0.0ms) SAVEPOINT active_record_1
59700
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:08: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59702
+  (0.0ms) SAVEPOINT active_record_1
59703
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:15:08: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59705
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59706
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
59707
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59708
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59709
+  (0.0ms) SAVEPOINT active_record_1
59710
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:08.568001', "log" = '2013-08-15 19:15:08: ORIGINAL_STATUS
59711
+ 2013-08-15 19:15:08: DELIVERED
59712
+ ', "updated_at" = '2013-08-15 16:15:08.568369' WHERE "action_smser_delivery_reports"."id" = 1
59713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59714
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59715
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
59716
+  (0.0ms) SAVEPOINT active_record_1
59717
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:15:08.569598', "log" = '2013-08-15 19:15:08: ORIGINAL_STATUS
59718
+ 2013-08-15 19:15:08: DELIVERED
59719
+ ', "updated_at" = '2013-08-15 16:15:08.569907' WHERE "action_smser_delivery_reports"."id" = 2
59720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59721
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
59722
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
59723
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59724
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
59725
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59726
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59727
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
59728
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59729
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59730
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59731
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
59732
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
59733
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
59734
+  (0.0ms) SAVEPOINT active_record_1
59735
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59737
+  (0.0ms) SAVEPOINT active_record_1
59738
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_0"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59740
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59741
+ Parameters: {"use_route"=>"action_smser"}
59742
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377')
59743
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377') GROUP BY gateway
59744
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377')
59745
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377') GROUP BY status
59746
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377')
59747
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.584250' AND '2013-08-15 16:05:08.584377') GROUP BY sms_type
59748
+ Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.4ms)
59749
+  (0.0ms) SAVEPOINT active_record_1
59750
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59752
+  (0.0ms) SAVEPOINT active_record_1
59753
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59755
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59756
+ Parameters: {"use_route"=>"action_smser"}
59757
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122')
59758
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122') GROUP BY gateway
59759
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122')
59760
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122') GROUP BY status
59761
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122')
59762
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:15:08.600029' AND '2013-08-15 16:05:08.600122') GROUP BY sms_type
59763
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.4ms)
59764
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59765
+ Parameters: {"use_route"=>"action_smser"}
59766
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59767
+  (0.0ms) SAVEPOINT active_record_1
59768
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59770
+  (0.0ms) SAVEPOINT active_record_1
59771
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_0"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59773
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
59774
+ Parameters: {"use_route"=>"action_smser"}
59775
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
59776
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
59777
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59778
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x33b2ba0>
59779
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59780
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x33b2ba0>
59781
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59782
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59783
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59784
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x33aac48>
59785
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59786
+  (0.0ms) SAVEPOINT active_record_1
59787
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59789
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x33aac48>
59790
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59791
+  (0.0ms) SAVEPOINT active_record_1
59792
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59794
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59795
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59796
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x337eeb8>
59797
+ ActionSmser: id_1234
59798
+ id_6666
59799
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59800
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59801
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3379468>
59802
+ ActionSmser: id_1234
59803
+ id_6666
59804
+  (0.1ms) SAVEPOINT active_record_1
59805
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59807
+  (0.0ms) SAVEPOINT active_record_1
59808
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59810
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59811
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59812
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59813
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59814
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59815
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59816
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59817
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59818
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59819
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59820
+  (0.0ms) SAVEPOINT active_record_1
59821
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "test_array_id_75428322"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59823
+  (0.0ms) SAVEPOINT active_record_1
59824
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:15:08: LOCAL_SENT\n"], ["msg_id", "test_array_id_89294539"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:15:08 UTC +00:00]]
59825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59826
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59827
+
59828
+
59829
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:15:08 +0300
59830
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59831
+ Parameters: {"gateway"=>"example_gateway"}
59832
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59833
+  (0.1ms) select sqlite_version(*)
59834
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
59835
+  (0.0ms) PRAGMA index_list("schema_migrations")
59836
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
59837
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
59838
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
59839
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
59840
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
59841
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
59842
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
59843
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59844
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59845
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
59846
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59847
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59848
+ ActionSmser: Delivering sms by delayed_job
59849
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59850
+  (0.0ms) SAVEPOINT active_record_1
59851
+ SQL (23.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59853
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59854
+  (0.0ms) SAVEPOINT active_record_1
59855
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59857
+  (0.0ms) SAVEPOINT active_record_1
59858
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:21:21.577523' WHERE "action_smser_delivery_reports"."id" = 1
59859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59860
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59861
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:21:21", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:21:21: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:21:21", updated_at: "2013-08-15 16:21:21">
59862
+  (0.0ms) SAVEPOINT active_record_1
59863
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:21:21.579625' WHERE "action_smser_delivery_reports"."id" = 1
59864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59865
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59866
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
59867
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
59868
+  (0.0ms) SAVEPOINT active_record_1
59869
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "test_array_id_69524321"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59871
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
59872
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
59873
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
59874
+  (0.0ms) SAVEPOINT active_record_1
59875
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59877
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59878
+  (0.0ms) SAVEPOINT active_record_1
59879
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:21: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59881
+  (0.0ms) SAVEPOINT active_record_1
59882
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:21:21.621853', "log" = '2013-08-15 19:21:21: LOCAL_TEST
59883
+ 2013-08-15 19:21:21: TEST_2
59884
+ ', "updated_at" = '2013-08-15 16:21:21.622134' WHERE "action_smser_delivery_reports"."id" = 1
59885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59886
+  (0.0ms) SAVEPOINT active_record_1
59887
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:21: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59889
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59890
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59891
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59892
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59893
+  (0.0ms) SAVEPOINT active_record_1
59894
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:21.653104', "log" = '2013-08-15 19:21:21: ORIGINAL_STATUS
59895
+ 2013-08-15 19:21:21: DELIVERED
59896
+ ', "updated_at" = '2013-08-15 16:21:21.653584' WHERE "action_smser_delivery_reports"."id" = 1
59897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59898
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59899
+ Rendered text template (0.0ms)
59900
+ Completed 200 OK in 30ms (Views: 26.4ms | ActiveRecord: 0.3ms)
59901
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59902
+  (0.0ms) SAVEPOINT active_record_1
59903
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:21: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59905
+  (0.0ms) SAVEPOINT active_record_1
59906
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:21: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59908
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59909
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
59910
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59911
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
59912
+  (0.0ms) SAVEPOINT active_record_1
59913
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:21.688149', "log" = '2013-08-15 19:21:21: ORIGINAL_STATUS
59914
+ 2013-08-15 19:21:21: DELIVERED
59915
+ ', "updated_at" = '2013-08-15 16:21:21.688500' WHERE "action_smser_delivery_reports"."id" = 1
59916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59917
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
59918
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
59919
+  (0.0ms) SAVEPOINT active_record_1
59920
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:21.689688', "log" = '2013-08-15 19:21:21: ORIGINAL_STATUS
59921
+ 2013-08-15 19:21:21: DELIVERED
59922
+ ', "updated_at" = '2013-08-15 16:21:21.689960' WHERE "action_smser_delivery_reports"."id" = 2
59923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59924
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
59925
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
59926
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
59927
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
59928
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59929
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59930
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
59931
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
59932
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
59933
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
59934
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
59935
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
59936
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
59937
+  (0.0ms) SAVEPOINT active_record_1
59938
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59940
+  (0.0ms) SAVEPOINT active_record_1
59941
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59943
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59944
+ Parameters: {"use_route"=>"action_smser"}
59945
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071')
59946
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071') GROUP BY gateway
59947
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071')
59948
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071') GROUP BY status
59949
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071')
59950
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.702940' AND '2013-08-15 16:11:21.703071') GROUP BY sms_type
59951
+ Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.4ms)
59952
+  (0.0ms) SAVEPOINT active_record_1
59953
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59955
+  (0.0ms) SAVEPOINT active_record_1
59956
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59958
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59959
+ Parameters: {"use_route"=>"action_smser"}
59960
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109')
59961
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109') GROUP BY gateway
59962
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109')
59963
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109') GROUP BY status
59964
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109')
59965
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:21.738010' AND '2013-08-15 16:11:21.738109') GROUP BY sms_type
59966
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.4ms)
59967
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
59968
+ Parameters: {"use_route"=>"action_smser"}
59969
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
59970
+  (0.0ms) SAVEPOINT active_record_1
59971
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59973
+  (0.0ms) SAVEPOINT active_record_1
59974
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59976
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
59977
+ Parameters: {"use_route"=>"action_smser"}
59978
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
59979
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
59980
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59981
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3d1d780>
59982
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59983
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3d1d780>
59984
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59985
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
59986
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59987
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3d25a48>
59988
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59989
+  (0.0ms) SAVEPOINT active_record_1
59990
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59992
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3d25a48>
59993
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
59994
+  (0.0ms) SAVEPOINT active_record_1
59995
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
59996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59997
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
59998
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
59999
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3d518c8>
60000
+ ActionSmser: id_1234
60001
+ id_6666
60002
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60003
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60004
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3d5c110>
60005
+ ActionSmser: id_1234
60006
+ id_6666
60007
+  (0.1ms) SAVEPOINT active_record_1
60008
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
60009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60010
+  (0.0ms) SAVEPOINT active_record_1
60011
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
60012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60013
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60014
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60015
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60016
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60017
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60018
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60019
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60020
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60021
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60022
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60023
+  (0.0ms) SAVEPOINT active_record_1
60024
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "test_array_id_57330703"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
60025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60026
+  (0.0ms) SAVEPOINT active_record_1
60027
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:21: LOCAL_SENT\n"], ["msg_id", "test_array_id_14809312"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:21:21 UTC +00:00]]
60028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60029
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60030
+
60031
+
60032
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:21:21 +0300
60033
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60034
+ Parameters: {"gateway"=>"example_gateway"}
60035
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60036
+  (0.0ms) select sqlite_version(*)
60037
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
60038
+  (0.0ms) PRAGMA index_list("schema_migrations")
60039
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60040
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60041
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
60042
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
60043
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
60044
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
60045
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
60046
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60047
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60048
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60049
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60050
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60051
+ ActionSmser: Delivering sms by delayed_job
60052
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60053
+  (0.0ms) SAVEPOINT active_record_1
60054
+ SQL (24.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60056
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60057
+  (0.0ms) SAVEPOINT active_record_1
60058
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60060
+  (0.0ms) SAVEPOINT active_record_1
60061
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:21:30.829890' WHERE "action_smser_delivery_reports"."id" = 1
60062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60063
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60064
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:21:30", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:21:30: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:21:30", updated_at: "2013-08-15 16:21:30">
60065
+  (0.0ms) SAVEPOINT active_record_1
60066
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:21:30.831964' WHERE "action_smser_delivery_reports"."id" = 1
60067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60068
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60069
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
60070
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60071
+  (0.0ms) SAVEPOINT active_record_1
60072
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:30: LOCAL_SENT\n"], ["msg_id", "test_array_id_25292387"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60074
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
60075
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
60076
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
60077
+  (0.0ms) SAVEPOINT active_record_1
60078
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:30: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60080
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60081
+  (0.0ms) SAVEPOINT active_record_1
60082
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:30: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60084
+  (0.0ms) SAVEPOINT active_record_1
60085
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:21:30.874170', "log" = '2013-08-15 19:21:30: LOCAL_TEST
60086
+ 2013-08-15 19:21:30: TEST_2
60087
+ ', "updated_at" = '2013-08-15 16:21:30.874438' WHERE "action_smser_delivery_reports"."id" = 1
60088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60089
+  (0.0ms) SAVEPOINT active_record_1
60090
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60092
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60093
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60094
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60095
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60096
+  (0.0ms) SAVEPOINT active_record_1
60097
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:30.905383', "log" = '2013-08-15 19:21:30: ORIGINAL_STATUS
60098
+ 2013-08-15 19:21:30: DELIVERED
60099
+ ', "updated_at" = '2013-08-15 16:21:30.905812' WHERE "action_smser_delivery_reports"."id" = 1
60100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60101
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60102
+ Rendered text template (0.0ms)
60103
+ Completed 200 OK in 30ms (Views: 26.5ms | ActiveRecord: 0.3ms)
60104
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60105
+  (0.0ms) SAVEPOINT active_record_1
60106
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:30: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60108
+  (0.0ms) SAVEPOINT active_record_1
60109
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:21:30: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60111
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60112
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
60113
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60114
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60115
+  (0.0ms) SAVEPOINT active_record_1
60116
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:30.940089', "log" = '2013-08-15 19:21:30: ORIGINAL_STATUS
60117
+ 2013-08-15 19:21:30: DELIVERED
60118
+ ', "updated_at" = '2013-08-15 16:21:30.940436' WHERE "action_smser_delivery_reports"."id" = 1
60119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60120
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60121
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
60122
+  (0.0ms) SAVEPOINT active_record_1
60123
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:21:30.941575', "log" = '2013-08-15 19:21:30: ORIGINAL_STATUS
60124
+ 2013-08-15 19:21:30: DELIVERED
60125
+ ', "updated_at" = '2013-08-15 16:21:30.941841' WHERE "action_smser_delivery_reports"."id" = 2
60126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60127
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
60128
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
60129
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60130
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
60131
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60132
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60133
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60134
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60135
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60136
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60137
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
60138
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
60139
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
60140
+  (0.0ms) SAVEPOINT active_record_1
60141
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_0"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60143
+  (0.0ms) SAVEPOINT active_record_1
60144
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60146
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60147
+ Parameters: {"use_route"=>"action_smser"}
60148
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779')
60149
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779') GROUP BY gateway
60150
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779')
60151
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779') GROUP BY status
60152
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779')
60153
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.954645' AND '2013-08-15 16:11:30.954779') GROUP BY sms_type
60154
+ Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.5ms)
60155
+  (0.0ms) SAVEPOINT active_record_1
60156
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60158
+  (0.0ms) SAVEPOINT active_record_1
60159
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:30 UTC +00:00]]
60160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60161
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60162
+ Parameters: {"use_route"=>"action_smser"}
60163
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651')
60164
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651') GROUP BY gateway
60165
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651')
60166
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651') GROUP BY status
60167
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651')
60168
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:21:30.989548' AND '2013-08-15 16:11:30.989651') GROUP BY sms_type
60169
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.4ms)
60170
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60171
+ Parameters: {"use_route"=>"action_smser"}
60172
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60173
+  (0.0ms) SAVEPOINT active_record_1
60174
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60176
+  (0.0ms) SAVEPOINT active_record_1
60177
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_3"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60179
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
60180
+ Parameters: {"use_route"=>"action_smser"}
60181
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
60182
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
60183
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60184
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60185
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60186
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60187
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x42d9660>
60188
+ ActionSmser: id_1234
60189
+ id_6666
60190
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60191
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60192
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x42e2008>
60193
+ ActionSmser: id_1234
60194
+ id_6666
60195
+  (0.0ms) SAVEPOINT active_record_1
60196
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:21:31: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60198
+  (0.0ms) SAVEPOINT active_record_1
60199
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:21:31: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60201
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60202
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60203
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60204
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60205
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60206
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60207
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60208
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60209
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60210
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60211
+  (0.0ms) SAVEPOINT active_record_1
60212
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:31: LOCAL_SENT\n"], ["msg_id", "test_array_id_8302827"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60214
+  (0.0ms) SAVEPOINT active_record_1
60215
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:21:31: LOCAL_SENT\n"], ["msg_id", "test_array_id_98881040"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:21:31 UTC +00:00]]
60216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60217
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60218
+
60219
+
60220
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:21:31 +0300
60221
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60222
+ Parameters: {"gateway"=>"example_gateway"}
60223
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60224
+  (0.0ms) select sqlite_version(*)
60225
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
60226
+  (0.0ms) PRAGMA index_list("schema_migrations")
60227
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60228
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60229
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
60230
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
60231
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
60232
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
60233
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
60234
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60235
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60236
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60237
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60238
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60239
+ ActionSmser: Delivering sms by delayed_job
60240
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60241
+  (0.0ms) SAVEPOINT active_record_1
60242
+ SQL (26.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60244
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60245
+  (0.1ms) SAVEPOINT active_record_1
60246
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60248
+  (0.0ms) SAVEPOINT active_record_1
60249
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:22:43.547273' WHERE "action_smser_delivery_reports"."id" = 1
60250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60251
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60252
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:22:43", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:22:43: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:22:43", updated_at: "2013-08-15 16:22:43">
60253
+  (0.0ms) SAVEPOINT active_record_1
60254
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:22:43.550128' WHERE "action_smser_delivery_reports"."id" = 1
60255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60256
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60257
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
60258
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60259
+  (0.0ms) SAVEPOINT active_record_1
60260
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "test_array_id_35980371"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60262
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
60263
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
60264
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
60265
+  (0.0ms) SAVEPOINT active_record_1
60266
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60268
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60269
+  (0.0ms) SAVEPOINT active_record_1
60270
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:22:43: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60272
+  (0.0ms) SAVEPOINT active_record_1
60273
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:22:43.602639', "log" = '2013-08-15 19:22:43: LOCAL_TEST
60274
+ 2013-08-15 19:22:43: TEST_2
60275
+ ', "updated_at" = '2013-08-15 16:22:43.602952' WHERE "action_smser_delivery_reports"."id" = 1
60276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60277
+  (0.1ms) SAVEPOINT active_record_1
60278
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:22:43: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60280
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60281
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60282
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60283
+ ActionSmser::DeliveryReport Load (0.3ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60284
+  (0.1ms) SAVEPOINT active_record_1
60285
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:22:43.643022', "log" = '2013-08-15 19:22:43: ORIGINAL_STATUS
60286
+ 2013-08-15 19:22:43: DELIVERED
60287
+ ', "updated_at" = '2013-08-15 16:22:43.644386' WHERE "action_smser_delivery_reports"."id" = 1
60288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60289
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60290
+ Rendered text template (0.0ms)
60291
+ Completed 200 OK in 39ms (Views: 32.8ms | ActiveRecord: 0.5ms)
60292
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60293
+  (0.0ms) SAVEPOINT active_record_1
60294
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:22:43: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60296
+  (0.0ms) SAVEPOINT active_record_1
60297
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:22:43: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60299
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60300
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
60301
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60302
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60303
+  (0.0ms) SAVEPOINT active_record_1
60304
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:22:43.687484', "log" = '2013-08-15 19:22:43: ORIGINAL_STATUS
60305
+ 2013-08-15 19:22:43: DELIVERED
60306
+ ', "updated_at" = '2013-08-15 16:22:43.687897' WHERE "action_smser_delivery_reports"."id" = 1
60307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60308
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60309
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
60310
+  (0.0ms) SAVEPOINT active_record_1
60311
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:22:43.689283', "log" = '2013-08-15 19:22:43: ORIGINAL_STATUS
60312
+ 2013-08-15 19:22:43: DELIVERED
60313
+ ', "updated_at" = '2013-08-15 16:22:43.689624' WHERE "action_smser_delivery_reports"."id" = 2
60314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60315
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
60316
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
60317
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60318
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
60319
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60320
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60321
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
60322
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60323
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60324
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60325
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
60326
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
60327
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
60328
+  (0.0ms) SAVEPOINT active_record_1
60329
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60331
+  (0.0ms) SAVEPOINT active_record_1
60332
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60334
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60335
+ Parameters: {"use_route"=>"action_smser"}
60336
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155')
60337
+  (0.2ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155') GROUP BY gateway
60338
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155')
60339
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155') GROUP BY status
60340
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155')
60341
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.705953' AND '2013-08-15 16:12:43.706155') GROUP BY sms_type
60342
+ Completed 200 OK in 40ms (Views: 39.0ms | ActiveRecord: 0.7ms)
60343
+  (0.0ms) SAVEPOINT active_record_1
60344
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_3"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60346
+  (0.0ms) SAVEPOINT active_record_1
60347
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60349
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60350
+ Parameters: {"use_route"=>"action_smser"}
60351
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136')
60352
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136') GROUP BY gateway
60353
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136')
60354
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136') GROUP BY status
60355
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136')
60356
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:22:43.747031' AND '2013-08-15 16:12:43.747136') GROUP BY sms_type
60357
+ Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.4ms)
60358
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60359
+ Parameters: {"use_route"=>"action_smser"}
60360
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60361
+  (0.0ms) SAVEPOINT active_record_1
60362
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60364
+  (0.0ms) SAVEPOINT active_record_1
60365
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60367
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
60368
+ Parameters: {"use_route"=>"action_smser"}
60369
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
60370
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
60371
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60372
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4eacc58>
60373
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60374
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4eacc58>
60375
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60376
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60377
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60378
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4eb4ea8>
60379
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60380
+  (0.0ms) SAVEPOINT active_record_1
60381
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60383
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4eb4ea8>
60384
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60385
+  (0.0ms) SAVEPOINT active_record_1
60386
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60388
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60389
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60390
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4ee0b98>
60391
+ ActionSmser: id_1234
60392
+ id_6666
60393
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60394
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60395
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4ee33c0>
60396
+ ActionSmser: id_1234
60397
+ id_6666
60398
+  (0.1ms) SAVEPOINT active_record_1
60399
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60401
+  (0.0ms) SAVEPOINT active_record_1
60402
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60404
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60405
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60406
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60407
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60408
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60409
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60410
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60411
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60412
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60413
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60414
+  (0.0ms) SAVEPOINT active_record_1
60415
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "test_array_id_882051"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60417
+  (0.0ms) SAVEPOINT active_record_1
60418
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:22:43: LOCAL_SENT\n"], ["msg_id", "test_array_id_75195519"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:22:43 UTC +00:00]]
60419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60420
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60421
+
60422
+
60423
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:22:43 +0300
60424
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60425
+ Parameters: {"gateway"=>"example_gateway"}
60426
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60427
+  (0.0ms) select sqlite_version(*)
60428
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
60429
+  (0.0ms) PRAGMA index_list("schema_migrations")
60430
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60431
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60432
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
60433
+  (0.3ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
60434
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
60435
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
60436
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
60437
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60438
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60439
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60440
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60441
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60442
+ ActionSmser: Delivering sms by delayed_job
60443
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60444
+  (0.0ms) SAVEPOINT active_record_1
60445
+ SQL (28.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60447
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60448
+  (0.0ms) SAVEPOINT active_record_1
60449
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60451
+  (0.0ms) SAVEPOINT active_record_1
60452
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:47:27.334500' WHERE "action_smser_delivery_reports"."id" = 1
60453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60454
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60455
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:47:27", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:47:27: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:47:27", updated_at: "2013-08-15 16:47:27">
60456
+  (0.0ms) SAVEPOINT active_record_1
60457
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:47:27.337211' WHERE "action_smser_delivery_reports"."id" = 1
60458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60459
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60460
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
60461
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60462
+  (0.0ms) SAVEPOINT active_record_1
60463
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "test_array_id_2815053"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60465
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
60466
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
60467
+ ActionSmser::DeliveryReport Load (0.3ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
60468
+  (0.0ms) SAVEPOINT active_record_1
60469
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60471
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60472
+  (0.0ms) SAVEPOINT active_record_1
60473
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:27: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60475
+  (0.0ms) SAVEPOINT active_record_1
60476
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:47:27.397438', "log" = '2013-08-15 19:47:27: LOCAL_TEST
60477
+ 2013-08-15 19:47:27: TEST_2
60478
+ ', "updated_at" = '2013-08-15 16:47:27.397790' WHERE "action_smser_delivery_reports"."id" = 1
60479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60480
+  (0.0ms) SAVEPOINT active_record_1
60481
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:27: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60483
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60484
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60485
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60486
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60487
+  (0.0ms) SAVEPOINT active_record_1
60488
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:27.432599', "log" = '2013-08-15 19:47:27: ORIGINAL_STATUS
60489
+ 2013-08-15 19:47:27: DELIVERED
60490
+ ', "updated_at" = '2013-08-15 16:47:27.433090' WHERE "action_smser_delivery_reports"."id" = 1
60491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60492
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60493
+ Rendered text template (0.0ms)
60494
+ Completed 200 OK in 34ms (Views: 29.9ms | ActiveRecord: 0.4ms)
60495
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60496
+  (0.0ms) SAVEPOINT active_record_1
60497
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:27: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60499
+  (0.0ms) SAVEPOINT active_record_1
60500
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:27: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60502
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60503
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
60504
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60505
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60506
+  (0.0ms) SAVEPOINT active_record_1
60507
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:27.473727', "log" = '2013-08-15 19:47:27: ORIGINAL_STATUS
60508
+ 2013-08-15 19:47:27: DELIVERED
60509
+ ', "updated_at" = '2013-08-15 16:47:27.474340' WHERE "action_smser_delivery_reports"."id" = 1
60510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60511
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60512
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
60513
+  (0.0ms) SAVEPOINT active_record_1
60514
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:27.476588', "log" = '2013-08-15 19:47:27: ORIGINAL_STATUS
60515
+ 2013-08-15 19:47:27: DELIVERED
60516
+ ', "updated_at" = '2013-08-15 16:47:27.477171' WHERE "action_smser_delivery_reports"."id" = 2
60517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60518
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
60519
+ Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 0.9ms)
60520
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60521
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
60522
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60523
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60524
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60525
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60526
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60527
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60528
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
60529
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
60530
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
60531
+  (0.0ms) SAVEPOINT active_record_1
60532
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60534
+  (0.0ms) SAVEPOINT active_record_1
60535
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60537
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60538
+ Parameters: {"use_route"=>"action_smser"}
60539
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276')
60540
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276') GROUP BY gateway
60541
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276')
60542
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276') GROUP BY status
60543
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276')
60544
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.494118' AND '2013-08-15 16:37:27.494276') GROUP BY sms_type
60545
+ Completed 200 OK in 36ms (Views: 35.7ms | ActiveRecord: 0.5ms)
60546
+  (0.0ms) SAVEPOINT active_record_1
60547
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60549
+  (0.0ms) SAVEPOINT active_record_1
60550
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60552
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60553
+ Parameters: {"use_route"=>"action_smser"}
60554
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473')
60555
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473') GROUP BY gateway
60556
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473')
60557
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473') GROUP BY status
60558
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473')
60559
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:27.532369' AND '2013-08-15 16:37:27.532473') GROUP BY sms_type
60560
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.4ms)
60561
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60562
+ Parameters: {"use_route"=>"action_smser"}
60563
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60564
+  (0.0ms) SAVEPOINT active_record_1
60565
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_1"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60567
+  (0.0ms) SAVEPOINT active_record_1
60568
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_3"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60570
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
60571
+ Parameters: {"use_route"=>"action_smser"}
60572
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
60573
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
60574
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60575
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a91818>
60576
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60577
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a91818>
60578
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60579
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60580
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60581
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a99ab8>
60582
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60583
+  (0.0ms) SAVEPOINT active_record_1
60584
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60586
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a99ab8>
60587
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60588
+  (0.0ms) SAVEPOINT active_record_1
60589
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60591
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60592
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60593
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3ac5960>
60594
+ ActionSmser: id_1234
60595
+ id_6666
60596
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60597
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60598
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3ac81b0>
60599
+ ActionSmser: id_1234
60600
+ id_6666
60601
+  (0.1ms) SAVEPOINT active_record_1
60602
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60604
+  (0.0ms) SAVEPOINT active_record_1
60605
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60607
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60608
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60609
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60610
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60611
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60612
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60613
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60614
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60615
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60616
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60617
+  (0.0ms) SAVEPOINT active_record_1
60618
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "test_array_id_70889599"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60620
+  (0.0ms) SAVEPOINT active_record_1
60621
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:27: LOCAL_SENT\n"], ["msg_id", "test_array_id_97985333"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:27 UTC +00:00]]
60622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60623
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60624
+
60625
+
60626
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:47:27 +0300
60627
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60628
+ Parameters: {"gateway"=>"example_gateway"}
60629
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60630
+  (0.0ms) select sqlite_version(*)
60631
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
60632
+  (0.0ms) PRAGMA index_list("schema_migrations")
60633
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60634
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60635
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
60636
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
60637
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
60638
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
60639
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
60640
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60641
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60642
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60643
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60644
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60645
+ ActionSmser: Delivering sms by delayed_job
60646
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60647
+  (0.0ms) SAVEPOINT active_record_1
60648
+ SQL (23.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60650
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60651
+  (0.0ms) SAVEPOINT active_record_1
60652
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60654
+  (0.0ms) SAVEPOINT active_record_1
60655
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:47:51.744492' WHERE "action_smser_delivery_reports"."id" = 1
60656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60657
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60658
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:47:51", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:47:51: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:47:51", updated_at: "2013-08-15 16:47:51">
60659
+  (0.0ms) SAVEPOINT active_record_1
60660
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:47:51.746589' WHERE "action_smser_delivery_reports"."id" = 1
60661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60662
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60663
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
60664
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60665
+  (0.0ms) SAVEPOINT active_record_1
60666
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "test_array_id_50786201"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60668
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
60669
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
60670
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
60671
+  (0.0ms) SAVEPOINT active_record_1
60672
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60674
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60675
+  (0.0ms) SAVEPOINT active_record_1
60676
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:51: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60678
+  (0.0ms) SAVEPOINT active_record_1
60679
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:47:51.809016', "log" = '2013-08-15 19:47:51: LOCAL_TEST
60680
+ 2013-08-15 19:47:51: TEST_2
60681
+ ', "updated_at" = '2013-08-15 16:47:51.809552' WHERE "action_smser_delivery_reports"."id" = 1
60682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60683
+  (0.1ms) SAVEPOINT active_record_1
60684
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:51: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60686
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60687
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60688
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60689
+ ActionSmser::DeliveryReport Load (0.4ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60690
+  (0.1ms) SAVEPOINT active_record_1
60691
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:51.858337', "log" = '2013-08-15 19:47:51: ORIGINAL_STATUS
60692
+ 2013-08-15 19:47:51: DELIVERED
60693
+ ', "updated_at" = '2013-08-15 16:47:51.859467' WHERE "action_smser_delivery_reports"."id" = 1
60694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60695
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60696
+ Rendered text template (0.0ms)
60697
+ Completed 200 OK in 44ms (Views: 37.6ms | ActiveRecord: 0.7ms)
60698
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60699
+  (0.0ms) SAVEPOINT active_record_1
60700
+ SQL (0.8ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:51: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60702
+  (0.0ms) SAVEPOINT active_record_1
60703
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:47:51: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60705
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60706
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
60707
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60708
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60709
+  (0.0ms) SAVEPOINT active_record_1
60710
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:51.907618', "log" = '2013-08-15 19:47:51: ORIGINAL_STATUS
60711
+ 2013-08-15 19:47:51: DELIVERED
60712
+ ', "updated_at" = '2013-08-15 16:47:51.908016' WHERE "action_smser_delivery_reports"."id" = 1
60713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60714
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60715
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
60716
+  (0.0ms) SAVEPOINT active_record_1
60717
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:47:51.909260', "log" = '2013-08-15 19:47:51: ORIGINAL_STATUS
60718
+ 2013-08-15 19:47:51: DELIVERED
60719
+ ', "updated_at" = '2013-08-15 16:47:51.909543' WHERE "action_smser_delivery_reports"."id" = 2
60720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60721
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
60722
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
60723
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60724
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
60725
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60726
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60727
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
60728
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60729
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60730
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60731
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
60732
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
60733
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
60734
+  (0.0ms) SAVEPOINT active_record_1
60735
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_2"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60737
+  (0.0ms) SAVEPOINT active_record_1
60738
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60740
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60741
+ Parameters: {"use_route"=>"action_smser"}
60742
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566')
60743
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566') GROUP BY gateway
60744
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566')
60745
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566') GROUP BY status
60746
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566')
60747
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.923418' AND '2013-08-15 16:37:51.923566') GROUP BY sms_type
60748
+ Completed 200 OK in 38ms (Views: 37.5ms | ActiveRecord: 0.4ms)
60749
+  (0.0ms) SAVEPOINT active_record_1
60750
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60752
+  (0.0ms) SAVEPOINT active_record_1
60753
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60755
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60756
+ Parameters: {"use_route"=>"action_smser"}
60757
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419')
60758
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419') GROUP BY gateway
60759
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419')
60760
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419') GROUP BY status
60761
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419')
60762
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:47:51.965292' AND '2013-08-15 16:37:51.965419') GROUP BY sms_type
60763
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.4ms)
60764
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60765
+ Parameters: {"use_route"=>"action_smser"}
60766
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60767
+  (0.0ms) SAVEPOINT active_record_1
60768
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60770
+  (0.0ms) SAVEPOINT active_record_1
60771
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_1"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60773
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
60774
+ Parameters: {"use_route"=>"action_smser"}
60775
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
60776
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
60777
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60778
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x448dab0>
60779
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60780
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x448dab0>
60781
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60782
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60783
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60784
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4495d00>
60785
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60786
+  (0.1ms) SAVEPOINT active_record_1
60787
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60789
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4495d00>
60790
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60791
+  (0.1ms) SAVEPOINT active_record_1
60792
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:47:51: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:51 UTC +00:00]]
60793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60794
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60795
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60796
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x44c19f0>
60797
+ ActionSmser: id_1234
60798
+ id_6666
60799
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60800
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60801
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x44c4218>
60802
+ ActionSmser: id_1234
60803
+ id_6666
60804
+  (0.1ms) SAVEPOINT active_record_1
60805
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:47:52: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00]]
60806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60807
+  (0.0ms) SAVEPOINT active_record_1
60808
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:47:52: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00]]
60809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60810
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60811
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60812
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60813
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60814
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60815
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60816
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60817
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60818
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60819
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60820
+  (0.0ms) SAVEPOINT active_record_1
60821
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:52: LOCAL_SENT\n"], ["msg_id", "test_array_id_2673700"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00]]
60822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60823
+  (0.0ms) SAVEPOINT active_record_1
60824
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:47:52: LOCAL_SENT\n"], ["msg_id", "test_array_id_84375091"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:47:52 UTC +00:00]]
60825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60826
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60827
+
60828
+
60829
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:47:52 +0300
60830
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60831
+ Parameters: {"gateway"=>"example_gateway"}
60832
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
60833
+  (0.1ms) select sqlite_version(*)
60834
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
60835
+  (0.0ms) PRAGMA index_list("schema_migrations")
60836
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
60837
+  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
60838
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
60839
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
60840
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
60841
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
60842
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
60843
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60844
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60845
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
60846
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60847
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60848
+ ActionSmser: Delivering sms by delayed_job
60849
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60850
+  (0.0ms) SAVEPOINT active_record_1
60851
+ SQL (31.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:20: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60853
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60854
+  (0.0ms) SAVEPOINT active_record_1
60855
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:20: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60857
+  (0.0ms) SAVEPOINT active_record_1
60858
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:53:20.782653' WHERE "action_smser_delivery_reports"."id" = 1
60859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60860
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60861
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:53:20", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:53:20: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:53:20", updated_at: "2013-08-15 16:53:20">
60862
+  (0.0ms) SAVEPOINT active_record_1
60863
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:53:20.785117' WHERE "action_smser_delivery_reports"."id" = 1
60864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60865
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60866
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
60867
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
60868
+  (0.0ms) SAVEPOINT active_record_1
60869
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:20: LOCAL_SENT\n"], ["msg_id", "test_array_id_65499007"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60871
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
60872
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
60873
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
60874
+  (0.0ms) SAVEPOINT active_record_1
60875
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:20: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60877
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60878
+  (0.0ms) SAVEPOINT active_record_1
60879
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:20: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60881
+  (0.0ms) SAVEPOINT active_record_1
60882
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:53:20.834609', "log" = '2013-08-15 19:53:20: LOCAL_TEST
60883
+ 2013-08-15 19:53:20: TEST_2
60884
+ ', "updated_at" = '2013-08-15 16:53:20.834926' WHERE "action_smser_delivery_reports"."id" = 1
60885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60886
+  (0.0ms) SAVEPOINT active_record_1
60887
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:20: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60889
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60890
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60891
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60892
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60893
+  (0.1ms) SAVEPOINT active_record_1
60894
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:20.877864', "log" = '2013-08-15 19:53:20: ORIGINAL_STATUS
60895
+ 2013-08-15 19:53:20: DELIVERED
60896
+ ', "updated_at" = '2013-08-15 16:53:20.878766' WHERE "action_smser_delivery_reports"."id" = 1
60897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60898
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60899
+ Rendered text template (0.0ms)
60900
+ Completed 200 OK in 42ms (Views: 32.5ms | ActiveRecord: 0.5ms)
60901
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60902
+  (0.1ms) SAVEPOINT active_record_1
60903
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:20: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60905
+  (0.0ms) SAVEPOINT active_record_1
60906
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:20: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60908
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60909
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
60910
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60911
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
60912
+  (0.0ms) SAVEPOINT active_record_1
60913
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:20.925511', "log" = '2013-08-15 19:53:20: ORIGINAL_STATUS
60914
+ 2013-08-15 19:53:20: DELIVERED
60915
+ ', "updated_at" = '2013-08-15 16:53:20.925903' WHERE "action_smser_delivery_reports"."id" = 1
60916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60917
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
60918
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
60919
+  (0.0ms) SAVEPOINT active_record_1
60920
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:20.927233', "log" = '2013-08-15 19:53:20: ORIGINAL_STATUS
60921
+ 2013-08-15 19:53:20: DELIVERED
60922
+ ', "updated_at" = '2013-08-15 16:53:20.927559' WHERE "action_smser_delivery_reports"."id" = 2
60923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60924
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
60925
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
60926
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
60927
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
60928
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60929
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60930
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60931
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
60932
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
60933
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
60934
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
60935
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
60936
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
60937
+  (0.0ms) SAVEPOINT active_record_1
60938
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_8"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60940
+  (0.0ms) SAVEPOINT active_record_1
60941
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60943
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60944
+ Parameters: {"use_route"=>"action_smser"}
60945
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039')
60946
+  (0.2ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039') GROUP BY gateway
60947
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039')
60948
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039') GROUP BY status
60949
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039')
60950
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.943820' AND '2013-08-15 16:43:20.944039') GROUP BY sms_type
60951
+ Completed 200 OK in 52ms (Views: 50.8ms | ActiveRecord: 0.8ms)
60952
+  (0.0ms) SAVEPOINT active_record_1
60953
+ SQL (0.7ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60955
+  (0.0ms) SAVEPOINT active_record_1
60956
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_1"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:20 UTC +00:00]]
60957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60958
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60959
+ Parameters: {"use_route"=>"action_smser"}
60960
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477')
60961
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477') GROUP BY gateway
60962
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477')
60963
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477') GROUP BY status
60964
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477')
60965
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:20.996339' AND '2013-08-15 16:43:20.996477') GROUP BY sms_type
60966
+ Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.5ms)
60967
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
60968
+ Parameters: {"use_route"=>"action_smser"}
60969
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
60970
+  (0.0ms) SAVEPOINT active_record_1
60971
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_7"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
60972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60973
+  (0.0ms) SAVEPOINT active_record_1
60974
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
60975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60976
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
60977
+ Parameters: {"use_route"=>"action_smser"}
60978
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
60979
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)
60980
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60981
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4c45550>
60982
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60983
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4c45550>
60984
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60985
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
60986
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60987
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4c4d7c8>
60988
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60989
+  (0.1ms) SAVEPOINT active_record_1
60990
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
60991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60992
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x4c4d7c8>
60993
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
60994
+  (0.0ms) SAVEPOINT active_record_1
60995
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
60996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60997
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
60998
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
60999
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4c79698>
61000
+ ActionSmser: id_1234
61001
+ id_6666
61002
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61003
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61004
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x4c7bee8>
61005
+ ActionSmser: id_1234
61006
+ id_6666
61007
+  (0.1ms) SAVEPOINT active_record_1
61008
+ SQL (1.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
61009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61010
+  (0.6ms) SAVEPOINT active_record_1
61011
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
61012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61013
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61014
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61015
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61016
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61017
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61018
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61019
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61020
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61021
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61022
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61023
+  (0.0ms) SAVEPOINT active_record_1
61024
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "test_array_id_17932662"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
61025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61026
+  (0.0ms) SAVEPOINT active_record_1
61027
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:21: LOCAL_SENT\n"], ["msg_id", "test_array_id_66657234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:21 UTC +00:00]]
61028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61029
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61030
+
61031
+
61032
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:53:21 +0300
61033
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61034
+ Parameters: {"gateway"=>"example_gateway"}
61035
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
61036
+  (0.1ms) select sqlite_version(*)
61037
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
61038
+  (0.0ms) PRAGMA index_list("schema_migrations")
61039
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
61040
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
61041
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
61042
+  (0.2ms) CREATE TABLE "action_smser_delivery_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "msg_id" varchar(255), "status" varchar(255), "status_updated_at" datetime, "sms_type" varchar(255), "log" text, "to" varchar(255), "from" varchar(255), "body" varchar(255), "gateway" varchar(255), "re_delivery_of_delivery_report_id" integer, "re_delivered" boolean, "created_at" datetime, "updated_at" datetime)
61043
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
61044
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
61045
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
61046
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
61047
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61048
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
61049
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61050
+ ActionSmser: Sending sms - Delivery_method: delayed_job - Sms: (Sms ActionSmser::DelayedJobTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61051
+ ActionSmser: Delivering sms by delayed_job
61052
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61053
+  (0.0ms) SAVEPOINT active_record_1
61054
+ SQL (36.0ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61056
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61057
+  (0.0ms) SAVEPOINT active_record_1
61058
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61060
+  (0.0ms) SAVEPOINT active_record_1
61061
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "gateway" = 'some_delivery', "updated_at" = '2013-08-15 16:53:55.589285' WHERE "action_smser_delivery_reports"."id" = 1
61062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61063
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61064
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2013-08-15 16:53:55", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2013-08-15 19:53:55: LOCAL_SENT\n", to: "123", from: "555666", body: "Body with ääkköset end", gateway: "some_delivery", re_delivery_of_delivery_report_id: nil, re_delivered: nil, created_at: "2013-08-15 16:53:55", updated_at: "2013-08-15 16:53:55">
61065
+  (0.0ms) SAVEPOINT active_record_1
61066
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2013-08-15 16:53:55.591628' WHERE "action_smser_delivery_reports"."id" = 1
61067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61068
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61069
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
61070
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61071
+  (0.0ms) SAVEPOINT active_record_1
61072
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_8464925"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", 1], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61074
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY "action_smser_delivery_reports"."id" DESC LIMIT 1
61075
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."re_delivery_of_delivery_report_id" = 1 LIMIT 1
61076
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
61077
+  (0.0ms) SAVEPOINT active_record_1
61078
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61080
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61081
+  (0.0ms) SAVEPOINT active_record_1
61082
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:55: LOCAL_TEST\n"], ["msg_id", nil], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61084
+  (0.0ms) SAVEPOINT active_record_1
61085
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'TEST_2', "status_updated_at" = '2013-08-15 16:53:55.637411', "log" = '2013-08-15 19:53:55: LOCAL_TEST
61086
+ 2013-08-15 19:53:55: TEST_2
61087
+ ', "updated_at" = '2013-08-15 16:53:55.637711' WHERE "action_smser_delivery_reports"."id" = 1
61088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61089
+  (0.0ms) SAVEPOINT active_record_1
61090
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:55: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61092
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61093
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
61094
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61095
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
61096
+  (0.1ms) SAVEPOINT active_record_1
61097
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:55.676574', "log" = '2013-08-15 19:53:55: ORIGINAL_STATUS
61098
+ 2013-08-15 19:53:55: DELIVERED
61099
+ ', "updated_at" = '2013-08-15 16:53:55.677088' WHERE "action_smser_delivery_reports"."id" = 1
61100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61101
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
61102
+ Rendered text template (0.0ms)
61103
+ Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.3ms)
61104
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61105
+  (0.0ms) SAVEPOINT active_record_1
61106
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:55: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61108
+  (0.0ms) SAVEPOINT active_record_1
61109
+ SQL (0.4ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2013-08-15 19:53:55: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61111
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61112
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "use_route"=>"action_smser"}
61113
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61114
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
61115
+  (0.0ms) SAVEPOINT active_record_1
61116
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:55.712190', "log" = '2013-08-15 19:53:55: ORIGINAL_STATUS
61117
+ 2013-08-15 19:53:55: DELIVERED
61118
+ ', "updated_at" = '2013-08-15 16:53:55.712572' WHERE "action_smser_delivery_reports"."id" = 1
61119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61120
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
61121
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1
61122
+  (0.0ms) SAVEPOINT active_record_1
61123
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = 'DELIVERED', "status_updated_at" = '2013-08-15 16:53:55.713836', "log" = '2013-08-15 19:53:55: ORIGINAL_STATUS
61124
+ 2013-08-15 19:53:55: DELIVERED
61125
+ ', "updated_at" = '2013-08-15 16:53:55.714150' WHERE "action_smser_delivery_reports"."id" = 2
61126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61127
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
61128
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
61129
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
61130
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
61131
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61132
+ Parameters: {"gateway"=>"gateway_not_found", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
61133
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
61134
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61135
+ Parameters: {"gateway"=>"test_gateway", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "use_route"=>"action_smser"}
61136
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
61137
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1
61138
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
61139
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
61140
+  (0.0ms) SAVEPOINT active_record_1
61141
+ SQL (1.0ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61143
+  (0.0ms) SAVEPOINT active_record_1
61144
+ SQL (0.9ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61146
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61147
+ Parameters: {"use_route"=>"action_smser"}
61148
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376')
61149
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376') GROUP BY gateway
61150
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376')
61151
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376') GROUP BY status
61152
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376')
61153
+  (0.1ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.736150' AND '2013-08-15 16:43:55.736376') GROUP BY sms_type
61154
+ Completed 200 OK in 61ms (Views: 59.5ms | ActiveRecord: 0.7ms)
61155
+  (0.0ms) SAVEPOINT active_record_1
61156
+ SQL (1.2ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_6"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61158
+  (0.0ms) SAVEPOINT active_record_1
61159
+ SQL (1.1ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_9"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
61161
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61162
+ Parameters: {"use_route"=>"action_smser"}
61163
+  (0.2ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009')
61164
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009') GROUP BY gateway
61165
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009')
61166
+  (0.2ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009') GROUP BY status
61167
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009')
61168
+  (0.2ms) SELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2013-08-08 16:53:55.800834' AND '2013-08-15 16:43:55.801009') GROUP BY sms_type
61169
+ Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.8ms)
61170
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
61171
+ Parameters: {"use_route"=>"action_smser"}
61172
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
61173
+  (0.0ms) SAVEPOINT active_record_1
61174
+ SQL (0.6ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_4"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61176
+  (0.0ms) SAVEPOINT active_record_1
61177
+ SQL (0.5ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", nil], ["msg_id", "idtest_5"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61179
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
61180
+ Parameters: {"use_route"=>"action_smser"}
61181
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
61182
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
61183
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61184
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a156a0>
61185
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61186
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=false&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a156a0>
61187
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61188
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61189
+ ActionSmser: Sending sms - Delivery_method: nexmo - Sms: (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61190
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=555123555&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a1d918>
61191
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61192
+  (0.0ms) SAVEPOINT active_record_1
61193
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61195
+ ActionSmser: Nexmo delivery http ||| /sms/json?username=user&password=pass&ttl=86400000&status-report-req=true&from=555666&to=123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x3a1d918>
61196
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
61197
+  (0.0ms) SAVEPOINT active_record_1
61198
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "0778DE88"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61200
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61201
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61202
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3a497e8>
61203
+ ActionSmser: id_1234
61204
+ id_6666
61205
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61206
+ ActionSmser: Sending sms - Delivery_method: simple_http - Sms: (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61207
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x3a4c038>
61208
+ ActionSmser: id_1234
61209
+ id_6666
61210
+  (0.1ms) SAVEPOINT active_record_1
61211
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61213
+  (0.0ms) SAVEPOINT active_record_1
61214
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61216
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61217
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61218
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61219
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61220
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61221
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61222
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61223
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
61224
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
61225
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
61226
+  (0.0ms) SAVEPOINT active_record_1
61227
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_43068930"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "555123555"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61229
+  (0.0ms) SAVEPOINT active_record_1
61230
+ SQL (0.3ms) INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "gateway", "log", "msg_id", "re_delivered", "re_delivery_of_delivery_report_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2013-08-15 19:53:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_19549570"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00], ["to", "123555123"], ["updated_at", Thu, 15 Aug 2013 16:53:55 UTC +00:00]]
61231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61232
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
61233
+
61234
+
61235
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2013-08-15 19:53:55 +0300
61236
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
61237
+ Parameters: {"gateway"=>"example_gateway"}
59223
61238
  Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)