action_smser 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,20 +6,27 @@ time_span = case params['time_span'].to_s.downcase
|
|
6
6
|
when 'previous week'
|
7
7
|
2.weeks.ago..1.week.ago
|
8
8
|
when 'last month'
|
9
|
-
1.month.ago..
|
9
|
+
1.month.ago..10.minutes.ago
|
10
|
+
when 'last 24 hours'
|
11
|
+
1.day.ago..10.minutes.ago
|
12
|
+
when 'previous 24 hours'
|
13
|
+
2.days.ago..1.day.ago
|
10
14
|
else
|
11
|
-
1.week.ago..
|
15
|
+
1.week.ago..10.minutes.ago
|
12
16
|
end
|
13
17
|
%>
|
14
18
|
|
15
19
|
|
16
20
|
<h1>Delivery Reports Summary for <%= params['time_span'] %></h1>
|
17
21
|
|
18
|
-
|
22
|
+
<p>
|
19
23
|
Show summary:
|
24
|
+
<%= link_to 'Last 24 hours', delivery_reports_path(:time_span => 'Last 24 Hours') %>,
|
25
|
+
<%= link_to '24 hours before that', delivery_reports_path(:time_span => 'Previous 24 Hours') %>,
|
20
26
|
<%= link_to 'Last week', delivery_reports_path(:time_span => 'Last Week') %>,
|
21
27
|
<%= link_to 'Week before that', delivery_reports_path(:time_span => 'Previous Week') %> or
|
22
28
|
<%= link_to 'Last month', delivery_reports_path(:time_span => 'Last Month') %>.
|
29
|
+
</p>
|
23
30
|
|
24
31
|
<h2>Delivered Within (hour:min:sec)</h2>
|
25
32
|
|
@@ -90,9 +97,9 @@ Show summary:
|
|
90
97
|
<tr>
|
91
98
|
<td><strong><%= key %></strong></td>
|
92
99
|
<td><%= val %></td>
|
93
|
-
<td><strong><%= number_to_percentage(100 * val / total, :precision => 2) %></strong></td>
|
100
|
+
<td><strong><%= number_to_percentage(100.0 * val / total, :precision => 2) %></strong></td>
|
94
101
|
<td><%= sms_count = ActionSmser::DeliveryReport.where(:created_at => time_span).where(:sms_type => key).where(:status => 'delivered').count %></td>
|
95
|
-
<td><strong><%= number_to_percentage(100 * sms_count / val, :precision => 2) %></strong></td>
|
102
|
+
<td><strong><%= number_to_percentage(100.0 * sms_count / val, :precision => 2) %></strong></td>
|
96
103
|
</tr>
|
97
104
|
<% end %>
|
98
105
|
</table>
|
@@ -49,7 +49,7 @@ Back to <%= link_to 'Main application', '/' %>
|
|
49
49
|
Stats by ActionSmser gem, see homepage: <%= link_to 'https://github.com/holli/action_smser', 'https://github.com/holli/action_smser' %>
|
50
50
|
</p>
|
51
51
|
|
52
|
-
<p style="margin-top:
|
52
|
+
<p style="margin-top: 600px"></p>
|
53
53
|
|
54
54
|
|
55
55
|
</body>
|
data/lib/action_smser/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -18244,3 +18244,154 @@ Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for
|
|
18244
18244
|
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18245
18245
|
Parameters: {"gateway"=>"example_gateway"}
|
18246
18246
|
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
18247
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
18248
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
18249
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
18250
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
18251
|
+
[1m[36m (0.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
18252
|
+
Migrating to CreateActionSmserDeliveryReports (20120102215215)
|
18253
|
+
[1m[35m (0.1ms)[0m 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), "created_at" datetime, "updated_at" datetime)
|
18254
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("action_smser_delivery_reports")[0m
|
18255
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
|
18256
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')[0m
|
18257
|
+
ActionSmser: Sending sms (Sms ActionSmser::BaseTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123", "+358123555123"], Body: "Body with ääkköset end", Valid: true)
|
18258
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
18259
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
18260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18261
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", "555666"], ["log", "2012-01-11 19:08:56: LOCAL_SENT\n"], ["msg_id", "msg_id_a"], ["sms_type", "ActionSmser::DeliveryReportTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", "123"], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18262
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18263
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
18264
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18265
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", "2012-01-11 19:08:56: LOCAL_TEST\n"], ["msg_id", nil], ["sms_type", nil], ["status", "LOCAL_TEST"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18266
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18268
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "updated_at" = '2012-01-11 17:08:56.885150', "status_updated_at" = '2012-01-11 17:08:56.884879', "log" = '2012-01-11 19:08:56: LOCAL_TEST
|
18269
|
+
2012-01-11 19:08:56: TEST_2
|
18270
|
+
', "status" = 'TEST_2' WHERE "action_smser_delivery_reports"."id" = 1[0m
|
18271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18273
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", "2012-01-11 19:08:56: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18274
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18275
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18276
|
+
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"}
|
18277
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
18278
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1
|
18279
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18280
|
+
[1m[35m (0.1ms)[0m UPDATE "action_smser_delivery_reports" SET "updated_at" = '2012-01-11 17:08:56.897560', "status_updated_at" = '2012-01-11 17:08:56.897043', "log" = '2012-01-11 19:08:56: ORIGINAL_STATUS
|
18281
|
+
2012-01-11 19:08:56: DELIVERED
|
18282
|
+
', "status" = 'DELIVERED' WHERE "action_smser_delivery_reports"."id" = 1
|
18283
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18284
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
18285
|
+
Rendered text template (0.0ms)
|
18286
|
+
Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.3ms)
|
18287
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 1]]
|
18288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18289
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", "2012-01-11 19:08:56: ORIGINAL_STATUS\n"], ["msg_id", "102010314204056202"], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18292
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", "2012-01-11 19:08:56: ORIGINAL_STATUS\n"], ["msg_id", "99999999999999999"], ["sms_type", nil], ["status", "ORIGINAL_STATUS"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18294
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18295
|
+
Parameters: {"use_route"=>"action_smser", "DeliveryReport"=>{"message"=>[{"id"=>"102010314204056202", "status"=>"DELIVERED"}, {"id"=>"99999999999999999", "status"=>"DELIVERED"}]}, "gateway"=>"test_gateway"}
|
18296
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
18297
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '102010314204056202' LIMIT 1[0m
|
18298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18299
|
+
[1m[36m (0.0ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "updated_at" = '2012-01-11 17:08:56.909954', "status_updated_at" = '2012-01-11 17:08:56.909601', "log" = '2012-01-11 19:08:56: ORIGINAL_STATUS
|
18300
|
+
2012-01-11 19:08:56: DELIVERED
|
18301
|
+
', "status" = 'DELIVERED' WHERE "action_smser_delivery_reports"."id" = 1[0m
|
18302
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18303
|
+
ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
|
18304
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = '99999999999999999' LIMIT 1[0m
|
18305
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18306
|
+
[1m[36m (0.0ms)[0m [1mUPDATE "action_smser_delivery_reports" SET "updated_at" = '2012-01-11 17:08:56.911485', "status_updated_at" = '2012-01-11 17:08:56.911206', "log" = '2012-01-11 19:08:56: ORIGINAL_STATUS
|
18307
|
+
2012-01-11 19:08:56: DELIVERED
|
18308
|
+
', "status" = 'DELIVERED' WHERE "action_smser_delivery_reports"."id" = 2[0m
|
18309
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18310
|
+
ActionSmser: Gateway_commit updated item with id: 99999999999999999, params: {"msg_id"=>"99999999999999999", "status"=>"DELIVERED"}
|
18311
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
18312
|
+
[1m[36mActionSmser::DeliveryReport Load (0.0ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
18313
|
+
[1m[35mActionSmser::DeliveryReport Load (0.0ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."id" = ? LIMIT 1 [["id", 2]]
|
18314
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18315
|
+
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"}
|
18316
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
18317
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18318
|
+
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"}
|
18319
|
+
ActionSmser: Gateway_commit found parser for gateway: test_gateway
|
18320
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."msg_id" = 'wrongid' LIMIT 1[0m
|
18321
|
+
ActionSmser: Gateway_commit not found item with id: wrongid, params: {"msg_id"=>"wrongid", "status"=>"DELIVERED"}
|
18322
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
18323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18324
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", nil], ["msg_id", "idtest_7"], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18327
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", nil], ["msg_id", "idtest_4"], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18329
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
18330
|
+
Parameters: {"use_route"=>"action_smser"}
|
18331
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710')
|
18332
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."status" = 'delivered' AND ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710')[0m
|
18333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710')
|
18334
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710') GROUP BY status[0m
|
18335
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710')
|
18336
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) AS count_all, sms_type AS sms_type FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710') GROUP BY sms_type[0m
|
18337
|
+
[1m[35mActionSmser::DeliveryReport Load (0.1ms)[0m SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
|
18338
|
+
Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.5ms)
|
18339
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18340
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", nil], ["msg_id", "idtest_3"], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18341
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18342
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18343
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", nil], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", nil], ["log", nil], ["msg_id", "idtest_3"], ["sms_type", nil], ["status", nil], ["status_updated_at", nil], ["to", nil], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18344
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18345
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
18346
|
+
Parameters: {"use_route"=>"action_smser"}
|
18347
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304')[0m
|
18348
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE "action_smser_delivery_reports"."status" = 'delivered' AND ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304')
|
18349
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304')[0m
|
18350
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, status AS status FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304') GROUP BY status
|
18351
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" WHERE ("action_smser_delivery_reports"."created_at" BETWEEN '2011-12-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304')[0m
|
18352
|
+
[1m[35m (0.0ms)[0m 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-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304') GROUP BY sms_type
|
18353
|
+
[1m[36mActionSmser::DeliveryReport Load (0.1ms)[0m [1mSELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0[0m
|
18354
|
+
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)
|
18355
|
+
Processing by ActionSmser::DeliveryReportsController#index as HTML
|
18356
|
+
Parameters: {"use_route"=>"action_smser"}
|
18357
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
18358
|
+
ActionSmser: Sending sms (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18359
|
+
ActionSmser: Delivering sms by https
|
18360
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x1fbc650>
|
18361
|
+
ActionSmser: id_1234
|
18362
|
+
id_6666
|
18363
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
18364
|
+
ActionSmser: Sending sms (Sms ActionSmser::SimpleHttpTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18365
|
+
ActionSmser: Delivering sms by https
|
18366
|
+
ActionSmser: SimpleHttp delivery ||| /api/sendsms/plain?user=user&password=pass&sender=555666&SMSText=Body+with+%E4%E4kk%F6set+end&GSM=555123555,123555123 ||| #<Mock:0x1fab1e8>
|
18367
|
+
ActionSmser: id_1234
|
18368
|
+
id_6666
|
18369
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18370
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", "555666"], ["log", "2012-01-11 19:08:56: LOCAL_SENT\n"], ["msg_id", "id_1234"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", "555123555"], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18371
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18373
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", "555666"], ["log", "2012-01-11 19:08:56: LOCAL_SENT\n"], ["msg_id", "id_6666"], ["sms_type", "ActionSmser::SimpleHttpTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", "123555123"], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18375
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" [0m
|
18376
|
+
ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18377
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
18378
|
+
ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18379
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
18380
|
+
ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18381
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
18382
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "action_smser_delivery_reports"
|
18383
|
+
ActionSmser: Sending sms (Sms ActionSmser::TestArrayTest::MockSms.basic_sms - From: "555666", To: ["555123555", "123555123"], Body: "Body with ääkköset end", Valid: true)
|
18384
|
+
ActionSmser: ActionSmser::DeliveryMethods::TestArray.deliveries added message, no real delivery.
|
18385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
18386
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["body", "Body with ääkköset end"], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", "555666"], ["log", "2012-01-11 19:08:56: LOCAL_SENT\n"], ["msg_id", "test_array_id_55777500"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", "555123555"], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18388
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18389
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "action_smser_delivery_reports" ("body", "created_at", "from", "log", "msg_id", "sms_type", "status", "status_updated_at", "to", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["body", "Body with ääkköset end"], ["created_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["from", "555666"], ["log", "2012-01-11 19:08:56: LOCAL_SENT\n"], ["msg_id", "test_array_id_92112999"], ["sms_type", "ActionSmser::TestArrayTest::MockSms.basic_sms"], ["status", "LOCAL_SENT"], ["status_updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00], ["to", "123555123"], ["updated_at", Wed, 11 Jan 2012 17:08:56 UTC +00:00]]
|
18390
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
18391
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "action_smser_delivery_reports" [0m
|
18392
|
+
|
18393
|
+
|
18394
|
+
Started GET "/action_smser/delivery_reports/gateway_commit/example_gateway" for 127.0.0.1 at Wed Jan 11 19:08:56 +0200 2012
|
18395
|
+
Processing by ActionSmser::DeliveryReportsController#gateway_commit as HTML
|
18396
|
+
Parameters: {"gateway"=>"example_gateway"}
|
18397
|
+
Completed 200 OK in 0ms (Views: 0.2ms | 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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Olli Huotari
|