action_smser 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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..2.minutes.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..2.minutes.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: 400px"></p>
52
+ <p style="margin-top: 600px"></p>
53
53
 
54
54
 
55
55
  </body>
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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
+  (0.0ms) select sqlite_version(*)
18248
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
18249
+  (0.0ms) PRAGMA index_list("schema_migrations")
18250
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18251
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
18252
+ Migrating to CreateActionSmserDeliveryReports (20120102215215)
18253
+  (0.1ms) 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
+  (0.0ms) PRAGMA index_list("action_smser_delivery_reports")
18255
+  (0.1ms) CREATE INDEX "index_action_smser_delivery_reports_on_msg_id" ON "action_smser_delivery_reports" ("msg_id")
18256
+  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120102215215')
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
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
18260
+  (0.0ms) SAVEPOINT active_record_1
18261
+ SQL (0.6ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18263
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports"
18264
+  (0.0ms) SAVEPOINT active_record_1
18265
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18267
+  (0.0ms) SAVEPOINT active_record_1
18268
+  (0.1ms) UPDATE "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
18271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18272
+  (0.0ms) SAVEPOINT active_record_1
18273
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ 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
18279
+  (0.0ms) SAVEPOINT active_record_1
18280
+  (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ 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]]
18288
+  (0.0ms) SAVEPOINT active_record_1
18289
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18291
+  (0.0ms) SAVEPOINT active_record_1
18292
+ SQL (0.1ms) 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", "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
+  (0.0ms) 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
+ 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
18298
+  (0.0ms) SAVEPOINT active_record_1
18299
+  (0.0ms) UPDATE "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
18302
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18303
+ ActionSmser: Gateway_commit updated item with id: 102010314204056202, params: {"msg_id"=>"102010314204056202", "status"=>"DELIVERED"}
18304
+ 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
18305
+  (0.0ms) SAVEPOINT active_record_1
18306
+  (0.0ms) UPDATE "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
18309
+  (0.0ms) 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
+ 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]]
18313
+ 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]]
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
+ 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
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
+  (0.0ms) SAVEPOINT active_record_1
18324
+ SQL (0.1ms) 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_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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18326
+  (0.0ms) SAVEPOINT active_record_1
18327
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18329
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
18330
+ Parameters: {"use_route"=>"action_smser"}
18331
+  (0.1ms) 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
+  (0.1ms) 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.924518' AND '2012-01-11 16:58:56.924710')
18333
+  (0.1ms) 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
+  (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-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710') GROUP BY status
18335
+  (0.0ms) 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
+  (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-11 17:08:56.924518' AND '2012-01-11 16:58:56.924710') GROUP BY sms_type
18337
+ ActionSmser::DeliveryReport Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
18340
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18342
+  (0.0ms) SAVEPOINT active_record_1
18343
+ SQL (0.1ms) 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]]
18344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18345
+ Processing by ActionSmser::DeliveryReportsController#index as HTML
18346
+ Parameters: {"use_route"=>"action_smser"}
18347
+  (0.1ms) SELECT 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')
18348
+  (0.0ms) 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
+  (0.0ms) SELECT 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')
18350
+  (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-11 17:08:56.937132' AND '2012-01-11 16:58:56.937304') GROUP BY status
18351
+  (0.1ms) SELECT 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')
18352
+  (0.0ms) 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
+ ActionSmser::DeliveryReport Load (0.1ms) SELECT "action_smser_delivery_reports".* FROM "action_smser_delivery_reports" ORDER BY created_at DESC LIMIT 20 OFFSET 0
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
+  (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
18370
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18372
+  (0.0ms) SAVEPOINT active_record_1
18373
+ SQL (0.1ms) 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_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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18375
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
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
+  (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
18386
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18388
+  (0.0ms) SAVEPOINT active_record_1
18389
+ SQL (0.1ms) 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_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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18391
+  (0.0ms) SELECT COUNT(*) FROM "action_smser_delivery_reports" 
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Olli Huotari