mail_sleuth 0.1.0 → 0.1.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.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # MailSleuth
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/codegenome/MailSleuth.png)](http://travis-ci.org/codegenome/MailSleuth)
4
+
3
5
  This gem provides a model and an observer to log e-mail delivery.
4
6
 
5
7
  ## Installation
@@ -1,3 +1,4 @@
1
+ require 'mail/fields/common/common_address'
1
2
 
2
3
  class MessageLog < ActiveRecord::Base
3
4
 
@@ -1,3 +1,3 @@
1
1
  module MailSleuth
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -231,3 +231,32 @@ Migrating to CreateMessageLogs (20120320154306)
231
231
   (0.3ms) SELECT version FROM "schema_migrations"
232
232
   (22.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120320154306')
233
233
   (27.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20120319190548')
234
+  (0.1ms) select sqlite_version(*)
235
+  (29.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
236
+  (0.0ms) PRAGMA index_list("schema_migrations")
237
+  (25.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
238
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
239
+ Migrating to CreateUsers (20120319190548)
240
+  (0.2ms) begin transaction
241
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255)) 
242
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120319190548')
243
+  (29.1ms) commit transaction
244
+ Migrating to CreateMessageLogs (20120320154306)
245
+  (0.2ms) begin transaction
246
+  (0.9ms) CREATE TABLE "message_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "to" text, "errors" text, "perform_deliveries" boolean, "bounced" boolean, "retryable" boolean, "message_id" varchar(255), "final_recipient" varchar(255), "action" varchar(255), "error_status" varchar(255), "diagnostic_code" varchar(255), "from" varchar(255), "delivery_method" varchar(255), "delivery_handler" varchar(255), "subject" varchar(255), "content_type" varchar(255), "charset" varchar(255), "created_at" datetime) 
247
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120320154306')
248
+  (18.7ms) commit transaction
249
+  (0.1ms) select sqlite_version(*)
250
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
251
+  (0.0ms) PRAGMA index_list("message_logs")
252
+  (0.0ms) PRAGMA index_list("users")
253
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
254
+  (0.1ms) select sqlite_version(*)
255
+  (23.8ms) CREATE TABLE "message_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "to" text, "errors" text, "perform_deliveries" boolean, "bounced" boolean, "retryable" boolean, "message_id" varchar(255), "final_recipient" varchar(255), "action" varchar(255), "error_status" varchar(255), "diagnostic_code" varchar(255), "from" varchar(255), "delivery_method" varchar(255), "delivery_handler" varchar(255), "subject" varchar(255), "content_type" varchar(255), "charset" varchar(255), "created_at" datetime) 
256
+  (18.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255))
257
+  (20.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
258
+  (0.1ms) PRAGMA index_list("schema_migrations")
259
+  (16.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
260
+  (0.1ms) SELECT version FROM "schema_migrations"
261
+  (28.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120320154306')
262
+  (27.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20120319190548')
@@ -930,3 +930,68 @@ TypeError: can't dump anonymous class Class: INSERT INTO "message_logs" ("charse
930
930
   (0.1ms) RELEASE SAVEPOINT active_record_1
931
931
  MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
932
932
   (0.1ms) rollback transaction
933
+  (0.1ms) begin transaction
934
+ Fixture Delete (0.2ms) DELETE FROM "users"
935
+ Fixture Insert (0.4ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
936
+  (28.6ms) commit transaction
937
+  (0.1ms) begin transaction
938
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
939
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
940
+ Rendered notifier/welcome.html.erb (1.3ms)
941
+  (0.1ms) SAVEPOINT active_record_1
942
+ SQL (2.3ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Tue, 20 Mar 2012 18:44:58 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
944
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
945
+  (0.1ms) rollback transaction
946
+  (0.1ms) begin transaction
947
+ Fixture Delete (0.2ms) DELETE FROM "users"
948
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
949
+  (36.7ms) commit transaction
950
+  (0.1ms) begin transaction
951
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
952
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
953
+ Rendered notifier/welcome.html.erb (0.7ms)
954
+  (0.1ms) SAVEPOINT active_record_1
955
+ SQL (0.7ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Tue, 20 Mar 2012 18:48:21 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
957
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
958
+  (0.1ms) rollback transaction
959
+  (0.1ms) begin transaction
960
+ Fixture Delete (0.2ms) DELETE FROM "users"
961
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
962
+  (26.6ms) commit transaction
963
+  (0.0ms) begin transaction
964
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
966
+ Rendered notifier/welcome.html.erb (0.7ms)
967
+  (0.1ms) SAVEPOINT active_record_1
968
+ SQL (0.6ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Tue, 20 Mar 2012 18:48:26 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
970
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
971
+  (0.1ms) rollback transaction
972
+  (0.1ms) begin transaction
973
+ Fixture Delete (0.2ms) DELETE FROM "users"
974
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
975
+  (35.8ms) commit transaction
976
+  (0.1ms) begin transaction
977
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
979
+ Rendered notifier/welcome.html.erb (0.7ms)
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ SQL (0.5ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Tue, 20 Mar 2012 18:48:46 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
983
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
984
+  (0.1ms) rollback transaction
985
+  (0.1ms) begin transaction
986
+ Fixture Delete (0.1ms) DELETE FROM "users"
987
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id", "email") VALUES ('Joe Foo', 633107804, 'joe@example.com')
988
+  (24.3ms) commit transaction
989
+  (0.1ms) begin transaction
990
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
991
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 633107804]]
992
+ Rendered notifier/welcome.html.erb (0.7ms)
993
+  (0.1ms) SAVEPOINT active_record_1
994
+ SQL (0.6ms) INSERT INTO "message_logs" ("action", "bounced", "charset", "content_type", "created_at", "delivery_handler", "delivery_method", "diagnostic_code", "error_status", "errors", "final_recipient", "from", "message_id", "perform_deliveries", "retryable", "subject", "to") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", nil], ["bounced", nil], ["charset", "UTF-8"], ["content_type", "text/html; charset=UTF-8"], ["created_at", Tue, 20 Mar 2012 19:40:49 UTC +00:00], ["delivery_handler", "--- Notifier\n"], ["delivery_method", "--- !ruby/object:Mail::TestMailer \nsettings: {}\n\n"], ["diagnostic_code", nil], ["error_status", nil], ["errors", "--- []\n\n"], ["final_recipient", nil], ["from", "--- !seq:Mail::AddressContainer \n- test@example.com\n"], ["message_id", nil], ["perform_deliveries", true], ["retryable", nil], ["subject", "Welcome Joe Foo"], ["to", "--- !seq:Mail::AddressContainer \n- joe@example.com\n"]]
995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
996
+ MessageLog Load (0.1ms) SELECT "message_logs".* FROM "message_logs" ORDER BY "message_logs"."id" DESC LIMIT 1
997
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_sleuth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nicolas Buduroi