action_smser 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe13db0fb291d54f3800445b9d2ad414b1771893
4
- data.tar.gz: e1f31fd38168dac2270601d51a65b1b99f3c536b
3
+ metadata.gz: 6bcc484036637b4f873fd016ccf4b7298e1ccc8f
4
+ data.tar.gz: 2b5cd7ab84aa703ca79b77c1a3fb69ee76d00246
5
5
  SHA512:
6
- metadata.gz: f6cec9eb7d9675cbf0e233fa1c7b2c12316f6db5d2071a6e31cc12bff47e9dae61ddd3953235930342d89dadafa30144bc0b5651daa221c772553bf3b706c7d2
7
- data.tar.gz: 8b89d9e9b5275465ea83a9643566653df80423eedbb537275756fe96079384ac3f39adca294fa0c4c0f126f8a9b48e2455cc9f29d621e6e2a958689acb6cf33b
6
+ metadata.gz: 9c9e922665e0d00dae7d4e0c5b747e43b3511045306f59273eea05c6eb28185f513d8d9bf54354046ab98abe989bd99ea78c02088a713c0b76d366b4686f916d
7
+ data.tar.gz: dccc118d147908840f82d46011f629257be64949c845d68203695815e3855c9b2158e85dce0b33a89f373ac3ece2aecc059a9dc7914b1e88bc1ac308da7f51a1
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.2"
3
3
  end
@@ -33283,3 +33283,463 @@ id_6666
33283
33283
   (0.0ms) RELEASE SAVEPOINT active_record_1
