queued_mail 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,12 @@ module QueuedMail
8
8
  class_eval %Q{
9
9
  def formatted_#{key}
10
10
  address = Mail::Address.new
11
- address.address = #{key}_address
11
+ begin
12
+ address.address = #{key}_address
13
+ rescue Mail::Field::ParseError
14
+ parts = #{key}_address.scan(/\\A(.+)@(.+)\\z/).flatten
15
+ address.address = '"' + parts[0] + '"' + '@' + parts[1]
16
+ end
12
17
  address.display_name = #{key}_name
13
18
  address.to_s
14
19
  end
@@ -1,3 +1,3 @@
1
1
  module QueuedMail
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
Binary file
@@ -2873191,3 +2873191,13 @@ VAf7R6HJAsCEda6gVchXBXsO+TBYEI/1LW8jEclAT2Pjkmoh/9k=
2873191
2873191
 
2873192
2873192
  [AWS SQS 200 0.145761 0 retries] receive_message(:max_number_of_messages=>1,:queue_url=>"https://sqs.ap-northeast-1.amazonaws.com/764044168140/queued_mail-dummy")
2873193
2873193
 
2873194
+ Connecting to database specified by database.yml
2873195
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2873196
+  (0.2ms) select sqlite_version(*)
2873197
+  (7.6ms) CREATE TABLE "queued_mail_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subject" varchar(255), "body" blob, "recipient_address" varchar(255), "recipient_name" varchar(255), "sender_address" varchar(255), "sender_name" varchar(255), "reply_to_address" varchar(255), "reply_to_name" varchar(255), "content_type" varchar(255), "mime_version" varchar(255), "content_transfer_encoding" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "cc_addresses" varchar(255), "bcc_addresses" varchar(255)) 
2873198
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2873199
+  (0.0ms) PRAGMA index_list("schema_migrations")
2873200
+  (4.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2873201
+  (0.1ms) SELECT version FROM "schema_migrations"
2873202
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120911193759')
2873203
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120906073754')
@@ -0,0 +1,422 @@
1
+ Connecting to database specified by database.yml
2
+  (2.1ms) begin transaction
3
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
4
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
5
+  (0.1ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (3.5ms)
8
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
9
+  (0.1ms) rollback transaction
10
+  (0.0ms) begin transaction
11
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
12
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
13
+  (0.1ms) rollback transaction
14
+  (0.0ms) begin transaction
15
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
16
+  (0.1ms) rollback transaction
17
+  (0.0ms) begin transaction
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+ Rendered sample_mailer/simple.text.erb (0.3ms)
21
+  (0.1ms) rollback transaction
22
+ Connecting to database specified by database.yml
23
+  (0.6ms) begin transaction
24
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
25
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
26
+  (0.1ms) rollback transaction
27
+  (0.0ms) begin transaction
28
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.3ms)
29
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
30
+  (0.1ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
33
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
34
+  (0.2ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+ Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
37
+  (0.1ms) rollback transaction
38
+  (0.1ms) begin transaction
39
+  (0.1ms) rollback transaction
40
+  (0.0ms) begin transaction
41
+ Rendered sample_mailer/simple.text.erb (0.3ms)
42
+  (0.1ms) rollback transaction
43
+ Connecting to database specified by database.yml
44
+  (0.4ms) begin transaction
45
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
46
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
47
+  (0.1ms) rollback transaction
48
+  (0.1ms) begin transaction
49
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.4ms)
50
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
51
+  (0.1ms) rollback transaction
52
+  (0.1ms) begin transaction
53
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
54
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
55
+  (0.1ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
58
+  (0.1ms) rollback transaction
59
+  (0.1ms) begin transaction
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ Rendered sample_mailer/simple.text.erb (0.3ms)
63
+  (0.1ms) rollback transaction
64
+ Connecting to database specified by database.yml
65
+  (0.4ms) begin transaction
66
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.7ms)
67
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
68
+  (0.1ms) rollback transaction
69
+  (0.0ms) begin transaction
70
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.3ms)
71
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
72
+  (0.1ms) rollback transaction
73
+  (0.0ms) begin transaction
74
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
75
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
76
+  (0.1ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
79
+  (0.1ms) rollback transaction
80
+  (0.0ms) begin transaction
81
+  (0.0ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+ Rendered sample_mailer/simple.text.erb (0.6ms)
84
+  (0.1ms) rollback transaction
85
+ Connecting to database specified by database.yml
86
+  (0.5ms) begin transaction
87
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.5ms)
88
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
89
+  (0.1ms) rollback transaction
90
+  (0.2ms) begin transaction
91
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.5ms)
92
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.3ms)
93
+  (0.1ms) rollback transaction
94
+  (0.3ms) begin transaction
95
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
96
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
97
+  (0.1ms) rollback transaction
98
+  (0.1ms) begin transaction
99
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
100
+  (0.1ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+  (0.0ms) rollback transaction
103
+  (0.0ms) begin transaction
104
+ Rendered sample_mailer/simple.text.erb (0.4ms)
105
+  (0.1ms) rollback transaction
106
+ Connecting to database specified by database.yml
107
+  (0.3ms) begin transaction
108
+ Rendered jp_sample_mailer/attachment_test.html.erb (4.3ms)
109
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
110
+  (0.1ms) rollback transaction
111
+  (0.2ms) begin transaction
112
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.6ms)
113
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.3ms)
114
+  (0.1ms) rollback transaction
115
+  (0.0ms) begin transaction
116
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
117
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
118
+  (0.1ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+ Rendered jp_sample_mailer/simple_test.text.erb (0.6ms)
121
+  (0.1ms) rollback transaction
122
+  (0.1ms) begin transaction
123
+  (0.0ms) rollback transaction
124
+  (0.0ms) begin transaction
125
+ Rendered sample_mailer/simple.text.erb (0.4ms)
126
+  (0.1ms) rollback transaction
127
+ Connecting to database specified by database.yml
128
+  (0.4ms) begin transaction
129
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.7ms)
130
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
131
+  (0.1ms) rollback transaction
132
+  (0.3ms) begin transaction
133
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.4ms)
134
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
138
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.4ms)
139
+  (0.1ms) rollback transaction
140
+  (0.3ms) begin transaction
141
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
142
+  (0.1ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+  (0.1ms) rollback transaction
145
+  (0.1ms) begin transaction
146
+ Rendered sample_mailer/simple.text.erb (0.5ms)
147
+  (0.2ms) rollback transaction
148
+ Connecting to database specified by database.yml
149
+  (0.4ms) begin transaction
150
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.6ms)
151
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
152
+  (0.1ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (3.1ms)
155
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.6ms)
156
+  (0.1ms) rollback transaction
157
+  (0.1ms) begin transaction
158
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
159
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
160
+  (0.1ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
163
+  (0.1ms) rollback transaction
164
+  (0.1ms) begin transaction
165
+  (0.0ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ Rendered sample_mailer/simple.text.erb (0.7ms)
168
+  (0.1ms) rollback transaction
169
+ Connecting to database specified by database.yml
170
+  (0.7ms) begin transaction
171
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
172
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
173
+  (0.1ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (3.2ms)
176
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
177
+  (0.1ms) rollback transaction
178
+  (0.0ms) begin transaction
179
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.6ms)
180
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
181
+  (0.1ms) rollback transaction
182
+  (0.1ms) begin transaction
183
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
184
+  (0.1ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+  (0.0ms) rollback transaction
187
+  (0.1ms) begin transaction
188
+  (0.1ms) rollback transaction
189
+  (0.1ms) begin transaction
190
+ Rendered sample_mailer/simple.text.erb (0.4ms)
191
+  (0.1ms) rollback transaction
192
+ Connecting to database specified by database.yml
193
+ Connecting to database specified by database.yml
194
+  (0.3ms) begin transaction
195
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
196
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
197
+  (0.1ms) rollback transaction
198
+  (0.2ms) begin transaction
199
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (3.4ms)
200
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.4ms)
201
+  (0.2ms) rollback transaction
202
+  (0.1ms) begin transaction
203
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
204
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
208
+  (0.1ms) rollback transaction
209
+  (0.1ms) begin transaction
210
+  (0.0ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+ Rendered sample_mailer/simple.text.erb (1.0ms)
215
+  (0.1ms) rollback transaction
216
+ Connecting to database specified by database.yml
217
+  (0.4ms) begin transaction
218
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
219
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
220
+  (0.1ms) rollback transaction
221
+  (0.3ms) begin transaction
222
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.6ms)
223
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
224
+  (0.1ms) rollback transaction
225
+  (0.4ms) begin transaction
226
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
227
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
228
+  (0.1ms) rollback transaction
229
+  (0.3ms) begin transaction
230
+ Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
231
+  (0.1ms) rollback transaction
232
+  (0.1ms) begin transaction
233
+  (0.0ms) rollback transaction
234
+  (0.1ms) begin transaction
235
+  (0.1ms) rollback transaction
236
+  (0.1ms) begin transaction
237
+ Rendered sample_mailer/simple.text.erb (0.4ms)
238
+  (0.1ms) rollback transaction
239
+ Connecting to database specified by database.yml
240
+  (0.7ms) begin transaction
241
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
242
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
243
+  (0.1ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.4ms)
246
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
247
+  (0.1ms) rollback transaction
248
+  (0.0ms) begin transaction
249
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
250
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
251
+  (0.1ms) rollback transaction
252
+  (0.1ms) begin transaction
253
+ Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
254
+  (0.1ms) rollback transaction
255
+  (0.0ms) begin transaction
256
+  (0.0ms) rollback transaction
257
+  (0.0ms) begin transaction
258
+  (0.0ms) rollback transaction
259
+  (0.1ms) begin transaction
260
+ Rendered sample_mailer/simple.text.erb (0.4ms)
261
+  (0.1ms) rollback transaction
262
+ Connecting to database specified by database.yml
263
+  (0.4ms) begin transaction
264
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
265
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
266
+  (0.1ms) rollback transaction
267
+  (0.1ms) begin transaction
268
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (3.9ms)
269
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.3ms)
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
273
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
274
+  (0.1ms) rollback transaction
275
+  (0.0ms) begin transaction
276
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
277
+  (0.1ms) rollback transaction
278
+  (0.1ms) begin transaction
279
+  (0.0ms) rollback transaction
280
+  (0.0ms) begin transaction
281
+  (0.0ms) rollback transaction
282
+  (0.1ms) begin transaction
283
+ Rendered sample_mailer/simple.text.erb (0.4ms)
284
+  (0.1ms) rollback transaction
285
+ Connecting to database specified by database.yml
286
+  (0.8ms) begin transaction
287
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.7ms)
288
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
289
+  (0.1ms) rollback transaction
290
+  (0.1ms) begin transaction
291
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.7ms)
292
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.3ms)
293
+  (0.1ms) rollback transaction
294
+  (0.0ms) begin transaction
295
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
296
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
297
+  (0.1ms) rollback transaction
298
+  (0.0ms) begin transaction
299
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+  (0.1ms) rollback transaction
303
+  (0.1ms) begin transaction
304
+  (0.1ms) rollback transaction
305
+  (0.1ms) begin transaction
306
+ Rendered sample_mailer/simple.text.erb (0.5ms)
307
+  (0.1ms) rollback transaction
308
+ Connecting to database specified by database.yml
309
+  (0.4ms) begin transaction
310
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.6ms)
311
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
312
+  (0.1ms) rollback transaction
313
+  (0.1ms) begin transaction
314
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.9ms)
315
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
316
+  (0.1ms) rollback transaction
317
+  (0.0ms) begin transaction
318
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
319
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
320
+  (0.1ms) rollback transaction
321
+  (0.0ms) begin transaction
322
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
323
+  (0.1ms) rollback transaction
324
+  (0.1ms) begin transaction
325
+  (0.0ms) rollback transaction
326
+  (0.0ms) begin transaction
327
+  (0.0ms) rollback transaction
328
+  (0.0ms) begin transaction
329
+ Rendered sample_mailer/simple.text.erb (0.4ms)
330
+  (0.1ms) rollback transaction
331
+ Connecting to database specified by database.yml
332
+  (0.4ms) begin transaction
333
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
334
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
335
+  (0.1ms) rollback transaction
336
+  (0.1ms) begin transaction
337
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.3ms)
338
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.3ms)
339
+  (0.1ms) rollback transaction
340
+  (0.0ms) begin transaction
341
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
342
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.4ms)
343
+  (0.1ms) rollback transaction
344
+  (0.0ms) begin transaction
345
+ Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
346
+  (0.1ms) rollback transaction
347
+  (0.1ms) begin transaction
348
+  (0.1ms) rollback transaction
349
+  (0.1ms) begin transaction
350
+  (0.2ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ Rendered sample_mailer/simple.text.erb (0.5ms)
353
+  (0.1ms) rollback transaction
354
+ Connecting to database specified by database.yml
355
+  (0.3ms) begin transaction
356
+ Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
357
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
358
+  (0.1ms) rollback transaction
359
+  (0.0ms) begin transaction
360
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (6.5ms)
361
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
362
+  (0.1ms) rollback transaction
363
+  (0.1ms) begin transaction
364
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
365
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
366
+  (0.1ms) rollback transaction
367
+  (0.0ms) begin transaction
368
+ Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
369
+  (0.1ms) rollback transaction
370
+  (0.1ms) begin transaction
371
+  (0.0ms) rollback transaction
372
+  (0.0ms) begin transaction
373
+  (0.0ms) rollback transaction
374
+  (0.0ms) begin transaction
375
+ Rendered sample_mailer/simple.text.erb (0.4ms)
376
+  (0.1ms) rollback transaction
377
+ Connecting to database specified by database.yml
378
+  (0.6ms) begin transaction
379
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
380
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
381
+  (0.1ms) rollback transaction
382
+  (0.1ms) begin transaction
383
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.3ms)
384
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
385
+  (0.1ms) rollback transaction
386
+  (0.1ms) begin transaction
387
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
388
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
389
+  (0.1ms) rollback transaction
390
+  (0.1ms) begin transaction
391
+ Rendered jp_sample_mailer/simple_test.text.erb (0.5ms)
392
+  (0.1ms) rollback transaction
393
+  (0.0ms) begin transaction
394
+  (0.1ms) rollback transaction
395
+  (0.0ms) begin transaction
396
+  (0.0ms) rollback transaction
397
+  (0.0ms) begin transaction
398
+ Rendered sample_mailer/simple.text.erb (0.3ms)
399
+  (0.1ms) rollback transaction
400
+ Connecting to database specified by database.yml
401
+  (0.4ms) begin transaction
402
+ Rendered jp_sample_mailer/attachment_test.html.erb (2.2ms)
403
+ Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
404
+  (0.1ms) rollback transaction
405
+  (0.1ms) begin transaction
406
+ Rendered jp_sample_mailer/inline_attachment_test.html.erb (2.6ms)
407
+ Rendered jp_sample_mailer/inline_attachment_test.text.erb (0.2ms)
408
+  (0.1ms) rollback transaction
409
+  (0.0ms) begin transaction
410
+ Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
411
+ Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
412
+  (0.1ms) rollback transaction
413
+  (0.0ms) begin transaction
414
+ Rendered jp_sample_mailer/simple_test.text.erb (1.9ms)
415
+  (0.1ms) rollback transaction
416
+  (0.1ms) begin transaction
417
+  (0.1ms) rollback transaction
418
+  (0.1ms) begin transaction
419
+  (0.0ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ Rendered sample_mailer/simple.text.erb (0.3ms)
422
+  (0.1ms) rollback transaction
@@ -1,36 +1,38 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'test_helper'
2
3
 
3
4
  class JpSampleMailerTest < ActionMailer::TestCase
4
5
  test "simple_test" do
5
6
  mail = JpSampleMailer.simple_test
6
7
  assert_equal "Simple test", mail.subject
7
- assert_equal ["to@example.org"], mail.to
8
- assert_equal ["from@example.com"], mail.from
8
+ assert_equal ["uzuki05@takeyu-web.com"], mail.to
9
+ assert_equal ["from@takeyu-web.com"], mail.from
9
10
  assert_match "Hi", mail.body.encoded
10
11
  end
11
12
 
12
13
  test "multipart_test" do
13
14
  mail = JpSampleMailer.multipart_test
14
15
  assert_equal "Multipart test", mail.subject
15
- assert_equal ["to@example.org"], mail.to
16
- assert_equal ["from@example.com"], mail.from
16
+ assert_equal ["uzuki05@takeyu-web.com"], mail.to
17
+ assert_equal ["from@takeyu-web.com"], mail.from
17
18
  assert_match "Hi", mail.body.encoded
18
19
  end
19
20
 
20
21
  test "attachment_test" do
21
22
  mail = JpSampleMailer.attachment_test
22
23
  assert_equal "Attachment test", mail.subject
23
- assert_equal ["to@example.org"], mail.to
24
- assert_equal ["from@example.com"], mail.from
24
+ assert_equal ["uzuki05@takeyu-web.com"], mail.to
25
+ assert_equal ["from@takeyu-web.com"], mail.from
25
26
  assert_match "Hi", mail.body.encoded
26
27
  end
27
28
 
28
29
  test "inline_attachment_test" do
29
30
  mail = JpSampleMailer.inline_attachment_test
30
31
  assert_equal "Inline attachment test", mail.subject
31
- assert_equal ["to@example.org"], mail.to
32
- assert_equal ["from@example.com"], mail.from
32
+ assert_equal ["uzuki05@takeyu-web.com"], mail.to
33
+ assert_equal ["from@takeyu-web.com"], mail.from
33
34
  assert_match "Hi", mail.body.encoded
34
35
  end
35
36
 
36
37
  end
38
+
@@ -4,8 +4,8 @@ class SampleMailerTest < ActionMailer::TestCase
4
4
  test "simple" do
5
5
  mail = SampleMailer.simple
6
6
  assert_equal "Simple", mail.subject
7
- assert_equal ["to@example.org"], mail.to
8
- assert_equal ["from@example.com"], mail.from
7
+ assert_equal ["uzuki05@takeyu-web.com"], mail.to
8
+ assert_equal ["from@takeyu-web.com"], mail.from
9
9
  assert_match "Hi", mail.body.encoded
10
10
  end
11
11
 
@@ -19,3 +19,13 @@ two:
19
19
  sender_name: MyString
20
20
  reply_to_address: MyString
21
21
  reply_to_name: MyString
22
+
23
+ rfc_violation1:
24
+ subject: "@直前にドット"
25
+ body: ""
26
+ recipient_address: "to.@takeyu-web.com"
27
+ recipient_name: "Recipient"
28
+ recipient_address: "from.@takeyu-web.com"
29
+ recipient_name: "Sendor"
30
+ reply_to_address: "reply.@takeyu-web.com"
31
+ reply_to_name: "ReplyTo"
data/test/test_helper.rb CHANGED
@@ -12,4 +12,5 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
12
  # Load fixtures from the engine
13
13
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
14
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ puts File.expand_path("../fixtures", __FILE__)
15
16
  end
@@ -2,8 +2,11 @@ require 'test_helper'
2
2
 
3
3
  module QueuedMail
4
4
  class MessageTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
5
+ test 'RFC violation' do
6
+ #message = queuedmail_messages(:rfc_violation1)
7
+ message = QueuedMail::Message.new(recipient_address: "to.@takeyu-web.com",
8
+ recipient_name: "Recipient")
9
+ assert_equal message.formatted_recipient, 'Recipient <"to."@takeyu-web.com>'
10
+ end
8
11
  end
9
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queued_mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -57,6 +57,7 @@ files:
57
57
  - Rakefile
58
58
  - README.rdoc
59
59
  - test/integration/navigation_test.rb
60
+ - test/dummy/log/test.log
60
61
  - test/dummy/log/development.log
61
62
  - test/dummy/README.rdoc
62
63
  - test/dummy/public/favicon.ico
@@ -86,6 +87,7 @@ files:
86
87
  - test/dummy/config/locales/en.yml
87
88
  - test/dummy/file/cat.jpg
88
89
  - test/dummy/db/schema.rb
90
+ - test/dummy/db/test.sqlite3
89
91
  - test/dummy/db/migrate/20120911193759_add_cc_headers.queued_mail.rb
90
92
  - test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
91
93
  - test/dummy/db/development.sqlite3
@@ -144,6 +146,7 @@ specification_version: 3
144
146
  summary: Summary of QueuedMail.
145
147
  test_files:
146
148
  - test/integration/navigation_test.rb
149
+ - test/dummy/log/test.log
147
150
  - test/dummy/log/development.log
148
151
  - test/dummy/README.rdoc
149
152
  - test/dummy/public/favicon.ico
@@ -173,6 +176,7 @@ test_files:
173
176
  - test/dummy/config/locales/en.yml
174
177
  - test/dummy/file/cat.jpg
175
178
  - test/dummy/db/schema.rb
179
+ - test/dummy/db/test.sqlite3
176
180
  - test/dummy/db/migrate/20120911193759_add_cc_headers.queued_mail.rb
177
181
  - test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
178
182
  - test/dummy/db/development.sqlite3