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.
- data/app/models/queued_mail/message.rb +6 -1
- data/lib/queued_mail/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +10 -0
- data/test/dummy/log/test.log +422 -0
- data/test/dummy/test/functional/jp_sample_mailer_test.rb +10 -8
- data/test/dummy/test/functional/sample_mailer_test.rb +2 -2
- data/test/fixtures/queued_mail/messages.yml +10 -0
- data/test/test_helper.rb +1 -0
- data/test/unit/queued_mail/message_test.rb +6 -3
- metadata +6 -2
@@ -8,7 +8,12 @@ module QueuedMail
|
|
8
8
|
class_eval %Q{
|
9
9
|
def formatted_#{key}
|
10
10
|
address = Mail::Address.new
|
11
|
-
|
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
|
data/lib/queued_mail/version.rb
CHANGED
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
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2873196
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
2873197
|
+
[1m[36m (7.6ms)[0m [1mCREATE 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)) [0m
|
2873198
|
+
[1m[35m (2.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
2873199
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
2873200
|
+
[1m[35m (4.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
2873201
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
2873202
|
+
[1m[35m (1.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120911193759')
|
2873203
|
+
[1m[36m (2.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120906073754')[0m
|
@@ -0,0 +1,422 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (2.1ms)[0m [1mbegin transaction[0m
|
3
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
|
4
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
12
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
13
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
15
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
16
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
17
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20
|
+
Rendered sample_mailer/simple.text.erb (0.3ms)
|
21
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
24
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
|
25
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
26
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
27
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
|
33
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
|
34
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
|
37
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
38
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
40
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
41
|
+
Rendered sample_mailer/simple.text.erb (0.3ms)
|
42
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
43
|
+
Connecting to database specified by database.yml
|
44
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
45
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
|
46
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
47
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
48
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
54
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
55
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
58
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
Rendered sample_mailer/simple.text.erb (0.3ms)
|
63
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64
|
+
Connecting to database specified by database.yml
|
65
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
66
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.7ms)
|
67
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
68
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
69
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
73
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
74
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
75
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
76
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
79
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
80
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
82
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
83
|
+
Rendered sample_mailer/simple.text.erb (0.6ms)
|
84
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
85
|
+
Connecting to database specified by database.yml
|
86
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
87
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.5ms)
|
88
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
89
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
90
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
94
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
95
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
96
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
97
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
102
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
103
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
104
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106
|
+
Connecting to database specified by database.yml
|
107
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
108
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (4.3ms)
|
109
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
110
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
116
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
117
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
120
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.6ms)
|
121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
123
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
125
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
127
|
+
Connecting to database specified by database.yml
|
128
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
129
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.7ms)
|
130
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
|
131
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
132
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
|
138
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.4ms)
|
139
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
140
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
141
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
146
|
+
Rendered sample_mailer/simple.text.erb (0.5ms)
|
147
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
148
|
+
Connecting to database specified by database.yml
|
149
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
150
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.6ms)
|
151
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
|
152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
158
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
159
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
162
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
|
163
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
165
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
167
|
+
Rendered sample_mailer/simple.text.erb (0.7ms)
|
168
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
169
|
+
Connecting to database specified by database.yml
|
170
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
171
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
|
172
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
178
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
179
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.6ms)
|
180
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
|
181
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
182
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
183
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
188
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
191
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
192
|
+
Connecting to database specified by database.yml
|
193
|
+
Connecting to database specified by database.yml
|
194
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
195
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
|
196
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
|
197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
198
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
203
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
|
204
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
|
205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
208
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
212
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
214
|
+
Rendered sample_mailer/simple.text.erb (1.0ms)
|
215
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
+
Connecting to database specified by database.yml
|
217
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
218
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.9ms)
|
219
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
220
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
221
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
225
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
226
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
227
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
228
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
229
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
230
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
|
231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
232
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
233
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
238
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
239
|
+
Connecting to database specified by database.yml
|
240
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
241
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
|
242
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
243
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
244
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
248
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
249
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
250
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
251
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
252
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
|
254
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
256
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
260
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
261
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
262
|
+
Connecting to database specified by database.yml
|
263
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
264
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
|
265
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
266
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
267
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
272
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
273
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
276
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
277
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
278
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
279
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
280
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
281
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
282
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
283
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
285
|
+
Connecting to database specified by database.yml
|
286
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
287
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.7ms)
|
288
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
289
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
290
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
295
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
296
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.3ms)
|
297
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
298
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
299
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
303
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
304
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
305
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
306
|
+
Rendered sample_mailer/simple.text.erb (0.5ms)
|
307
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
308
|
+
Connecting to database specified by database.yml
|
309
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
310
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.6ms)
|
311
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
317
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
318
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
|
319
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
320
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
324
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
325
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
326
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
327
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
330
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
331
|
+
Connecting to database specified by database.yml
|
332
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
333
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
|
334
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
335
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
336
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
341
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.4ms)
|
342
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.4ms)
|
343
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
345
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.3ms)
|
346
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
350
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
352
|
+
Rendered sample_mailer/simple.text.erb (0.5ms)
|
353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
354
|
+
Connecting to database specified by database.yml
|
355
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
356
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (1.8ms)
|
357
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.4ms)
|
358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
364
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
365
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
366
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
367
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
368
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.4ms)
|
369
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
371
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
372
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
373
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
375
|
+
Rendered sample_mailer/simple.text.erb (0.4ms)
|
376
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
377
|
+
Connecting to database specified by database.yml
|
378
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
379
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.1ms)
|
380
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.2ms)
|
381
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
382
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
387
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
388
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
389
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
390
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
391
|
+
Rendered jp_sample_mailer/simple_test.text.erb (0.5ms)
|
392
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
393
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
394
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
396
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
397
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
398
|
+
Rendered sample_mailer/simple.text.erb (0.3ms)
|
399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
400
|
+
Connecting to database specified by database.yml
|
401
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
402
|
+
Rendered jp_sample_mailer/attachment_test.html.erb (2.2ms)
|
403
|
+
Rendered jp_sample_mailer/attachment_test.text.erb (0.3ms)
|
404
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
410
|
+
Rendered jp_sample_mailer/multipart_test.html.erb (0.3ms)
|
411
|
+
Rendered jp_sample_mailer/multipart_test.text.erb (0.2ms)
|
412
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
413
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
414
|
+
Rendered jp_sample_mailer/simple_test.text.erb (1.9ms)
|
415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
417
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
418
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
419
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
420
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
421
|
+
Rendered sample_mailer/simple.text.erb (0.3ms)
|
422
|
+
[1m[35m (0.1ms)[0m 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 ["
|
8
|
-
assert_equal ["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 ["
|
16
|
-
assert_equal ["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 ["
|
24
|
-
assert_equal ["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 ["
|
32
|
-
assert_equal ["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 ["
|
8
|
-
assert_equal ["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
|
-
|
6
|
-
|
7
|
-
|
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.
|
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-
|
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
|