33284
33284
   (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33285
33285
   (0.1ms) rollback transaction
33286
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33287
+  (0.1ms) begin transaction
33288
+ ---------------------------
33289
+ ActionSmserTest: test_truth
33290
+ ---------------------------
33291
+  (0.0ms) rollback transaction
33292
+  (0.1ms) begin transaction
33293
+ --------------------------------------------------------------------------------
33294
+ ActionSmser::SmstradeTest: test_should_append_00_to_phone_numbers_before_sending
33295
+ --------------------------------------------------------------------------------
33296
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
33297
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x405ff60>
33298
+ ActionSmser: 100
33299
+ 123456789
33300
+ 0.064
33301
+ 1
33302
+ ActionSmser: Smstrade delivery http ||| ||| #<Mock:0x405ff60>
33303
+ ActionSmser: 100
33304
+ 123456789
33305
+ 0.064
33306
+ 1
33307
+  (0.1ms) rollback transaction
33308
+  (0.0ms) begin transaction
33309
+ ---------------------------------------------------------
33310
+ ActionSmser::SmstradeTest: test_should_be_able_to_deliver
33311
+ ---------------------------------------------------------
33312
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
33313
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4039f90>
33314
+ ActionSmser: 100
33315
+ 123456789
33316
+ 0.064
33317
+ 1
33318
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x4039f90>
33319
+ ActionSmser: 100
33320
+ 123456789
33321
+ 0.064
33322
+ 1
33323
+  (0.1ms) rollback transaction
33324
+  (0.0ms) begin transaction
33325
+ --------------------------------------------------------------------------------------------------
33326
+ ActionSmser::SmstradeTest: test_should_only_receive_numbers_not_prepended_with_zeros_or_plus_signs
33327
+ --------------------------------------------------------------------------------------------------
33328
+  (0.0ms) rollback transaction
33329
+  (0.0ms) begin transaction
33330
+ ------------------------------------------------------------
33331
+ ActionSmser::SmstradeTest: test_with_saving_delivery_reports
33332
+ ------------------------------------------------------------
33333
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33334
+ ActionSmser: Sending sms - Delivery_method: smstrade - Sms: (Sms ActionSmser::SmstradeTest::MockSms.basic_sms - From: "4917212341234", To: ["4915112341234", "4917812341234"], Body: "Body with ümläüts.", Valid: true)
33335
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004915112341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3ffd9f0>
33336
+ ActionSmser: 100
33337
+ 123456789
33338
+ 0.064
33339
+ 1
33340
+  (0.1ms) SAVEPOINT active_record_1
33341
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004915112341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.256771"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-23 13:45:16.258364"], ["updated_at", "2015-04-23 13:45:16.258364"]]
33342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33343
+ ActionSmser: Smstrade delivery http ||| /?key=api-key-here&from=4917212341234&to=004917812341234&message=Body+with+%C3%BCml%C3%A4%C3%BCts.&route=gold&debug=1&cost=1&message_id=1&count=1&charset=utf-8 ||| #<Mock:0x3ffd9f0>
33344
+ ActionSmser: 100
33345
+ 123456789
33346
+ 0.064
33347
+ 1
33348
+  (0.0ms) SAVEPOINT active_record_1
33349
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "4917212341234"], ["body", "Body with ümläüts."], ["sms_type", "ActionSmser::SmstradeTest::MockSms.basic_sms"], ["to", "004917812341234"], ["msg_id", "123456789"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.261153"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "smstrade"], ["created_at", "2015-04-23 13:45:16.261503"], ["updated_at", "2015-04-23 13:45:16.261503"]]
33350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33351
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33352
+  (0.1ms) rollback transaction
33353
+  (0.0ms) begin transaction
33354
+ --------------------------------------------------------
33355
+ ActionSmser::TestArrayTest: test_should_add_to_TestArray
33356
+ --------------------------------------------------------
33357
+ 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)
33358
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33359
+  (0.0ms) rollback transaction
33360
+  (0.0ms) begin transaction
33361
+ -------------------------------------------------------------
33362
+ ActionSmser::TestArrayTest: test_with_saving_delivery_reports
33363
+ -------------------------------------------------------------
33364
+ 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)
33365
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33366
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33367
+ 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)
33368
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33369
+  (0.0ms) SAVEPOINT active_record_1
33370
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "test_array_id_89975094"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.264886"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.265236"], ["updated_at", "2015-04-23 13:45:16.265236"]]
33371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33372
+  (0.0ms) SAVEPOINT active_record_1
33373
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "test_array_id_34043686"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.267023"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.267375"], ["updated_at", "2015-04-23 13:45:16.267375"]]
33374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33375
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33376
+  (0.1ms) rollback transaction
33377
+  (0.0ms) begin transaction
33378
+ ----------------------------------------------------------
33379
+ ActionSmser::TestArrayTest: test_should_be_able_to_deliver
33380
+ ----------------------------------------------------------
33381
+ 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)
33382
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33383
+  (0.0ms) rollback transaction
33384
+  (0.0ms) begin transaction
33385
+ ---------------------------------------------------------------------
33386
+ ActionSmser::NexmoTest: test_gateway_process_delivery_report(request)
33387
+ ---------------------------------------------------------------------
33388
+  (0.0ms) rollback transaction
33389
+  (0.0ms) begin transaction
33390
+ ------------------------------------------------------------------------------
33391
+ ActionSmser::NexmoTest: test_delivery_path_should_have_unicode_set_when_needed
33392
+ ------------------------------------------------------------------------------
33393
+  (0.0ms) rollback transaction
33394
+  (0.1ms) begin transaction
33395
+ ------------------------------------------------------
33396
+ ActionSmser::NexmoTest: test_should_be_able_to_deliver
33397
+ ------------------------------------------------------
33398
+ 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)
33399
+ 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:0x3c629f8>
33400
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33401
+ 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:0x3c629f8>
33402
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33403
+  (0.0ms) rollback transaction
33404
+  (0.0ms) begin transaction
33405
+ ---------------------------------------------------------
33406
+ ActionSmser::NexmoTest: test_with_saving_delivery_reports
33407
+ ---------------------------------------------------------
33408
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33409
+ 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)
33410
+ 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:0x3c41d20>
33411
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33412
+  (0.0ms) SAVEPOINT active_record_1
33413
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.274666"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-23 13:45:16.275015"], ["updated_at", "2015-04-23 13:45:16.275015"]]
33414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33415
+ 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:0x3c41d20>
33416
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
33417
+  (0.0ms) SAVEPOINT active_record_1
33418
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "0778DE88"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.276288"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "nexmo"], ["created_at", "2015-04-23 13:45:16.276597"], ["updated_at", "2015-04-23 13:45:16.276597"]]
33419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33420
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33421
+  (0.1ms) rollback transaction
33422
+  (0.0ms) begin transaction
33423
+ ----------------------------------------------------------------------------
33424
+ ActionSmser::BaseTest: test_before_delivery_should_be_called_if_it's_present
33425
+ ----------------------------------------------------------------------------
33426
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
33427
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33428
+  (0.1ms) rollback transaction
33429
+  (0.0ms) begin transaction
33430
+ --------------------------------------------------------------------------------------------------------
33431
+ ActionSmser::BaseTest: test_message_real_crop_should_return_cropped_message_with_sms_chars_taken_account
33432
+ --------------------------------------------------------------------------------------------------------
33433
+  (0.0ms) rollback transaction
33434
+  (0.0ms) begin transaction
33435
+ --------------------------------------------------------
33436
+ ActionSmser::BaseTest: test_should_be_able_to_change_ttl
33437
+ --------------------------------------------------------
33438
+  (0.0ms) rollback transaction
33439
+  (0.0ms) begin transaction
33440
+ ----------------------------------------------------------------
33441
+ ActionSmser::BaseTest: test_should_not_be_valid_if_no_recipients
33442
+ ----------------------------------------------------------------
33443
+  (0.0ms) rollback transaction
33444
+  (0.0ms) begin transaction
33445
+ --------------------------------------------------------------
33446
+ ActionSmser::BaseTest: test_should_be_ok_with_single_receivers
33447
+ --------------------------------------------------------------
33448
+  (0.0ms) rollback transaction
33449
+  (0.0ms) begin transaction
33450
+ -----------------------------------------------
33451
+ ActionSmser::BaseTest: test_should_be_valid_sms
33452
+ -----------------------------------------------
33453
+  (0.0ms) rollback transaction
33454
+  (0.0ms) begin transaction
33455
+ ---------------------------------------------------------------------
33456
+ ActionSmser::BaseTest: test_should_have_test_array_as_delivery_method
33457
+ ---------------------------------------------------------------------
33458
+  (0.0ms) rollback transaction
33459
+  (0.0ms) begin transaction
33460
+ ---------------------------------------------------------------------------
33461
+ ActionSmser::BaseTest: test_after_delivery_should_be_called_if_it's_present
33462
+ ---------------------------------------------------------------------------
33463
+ ActionSmser: Sending sms - Delivery_method: test_array - Sms: (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123", "004915112341234", "04917332341111"], Body: "Body with ääkköset end", Valid: true)
33464
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33465
+  (0.0ms) rollback transaction
33466
+  (0.0ms) begin transaction
33467
+ ------------------------------------------------------
33468
+ ActionSmser::BaseTest: test_should_have_saved_sms_type
33469
+ ------------------------------------------------------
33470
+  (0.0ms) rollback transaction
33471
+  (0.0ms) begin transaction
33472
+ --------------------------------------------------------------------------------------------
33473
+ ActionSmser::BaseTest: test_body_should_be_cropped_to_500_chars,_limit_extra_looong_messages
33474
+ --------------------------------------------------------------------------------------------
33475
+  (0.0ms) rollback transaction
33476
+  (0.0ms) begin transaction
33477
+ ----------------------------------------------------------------
33478
+ ActionSmser::BaseTest: test_receivers_should_be_joined_by_commas
33479
+ ----------------------------------------------------------------
33480
+  (0.0ms) rollback transaction
33481
+  (0.0ms) begin transaction
33482
+ -------------------------------------------------------------
33483
+ ActionSmser::BaseTest: test_body_should_be_possible_to_encode
33484
+ -------------------------------------------------------------
33485
+  (0.0ms) rollback transaction
33486
+  (0.0ms) begin transaction
33487
+ -----------------------------------------------------------------------------
33488
+ ActionSmser::BaseTest: test_message_real_length_should_return_real_sms_lenght
33489
+ -----------------------------------------------------------------------------
33490
+  (0.0ms) rollback transaction
33491
+  (0.0ms) begin transaction
33492
+ ----------------------------------------------------------------------
33493
+ ActionSmser::BaseTest: test_from_encoded_should_remove_leading_+_and_0
33494
+ ----------------------------------------------------------------------
33495
+  (0.0ms) rollback transaction
33496
+  (0.0ms) begin transaction
33497
+ -------------------------------------------------------------------------------------
33498
+ ActionSmser::BaseTest: test_should_have_copied_the_delivery_options_when_initializing
33499
+ -------------------------------------------------------------------------------------
33500
+  (0.0ms) rollback transaction
33501
+  (0.0ms) begin transaction
33502
+ -------------------------------------------------------------
33503
+ ActionSmser::BaseTest: test_ttl_should_be_24_hours_by_default
33504
+ -------------------------------------------------------------
33505
+  (0.0ms) rollback transaction
33506
+  (0.1ms) begin transaction
33507
+ --------------------------------------------
33508
+ ActionSmser::DeliveryReportTest: test_to_sms
33509
+ --------------------------------------------
33510
+  (0.0ms) SAVEPOINT active_record_1
33511
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.286728"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.287102"], ["updated_at", "2015-04-23 13:45:16.287102"]]
33512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33513
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
33514
+  (0.1ms) rollback transaction
33515
+  (0.0ms) begin transaction
33516
+ -------------------------------------------------------------------
33517
+ ActionSmser::DeliveryReportTest: test_build_DeliveryReport_from_sms
33518
+ -------------------------------------------------------------------
33519
+  (0.0ms) rollback transaction
33520
+  (0.0ms) begin transaction
33521
+ ------------------------------------------------------
33522
+ ActionSmser::DeliveryReportTest: test_create_from_save
33523
+ ------------------------------------------------------
33524
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33525
+  (0.0ms) SAVEPOINT active_record_1
33526
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.293284"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.293599"], ["updated_at", "2015-04-23 13:45:16.293599"]]
33527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33528
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33529
+  (0.1ms) rollback transaction
33530
+  (0.0ms) begin transaction
33531
+ -----------------------------------------------------------------
33532
+ ActionSmser::DeliveryReportTest: test_re_deliver_with_simple_http
33533
+ -----------------------------------------------------------------
33534
+  (0.0ms) SAVEPOINT active_record_1
33535
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["to", "123"], ["msg_id", "msg_id_a"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.295539"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.295854"], ["updated_at", "2015-04-23 13:45:16.295854"]]
33536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33537
+  (0.0ms) SAVEPOINT active_record_1
33538
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "gateway" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["gateway", "some_delivery"], ["updated_at", "2015-04-23 13:45:16.296939"], ["id", 1]]
33539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33540
+ 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]]
33541
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2015-04-23 13:45:16", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2015-04-23 16:45:16: 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: "2015-04-23 13:45:16", updated_at: "2015-04-23 13:45:16">
33542
+  (0.1ms) SAVEPOINT active_record_1
33543
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["re_delivered", "t"], ["updated_at", "2015-04-23 13:45:16.299529"], ["id", 1]]
33544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33545
+ 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]]
33546
+ 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)
33547
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
33548
+  (0.0ms) SAVEPOINT active_record_1
33549
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "re_delivery_of_delivery_report_id", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery"], ["re_delivery_of_delivery_report_id", 1], ["to", "123"], ["msg_id", "test_array_id_44216541"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.301457"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "test_array"], ["created_at", "2015-04-23 13:45:16.301834"], ["updated_at", "2015-04-23 13:45:16.301834"]]
33550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33551
+ 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
33552
+ 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" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["re_delivery_of_delivery_report_id", 1]]
33553
+ 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]]
33554
+  (0.1ms) rollback transaction
33555
+  (0.0ms) begin transaction
33556
+ -----------------------------------------------------
33557
+ ActionSmser::DeliveryReportTest: test_updating_status
33558
+ -----------------------------------------------------
33559
+  (0.0ms) SAVEPOINT active_record_1
33560
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["status", "LOCAL_TEST"], ["status_updated_at", "2015-04-23 13:45:16.313072"], ["log", "2015-04-23 16:45:16: LOCAL_TEST\n"], ["created_at", "2015-04-23 13:45:16.313451"], ["updated_at", "2015-04-23 13:45:16.313451"]]
33561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33562
+  (0.0ms) SAVEPOINT active_record_1
33563
+ SQL (0.2ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "TEST_2"], ["status_updated_at", "2015-04-23 13:45:16.314412"], ["log", "2015-04-23 16:45:16: LOCAL_TEST\n2015-04-23 16:45:16: TEST_2\n"], ["updated_at", "2015-04-23 13:45:16.314698"], ["id", 1]]
33564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33565
+  (0.1ms) rollback transaction
33566
+  (0.0ms) begin transaction
33567
+ ---------------------------------------------------------
33568
+ NavigationTest: test_basic_gateway_commit_delivery_report
33569
+ ---------------------------------------------------------
33570
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at 2015-04-23 16:45:16 +0300
33571
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33572
+ Parameters: {"gateway"=>"example_gateway"}
33573
+ Rendered text template (0.0ms)
33574
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
33575
+  (0.1ms) rollback transaction
33576
+  (0.0ms) begin transaction
33577
+ ----------------------------------------------------------------------------------------------
33578
+ ActionSmser::DelayedJobTest: test_should_be_able_to_deliver_and_call_enqueue_for_all_receivers
33579
+ ----------------------------------------------------------------------------------------------
33580
+ 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)
33581
+ ActionSmser: Delivering sms by delayed_job
33582
+  (0.0ms) rollback transaction
33583
+  (0.0ms) begin transaction
33584
+ -------------------------------------------------------------
33585
+ ActionSmser::DelayedJobTest: test_test_that_serializing_is_ok
33586
+ -------------------------------------------------------------
33587
+  (0.0ms) rollback transaction
33588
+  (0.1ms) begin transaction
33589
+ -----------------------------------------------------------
33590
+ ActionSmser::SimpleHttpTest: test_should_be_able_to_deliver
33591
+ -----------------------------------------------------------
33592
+ 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)
33593
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x417ee50>
33594
+ ActionSmser: id_1234
33595
+ id_6666
33596
+  (0.0ms) rollback transaction
33597
+  (0.0ms) begin transaction
33598
+ --------------------------------------------------------------
33599
+ ActionSmser::SimpleHttpTest: test_with_saving_delivery_reports
33600
+ --------------------------------------------------------------
33601
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33602
+ 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)
33603
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x417a170>
33604
+ ActionSmser: id_1234
33605
+ id_6666
33606
+  (0.1ms) SAVEPOINT active_record_1
33607
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "555123555"], ["msg_id", "id_1234"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.358789"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-23 13:45:16.359458"], ["updated_at", "2015-04-23 13:45:16.359458"]]
33608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33609
+  (0.1ms) SAVEPOINT active_record_1
33610
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("from", "body", "sms_type", "to", "msg_id", "status", "status_updated_at", "log", "gateway", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["from", "555666"], ["body", "Body with ääkköset end"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["to", "123555123"], ["msg_id", "id_6666"], ["status", "LOCAL_SENT"], ["status_updated_at", "2015-04-23 13:45:16.360815"], ["log", "2015-04-23 16:45:16: LOCAL_SENT\n"], ["gateway", "simple_http"], ["created_at", "2015-04-23 13:45:16.361468"], ["updated_at", "2015-04-23 13:45:16.361468"]]
33611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33612
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
33613
+  (0.1ms) rollback transaction
33614
+  (0.0ms) begin transaction
33615
+ --------------------------------------------------------------------------------
33616
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_existing_dr
33617
+ --------------------------------------------------------------------------------
33618
+  (0.0ms) SAVEPOINT active_record_1
33619
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-23 13:45:16.364394"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.364774"], ["updated_at", "2015-04-23 13:45:16.364774"]]
33620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33621
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33622
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
33623
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
33624
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
33625
+  (0.0ms) SAVEPOINT active_record_1
33626
+ SQL (0.1ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-23 13:45:16.368972"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.369357"], ["id", 1]]
33627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33628
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
33629
+ Rendered text template (0.0ms)
33630
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
33631
+ 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]]
33632
+  (0.1ms) rollback transaction
33633
+  (0.0ms) begin transaction
33634
+ --------------------------------------------------------------------------------------------------------
33635
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_forbidden_admin_access_(default_access_mode)
33636
+ --------------------------------------------------------------------------------------------------------
33637
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
33638
+ Rendered text template (0.0ms)
33639
+ Filter chain halted as :admin_access_only rendered or redirected
33640
+ Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
33641
+  (0.0ms) rollback transaction
33642
+  (0.0ms) begin transaction
33643
+ ----------------------------------------------------------------------------------
33644
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_any_parser
33645
+ ----------------------------------------------------------------------------------
33646
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33647
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
33648
+ Rendered text template (0.0ms)
33649
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
33650
+  (0.0ms) rollback transaction
33651
+  (0.0ms) begin transaction
33652
+ --------------------------------------------------------------------------
33653
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_without_dr
33654
+ --------------------------------------------------------------------------
33655
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33656
+ Parameters: {"DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
33657
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
33658
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "wrongid"]]
33659
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
33660
+ Rendered text template (0.0ms)
33661
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
33662
+  (0.0ms) rollback transaction
33663
+  (0.0ms) begin transaction
33664
+ --------------------------------------------------------------------------------
33665
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_always_enabled_admin
33666
+ --------------------------------------------------------------------------------
33667
+  (0.0ms) SAVEPOINT active_record_1
33668
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_9"], ["created_at", "2015-04-23 13:45:16.377569"], ["updated_at", "2015-04-23 13:45:16.377569"]]
33669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33670
+  (0.0ms) SAVEPOINT active_record_1
33671
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_4"], ["created_at", "2015-04-23 13:45:16.378915"], ["updated_at", "2015-04-23 13:45:16.378915"]]
33672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33673
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
33674
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
33675
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."gateway"
33676
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
33677
+  (0.2ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."status"
33678
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672')
33679
+  (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 '2015-04-16 13:45:16.384544' AND '2015-04-23 13:35:16.384672') GROUP BY "action_smser_delivery_reports"."sms_type"
33680
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (8.4ms)
33681
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.6ms)
33682
+  (0.1ms) rollback transaction
33683
+  (0.0ms) begin transaction
33684
+ -----------------------------------------------------------------------------------------------------
33685
+ ActionSmser::DeliveryReportsControllerTest: test_index_with_admin_access_lambda_with_right_login_info
33686
+ -----------------------------------------------------------------------------------------------------
33687
+  (0.0ms) SAVEPOINT active_record_1
33688
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_8"], ["created_at", "2015-04-23 13:45:16.393678"], ["updated_at", "2015-04-23 13:45:16.393678"]]
33689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33690
+  (0.0ms) SAVEPOINT active_record_1
33691
+ SQL (0.2ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_2"], ["created_at", "2015-04-23 13:45:16.395023"], ["updated_at", "2015-04-23 13:45:16.395023"]]
33692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33693
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
33694
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
33695
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."gateway"
33696
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
33697
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."status"
33698
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637')
33699
+  (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 '2015-04-16 13:45:16.397560' AND '2015-04-23 13:35:16.397637') GROUP BY "action_smser_delivery_reports"."sms_type"
33700
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/index.html.erb within layouts/action_smser/delivery_reports (4.7ms)
33701
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.5ms)
33702
+  (0.1ms) rollback transaction
33703
+  (0.0ms) begin transaction
33704
+ -------------------------------------------------------------------------------
33705
+ ActionSmser::DeliveryReportsControllerTest: test_list_with_always_enabled_admin
33706
+ -------------------------------------------------------------------------------
33707
+  (0.0ms) SAVEPOINT active_record_1
33708
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_0"], ["created_at", "2015-04-23 13:45:16.403691"], ["updated_at", "2015-04-23 13:45:16.403691"]]
33709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33710
+  (0.0ms) SAVEPOINT active_record_1
33711
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "created_at", "updated_at") VALUES (?, ?, ?) [["msg_id", "idtest_4"], ["created_at", "2015-04-23 13:45:16.404718"], ["updated_at", "2015-04-23 13:45:16.404718"]]
33712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33713
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
33714
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
33715
+ Rendered /home/ohu/koodi/own_gems_programs/action_smser/app/views/action_smser/delivery_reports/list.html.erb within layouts/action_smser/delivery_reports (2.0ms)
33716
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
33717
+  (0.1ms) rollback transaction
33718
+  (0.0ms) begin transaction
33719
+ -------------------------------------------------------------------------------------
33720
+ ActionSmser::DeliveryReportsControllerTest: test_gateway_commit_with_multiple_records
33721
+ -------------------------------------------------------------------------------------
33722
+  (0.0ms) SAVEPOINT active_record_1
33723
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "102010314204056202"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-23 13:45:16.411035"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.411390"], ["updated_at", "2015-04-23 13:45:16.411390"]]
33724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33725
+  (0.0ms) SAVEPOINT active_record_1
33726
+ SQL (0.1ms) INSERT INTO "action_smser_delivery_reports" ("msg_id", "status", "status_updated_at", "log", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["msg_id", "99999999999999999"], ["status", "ORIGINAL_STATUS"], ["status_updated_at", "2015-04-23 13:45:16.412312"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n"], ["created_at", "2015-04-23 13:45:16.412612"], ["updated_at", "2015-04-23 13:45:16.412612"]]
33727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33728
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
33729
+ Parameters: {"DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
33730
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
33731
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "102010314204056202"]]
33732
+  (0.0ms) SAVEPOINT active_record_1
33733
+ SQL (0.0ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-23 13:45:16.415208"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.415596"], ["id", 1]]
33734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33735
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
33736
+ ActionSmser::DeliveryReport Load (0.0ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = ? ORDER BY "action_smser_delivery_reports"."id" ASC LIMIT 1 [["msg_id", "99999999999999999"]]
33737
+  (0.0ms) SAVEPOINT active_record_1
33738
+ SQL (0.0ms) UPDATE "action_smser_delivery_reports" SET "status" = ?, "status_updated_at" = ?, "log" = ?, "updated_at" = ? WHERE "action_smser_delivery_reports"."id" = ? [["status", "DELIVERED"], ["status_updated_at", "2015-04-23 13:45:16.416827"], ["log", "2015-04-23 16:45:16: ORIGINAL_STATUS\n2015-04-23 16:45:16: DELIVERED\n"], ["updated_at", "2015-04-23 13:45:16.417139"], ["id", 2]]
33739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33740
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
33741
+ Rendered text template (0.0ms)
33742
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
33743
+ 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]]
33744
+ 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]]
33745
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_smser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olli Huotari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.1'
26
+ version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '4.1'
61
+ version: '3.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '4.1'
68
+ version: '3.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: delayed_job
71
71
  requirement: !ruby/object:Gem::Requirement