delayed_mailhopper 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -66,6 +66,14 @@ script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes'
66
66
 
67
67
  see the README: https://github.com/collectiveidea/delayed_job_mongoid
68
68
 
69
+ ## Troubleshooting
70
+
71
+ If you've cleared your delayed job queue and need to regenerate jobs for all unsent emails, try the following from your Rails console (`rails c`):
72
+
73
+ ```
74
+ DelayedMailhopper::Email.unsent.each { |email| email.enqueue }
75
+ ```
76
+
69
77
  ## References
70
78
 
71
79
  Please see the README for Mailhopper: https://github.com/cerebris/mailhopper
@@ -1,3 +1,3 @@
1
1
  module DelayedMailhopper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -3095,3 +3095,273 @@ Papaya
3095
3095
  [DelayedMailhopper::SendJob] success for email_id 1, delayed_job_id 1
3096
3096
  DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" WHERE "emails"."id" = ? LIMIT 1 [["id", 1]]
3097
3097
   (0.6ms) rollback transaction
3098
+  (0.4ms) begin transaction
3099
+  (0.1ms) rollback transaction
3100
+  (0.0ms) begin transaction
3101
+ Rendered sample_mailer/hello.text.erb (1.9ms)
3102
+  (0.1ms) SAVEPOINT active_record_1
3103
+ SQL (37.7ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:18:06 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa90efe776e8_135563fe3fc834cd8305dd@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3104
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3106
+
3107
+ Sent mail to to@example.com (76ms)
3108
+ Date: Tue, 08 May 2012 08:18:06 -0400
3109
+ From: from@example.com
3110
+ Reply-To: reply_to@example.com
3111
+ To: to@example.com
3112
+ Cc: cc@example.com
3113
+ Message-ID: <4fa90efe776e8_135563fe3fc834cd8305dd@dgmpro.local.mail>
3114
+ Subject: Hiya!
3115
+ Mime-Version: 1.0
3116
+ Content-Type: text/plain;
3117
+ charset=UTF-8
3118
+ Content-Transfer-Encoding: 7bit
3119
+
3120
+ Papaya
3121
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3122
+  (0.5ms) rollback transaction
3123
+  (0.0ms) begin transaction
3124
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3125
+  (0.1ms) SAVEPOINT active_record_1
3126
+ SQL (0.5ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:18:06 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa90efe8b74b_135563fe3fc834cd830630@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3127
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3129
+
3130
+ Sent mail to to@example.com (13ms)
3131
+ Date: Tue, 08 May 2012 08:18:06 -0400
3132
+ From: from@example.com
3133
+ Reply-To: reply_to@example.com
3134
+ To: to@example.com
3135
+ Cc: cc@example.com
3136
+ Message-ID: <4fa90efe8b74b_135563fe3fc834cd830630@dgmpro.local.mail>
3137
+ Subject: Hiya!
3138
+ Mime-Version: 1.0
3139
+ Content-Type: text/plain;
3140
+ charset=UTF-8
3141
+ Content-Transfer-Encoding: 7bit
3142
+
3143
+ Papaya
3144
+  (0.1ms) SELECT COUNT(*) FROM "emails" 
3145
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
3146
+  (0.5ms) rollback transaction
3147
+  (0.0ms) begin transaction
3148
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3149
+  (0.1ms) SAVEPOINT active_record_1
3150
+ SQL (0.5ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:18:06 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa90efe983af_135563fe3fc834cd8307c1@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3151
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3153
+
3154
+ Sent mail to to@example.com (12ms)
3155
+ Date: Tue, 08 May 2012 08:18:06 -0400
3156
+ From: from@example.com
3157
+ Reply-To: reply_to@example.com
3158
+ To: to@example.com
3159
+ Cc: cc@example.com
3160
+ Message-ID: <4fa90efe983af_135563fe3fc834cd8307c1@dgmpro.local.mail>
3161
+ Subject: Hiya!
3162
+ Mime-Version: 1.0
3163
+ Content-Type: text/plain;
3164
+ charset=UTF-8
3165
+ Content-Transfer-Encoding: 7bit
3166
+
3167
+ Papaya
3168
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3169
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
3170
+ DelayedMailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" WHERE "emails"."id" = ? ORDER BY created_at DESC LIMIT 1 [["id", 1]]
3171
+
3172
+ Sent mail to to@example.com (6ms)
3173
+ Date: Tue, 08 May 2012 08:18:06 -0400
3174
+ From: from@example.com
3175
+ Reply-To: reply_to@example.com
3176
+ To: to@example.com
3177
+ Cc: cc@example.com
3178
+ Message-ID: <4fa90efe983af_135563fe3fc834cd8307c1@dgmpro.local.mail>
3179
+ Subject: Hiya!
3180
+ Mime-Version: 1.0
3181
+ Content-Type: text/plain;
3182
+ charset=UTF-8
3183
+ Content-Transfer-Encoding: 7bit
3184
+
3185
+ Papaya
3186
+  (0.1ms) SAVEPOINT active_record_1
3187
+  (0.4ms) UPDATE "emails" SET "sent_at" = '2012-05-08 12:18:06.654479', "updated_at" = '2012-05-08 12:18:06.655097' WHERE "emails"."id" = 1
3188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3189
+ [DelayedMailhopper::SendJob] success for email_id 1, delayed_job_id 1
3190
+ DelayedMailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" WHERE "emails"."id" = ? LIMIT 1 [["id", 1]]
3191
+  (0.6ms) rollback transaction
3192
+  (0.1ms) begin transaction
3193
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3194
+  (0.0ms) SAVEPOINT active_record_1
3195
+ SQL (0.5ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:18:06 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa90efea3268_135563fe3fc834cd830863@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3196
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:18:06 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:18:06 UTC +00:00]]
3197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3198
+
3199
+ Sent mail to to@example.com (12ms)
3200
+ Date: Tue, 08 May 2012 08:18:06 -0400
3201
+ From: from@example.com
3202
+ Reply-To: reply_to@example.com
3203
+ To: to@example.com
3204
+ Cc: cc@example.com
3205
+ Message-ID: <4fa90efea3268_135563fe3fc834cd830863@dgmpro.local.mail>
3206
+ Subject: Hiya!
3207
+ Mime-Version: 1.0
3208
+ Content-Type: text/plain;
3209
+ charset=UTF-8
3210
+ Content-Transfer-Encoding: 7bit
3211
+
3212
+ Papaya
3213
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3214
+
3215
+ Sent mail to to@example.com (5ms)
3216
+ Date: Tue, 08 May 2012 08:18:06 -0400
3217
+ From: from@example.com
3218
+ Reply-To: reply_to@example.com
3219
+ To: to@example.com
3220
+ Cc: cc@example.com
3221
+ Message-ID: <4fa90efea3268_135563fe3fc834cd830863@dgmpro.local.mail>
3222
+ Subject: Hiya!
3223
+ Mime-Version: 1.0
3224
+ Content-Type: text/plain;
3225
+ charset=UTF-8
3226
+ Content-Transfer-Encoding: 7bit
3227
+
3228
+ Papaya
3229
+  (0.1ms) SAVEPOINT active_record_1
3230
+  (0.4ms) UPDATE "emails" SET "sent_at" = '2012-05-08 12:18:06.693970', "updated_at" = '2012-05-08 12:18:06.694481' WHERE "emails"."id" = 1
3231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3232
+  (0.5ms) rollback transaction
3233
+  (0.4ms) begin transaction
3234
+  (0.1ms) rollback transaction
3235
+  (0.0ms) begin transaction
3236
+ Rendered sample_mailer/hello.text.erb (1.9ms)
3237
+  (0.1ms) SAVEPOINT active_record_1
3238
+ SQL (4.1ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:29:50 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa911beb4307_135f13fc4adc34cd464820@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3239
+ SQL (0.4ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3241
+
3242
+ Sent mail to to@example.com (40ms)
3243
+ Date: Tue, 08 May 2012 08:29:50 -0400
3244
+ From: from@example.com
3245
+ Reply-To: reply_to@example.com
3246
+ To: to@example.com
3247
+ Cc: cc@example.com
3248
+ Message-ID: <4fa911beb4307_135f13fc4adc34cd464820@dgmpro.local.mail>
3249
+ Subject: Hiya!
3250
+ Mime-Version: 1.0
3251
+ Content-Type: text/plain;
3252
+ charset=UTF-8
3253
+ Content-Transfer-Encoding: 7bit
3254
+
3255
+ Papaya
3256
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3257
+  (0.5ms) rollback transaction
3258
+  (0.0ms) begin transaction
3259
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3260
+  (0.1ms) SAVEPOINT active_record_1
3261
+ SQL (0.4ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:29:50 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa911bebfbfd_135f13fc4adc34cd464998@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3262
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3264
+
3265
+ Sent mail to to@example.com (12ms)
3266
+ Date: Tue, 08 May 2012 08:29:50 -0400
3267
+ From: from@example.com
3268
+ Reply-To: reply_to@example.com
3269
+ To: to@example.com
3270
+ Cc: cc@example.com
3271
+ Message-ID: <4fa911bebfbfd_135f13fc4adc34cd464998@dgmpro.local.mail>
3272
+ Subject: Hiya!
3273
+ Mime-Version: 1.0
3274
+ Content-Type: text/plain;
3275
+ charset=UTF-8
3276
+ Content-Transfer-Encoding: 7bit
3277
+
3278
+ Papaya
3279
+  (0.1ms) SELECT COUNT(*) FROM "emails" 
3280
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
3281
+  (0.5ms) rollback transaction
3282
+  (0.0ms) begin transaction
3283
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3284
+  (0.1ms) SAVEPOINT active_record_1
3285
+ SQL (0.5ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:29:50 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa911becc52f_135f13fc4adc34cd465084@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3286
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3288
+
3289
+ Sent mail to to@example.com (12ms)
3290
+ Date: Tue, 08 May 2012 08:29:50 -0400
3291
+ From: from@example.com
3292
+ Reply-To: reply_to@example.com
3293
+ To: to@example.com
3294
+ Cc: cc@example.com
3295
+ Message-ID: <4fa911becc52f_135f13fc4adc34cd465084@dgmpro.local.mail>
3296
+ Subject: Hiya!
3297
+ Mime-Version: 1.0
3298
+ Content-Type: text/plain;
3299
+ charset=UTF-8
3300
+ Content-Transfer-Encoding: 7bit
3301
+
3302
+ Papaya
3303
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3304
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT "delayed_jobs".* FROM "delayed_jobs" LIMIT 1
3305
+ DelayedMailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" WHERE "emails"."id" = ? ORDER BY created_at DESC LIMIT 1 [["id", 1]]
3306
+
3307
+ Sent mail to to@example.com (6ms)
3308
+ Date: Tue, 08 May 2012 08:29:50 -0400
3309
+ From: from@example.com
3310
+ Reply-To: reply_to@example.com
3311
+ To: to@example.com
3312
+ Cc: cc@example.com
3313
+ Message-ID: <4fa911becc52f_135f13fc4adc34cd465084@dgmpro.local.mail>
3314
+ Subject: Hiya!
3315
+ Mime-Version: 1.0
3316
+ Content-Type: text/plain;
3317
+ charset=UTF-8
3318
+ Content-Transfer-Encoding: 7bit
3319
+
3320
+ Papaya
3321
+  (0.1ms) SAVEPOINT active_record_1
3322
+  (0.4ms) UPDATE "emails" SET "sent_at" = '2012-05-08 12:29:50.867434', "updated_at" = '2012-05-08 12:29:50.868103' WHERE "emails"."id" = 1
3323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3324
+ [DelayedMailhopper::SendJob] success for email_id 1, delayed_job_id 1
3325
+ DelayedMailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" WHERE "emails"."id" = ? LIMIT 1 [["id", 1]]
3326
+  (0.6ms) rollback transaction
3327
+  (0.0ms) begin transaction
3328
+ Rendered sample_mailer/hello.text.erb (0.1ms)
3329
+  (0.0ms) SAVEPOINT active_record_1
3330
+ SQL (0.4ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Tue, 08 May 2012 08:29:50 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4fa911bed7440_135f13fc4adc34cd4651f@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3331
+ SQL (0.2ms) INSERT INTO "delayed_jobs" ("attempts", "created_at", "failed_at", "handler", "last_error", "locked_at", "locked_by", "priority", "queue", "run_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attempts", 0], ["created_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["failed_at", nil], ["handler", "--- !ruby/struct:DelayedMailhopper::SendJob\nid: 1\n"], ["last_error", nil], ["locked_at", nil], ["locked_by", nil], ["priority", 0], ["queue", nil], ["run_at", Tue, 08 May 2012 12:29:50 UTC +00:00], ["updated_at", Tue, 08 May 2012 12:29:50 UTC +00:00]]
3332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3333
+
3334
+ Sent mail to to@example.com (12ms)
3335
+ Date: Tue, 08 May 2012 08:29:50 -0400
3336
+ From: from@example.com
3337
+ Reply-To: reply_to@example.com
3338
+ To: to@example.com
3339
+ Cc: cc@example.com
3340
+ Message-ID: <4fa911bed7440_135f13fc4adc34cd4651f@dgmpro.local.mail>
3341
+ Subject: Hiya!
3342
+ Mime-Version: 1.0
3343
+ Content-Type: text/plain;
3344
+ charset=UTF-8
3345
+ Content-Transfer-Encoding: 7bit
3346
+
3347
+ Papaya
3348
+ DelayedMailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
3349
+
3350
+ Sent mail to to@example.com (5ms)
3351
+ Date: Tue, 08 May 2012 08:29:50 -0400
3352
+ From: from@example.com
3353
+ Reply-To: reply_to@example.com
3354
+ To: to@example.com
3355
+ Cc: cc@example.com
3356
+ Message-ID: <4fa911bed7440_135f13fc4adc34cd4651f@dgmpro.local.mail>
3357
+ Subject: Hiya!
3358
+ Mime-Version: 1.0
3359
+ Content-Type: text/plain;
3360
+ charset=UTF-8
3361
+ Content-Transfer-Encoding: 7bit
3362
+
3363
+ Papaya
3364
+  (0.0ms) SAVEPOINT active_record_1
3365
+  (0.4ms) UPDATE "emails" SET "sent_at" = '2012-05-08 12:29:50.907683', "updated_at" = '2012-05-08 12:29:50.908164' WHERE "emails"."id" = 1
3366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3367
+  (0.6ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_mailhopper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mailhopper
16
- requirement: &70325954030100 !ruby/object:Gem::Requirement
16
+ requirement: &70317284404220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70325954030100
24
+ version_requirements: *70317284404220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: delayed_job
27
- requirement: &70325954044940 !ruby/object:Gem::Requirement
27
+ requirement: &70317284418620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70325954044940
35
+ version_requirements: *70317284418620
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70325954040920 !ruby/object:Gem::Requirement
38
+ requirement: &70317284414440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.3.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70325954040920
46
+ version_requirements: *70317284414440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec-rails
49
- requirement: &70325954037560 !ruby/object:Gem::Requirement
49
+ requirement: &70317284411280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70325954037560
57
+ version_requirements: *70317284411280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: delayed_job_active_record
60
- requirement: &70325954047280 !ruby/object:Gem::Requirement
60
+ requirement: &70317284420600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70325954047280
68
+ version_requirements: *70317284420600
69
69
  description: DelayedMailhopper extends Mailhopper to deliver emails asynchronously
70
70
  with DelayedJob.
71
71
  email: