action_smser 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,6 @@ module ActionSmser
2
2
  class DeliveryReport < ActiveRecord::Base
3
3
 
4
4
  has_many :re_deliveries, :class_name => self.to_s, :foreign_key => :re_delivery_of_delivery_report_id
5
- puts self
6
5
  belongs_to :re_delivery_of, :class_name => self.to_s, :foreign_key => :re_delivery_of_delivery_report_id
7
6
 
8
7
  def self.build_from_sms(sms, to, msg_id)
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -35896,4 +35896,205 @@ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, n
35896
35896
  Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at Fri Jan 20 23:21:55 +0200 2012
35897
35897
  Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
35898
35898
  Parameters: {"gateway"=>"example_gateway"}
35899
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
35900
+  (0.0ms) select sqlite_version(*)
35901
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
35902
+  (0.0ms) PRAGMA index_list("schema_migrations")
35903
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35904
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
35905
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
35906
+  (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)
35907
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
35908
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
35909
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
35910
+ ActionSmser: Sending sms (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
35911
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
35912
+ ActionSmser: Sending sms (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
35913
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
35914
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
35915
+  (0.1ms) SAVEPOINT active_record_1
35916
+ SQL (7.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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35918
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
35919
+  (0.0ms) SAVEPOINT active_record_1
35920
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35922
+  (0.0ms) SAVEPOINT active_record_1
35923
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "updated_at" = '2012-01-20 21:27:55.048534', "gateway" = 'some_delivery' WHERE "action_smser_delivery_reports"."id" = 1
35924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35925
+ 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]]
35926
+ ActionSmser: Re_delivering: #<ActionSmser::DeliveryReport id: 1, msg_id: "msg_id_a", status: "LOCAL_SENT", status_updated_at: "2012-01-20 21:27:55", sms_type: "ActionSmser::DeliveryReportTest::MockSms.basic_sms", log: "2012-01-20 23:27: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: "2012-01-20 21:27:55", updated_at: "2012-01-20 21:27:55">
35927
+  (0.0ms) SAVEPOINT active_record_1
35928
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "re_delivered" = 't', "updated_at" = '2012-01-20 21:27:55.052625' WHERE "action_smser_delivery_reports"."id" = 1
35929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35930
+ ActionSmser: Sending sms (Sms ActionSmser::DeliveryReportTest::MockSms.basic_sms.re_delivery - From: "555666", To: "123", Body: "Body with ääkköset end", Valid: true)
35931
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
35932
+  (0.0ms) SAVEPOINT active_record_1
35933
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_8910755"], ["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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35935
+ 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]]
35936
+ 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
35937
+ 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
35938
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = 1 LIMIT 1
35939
+  (0.0ms) SAVEPOINT active_record_1
35940
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35942
+ 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]]
35943
+  (0.0ms) SAVEPOINT active_record_1
35944
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", nil], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35946
+  (0.0ms) SAVEPOINT active_record_1
35947
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status_updated_at" = '2012-01-20 21:27:55.074312', "updated_at" = '2012-01-20 21:27:55.074686', "status" = 'TEST_2', "log" = '2012-01-20 23:27:55: LOCAL_TEST
35948
+ 2012-01-20 23:27:55: TEST_2
35949
+ ' WHERE "action_smser_delivery_reports"."id" = 1
35950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35951
+  (0.0ms) SAVEPOINT active_record_1
35952
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", nil], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35954
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
35955
+ Parameters: {"use_route"=>"action_smser", "DeliveryReport"=>{"message"=>{"id"=>"102010314204056202", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
35956
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
35957
+ 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
35958
+  (0.0ms) SAVEPOINT active_record_1
35959
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status_updated_at" = '2012-01-20 21:27:55.086875', "updated_at" = '2012-01-20 21:27:55.087467', "status" = 'DELIVERED', "log" = '2012-01-20 23:27:55: ORIGINAL_STATUS
35960
+ 2012-01-20 23:27:55: DELIVERED
35961
+ ' WHERE "action_smser_delivery_reports"."id" = 1
35962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35963
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
35964
+ Rendered text template (0.0ms)
35965
+ Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.3ms)
35966
+ 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]]
35967
+  (0.0ms) SAVEPOINT active_record_1
35968
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", nil], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35970
+  (0.0ms) SAVEPOINT active_record_1
35971
+ SQL (0.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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", nil], ["gateway", nil], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", nil], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
35972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35973
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
35974
+ Parameters: {"use_route"=>"action_smser", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
35975
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
35976
+ 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
35977
+  (0.0ms) SAVEPOINT active_record_1
35978
+  (0.1ms) UPDATE "action_smser_delivery_reports" SET "status_updated_at" = '2012-01-20 21:27:55.104998', "updated_at" = '2012-01-20 21:27:55.105503', "status" = 'DELIVERED', "log" = '2012-01-20 23:27:55: ORIGINAL_STATUS
35979
+ 2012-01-20 23:27:55: DELIVERED
35980
+ ' WHERE "action_smser_delivery_reports"."id" = 1
35981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35982
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
35983
+ 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
35984
+  (0.0ms) SAVEPOINT active_record_1
35985
+  (0.0ms) UPDATE "action_smser_delivery_reports" SET "status_updated_at" = '2012-01-20 21:27:55.106863', "updated_at" = '2012-01-20 21:27:55.107250', "status" = 'DELIVERED', "log" = '2012-01-20 23:27:55: ORIGINAL_STATUS
35986
+ 2012-01-20 23:27:55: DELIVERED
35987
+ ' WHERE "action_smser_delivery_reports"."id" = 2
35988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35989
+ ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
35990
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.4ms)
35991
+ 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]]
35992
+ 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]]
35993
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
35994
+ Parameters: {"use_route"=>"action_smser", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"gateway_not_found"}
35995
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
35996
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
35997
+ Parameters: {"use_route"=>"action_smser", "DeliveryReport"=>{"message"=>{"id"=>"wrongid", "donedate"=>"2012/01/03 14:20:45", "sentdate"=>"2012/01/03 14:20:40", "status"=>"DELIVERED"}}, "gateway"=>"test_gateway"}
35998
+ ActionSmser: Gateway_commit found parser for gateway: test_gateway
35999
+ 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
36000
+ ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
36001
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
36002
+  (0.0ms) SAVEPOINT active_record_1
36003
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36005
+  (0.0ms) SAVEPOINT active_record_1
36006
+ SQL (0.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", Fri, 20 Jan 2012 21:27:55 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36008
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
36009
+ Parameters: {"use_route"=>"action_smser"}
36010
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060')
36011
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060') GROUP BY gateway
36012
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060')
36013
+  (0.1ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060') GROUP BY status
36014
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060')
36015
+  (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 '2011-12-20 21:27:55.128767' AND '2012-01-20 21:17:55.129060') GROUP BY sms_type
36016
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.5ms)
36017
+  (0.0ms) SAVEPOINT active_record_1
36018
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36020
+  (0.0ms) SAVEPOINT active_record_1
36021
+ SQL (0.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", Fri, 20 Jan 2012 21:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36023
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
36024
+ Parameters: {"use_route"=>"action_smser"}
36025
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032')
36026
+  (0.1ms) SELECT COUNT(*) AS count_all, gateway AS gateway FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032') GROUP BY gateway
36027
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032')
36028
+  (0.0ms) SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032') GROUP BY status
36029
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032')
36030
+  (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 '2011-12-20 21:27:55.142816' AND '2012-01-20 21:17:55.143032') GROUP BY sms_type
36031
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.4ms)
36032
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
36033
+ Parameters: {"use_route"=>"action_smser"}
36034
+ Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
36035
+  (0.0ms) SAVEPOINT active_record_1
36036
+ 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", nil], ["created_at", Fri, 20 Jan 2012 21:27:55 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36038
+  (0.0ms) SAVEPOINT active_record_1
36039
+ SQL (0.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", Fri, 20 Jan 2012 21:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36041
+ Processing by ActionSmser::DeliveryReportsController#list as HTML
36042
+ Parameters: {"use_route"=>"action_smser"}
36043
+ ActionSmser::DeliveryReport Load (0.2ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
36044
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.2ms)
36045
+ ActionSmser: Sending sms (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36046
+ ActionSmser: Delivering sms by https
36047
+ ActionSmser: SimpleHttp delivery ||| /sms/json?username=user&password=pass&ttl=60000&status-report-req=false&from=555666&to=555123555,123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x18fa448>
36048
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"}]}
36049
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
36050
+ ActionSmser: Sending sms (Sms ActionSmser::NexmoTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36051
+ ActionSmser: Delivering sms by https
36052
+ ActionSmser: SimpleHttp delivery ||| /sms/json?username=user&password=pass&ttl=60000&status-report-req=true&from=555666&to=555123555,123555123&text=Body+with+%C3%A4%C3%A4kk%C3%B6set+end ||| #<Mock:0x18e2758>
36053
+ ActionSmser: {"message-count":"1","messages":[{"message-price":"0.02500000","status":"0","message-id":"0778DE88","remaining-balance":"1.77500000"},{"error-text":"Message rejected by upstream path","message-price":"0.02500000","status":"6","message-id":"0778D302","remaining-balance":"1.87500000"}]}
36054
+  (0.0ms) SAVEPOINT active_record_1
36055
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "555123555"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36057
+  (0.0ms) SAVEPOINT active_record_1
36058
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "nexmo"], ["log", "2012-01-20 23:27:55: LOCAL_SENT\n2012-01-20 23:27:55: SENT_ERROR_6\nnexmo_error: Message rejected by upstream path"], ["msg_id", "0778D302"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::NexmoTest::MockSms.basic_sms"], ["status", "SENT_ERROR_6"], ["status_updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123555123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36060
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
36061
+ ActionSmser: Sending sms (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36062
+ ActionSmser: Delivering sms by https
36063
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x1893ef0>
36064
+ ActionSmser: id_1234
36065
+ id_6666
36066
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
36067
+ ActionSmser: Sending sms (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36068
+ ActionSmser: Delivering sms by https
36069
+ ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x1878560>
36070
+ ActionSmser: id_1234
36071
+ id_6666
36072
+  (0.0ms) SAVEPOINT active_record_1
36073
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "555123555"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36075
+  (0.0ms) SAVEPOINT active_record_1
36076
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "simple_http"], ["log", "2012-01-20 23:27: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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123555123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36078
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
36079
+ ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36080
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
36081
+ ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36082
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
36083
+ ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36084
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
36085
+  (0.1ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
36086
+ ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
36087
+ ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
36088
+  (0.0ms) SAVEPOINT active_record_1
36089
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_96070806"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "555123555"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36091
+  (0.0ms) SAVEPOINT active_record_1
36092
+ 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", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["from", "555666"], ["gateway", "test_array"], ["log", "2012-01-20 23:27:55: LOCAL_SENT\n"], ["msg_id", "test_array_id_83578017"], ["re_delivered", nil], ["re_delivery_of_delivery_report_id", nil], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00], ["to", "123555123"], ["updated_at", Fri, 20 Jan 2012 21:27:55 UTC +00:00]]
36093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36094
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
36095
+
36096
+
36097
+ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at Fri Jan 20 23:27:55 +0200 2012
36098
+ Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
36099
+ Parameters: {"gateway"=>"example_gateway"}
35899
36100
  Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_smser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olli Huotari