maildown 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -0
- data/lib/maildown/ext/action_mailer.rb +2 -2
- data/lib/maildown/markdown_engine.rb +2 -0
- data/lib/maildown/version.rb +1 -1
- data/lib/maildown.rb +0 -2
- data/test/dummy/log/test.log +5 -420
- data/test/test_helper.rb +2 -2
- data/test/unit/ext_action_mailer_test.rb +2 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd5cad1054fdd363671efc2bc743f300808abb13
|
4
|
+
data.tar.gz: 884837096744efa812e684aa6bd353b9cf2f2cdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fb0206f71d1d4b57ae533bc8d6394f6ed35dcc7b9550402994a0b51d0ad813971deba7faaf8b0008a2522b9c7ac6106fbf03ba5cfdbae31ea62ee3f0af83d7a
|
7
|
+
data.tar.gz: 86c2b5d7ee0ed95f4f4de8b1533a7c3ac813a7dd3129b1841a6bb373399a106f8bf8a0a0496a750b04a57659c1e3f415549e9a1736adefc762e4932522b77420
|
data/Rakefile
CHANGED
@@ -5,8 +5,8 @@ Mime::Type.register "text/md", :md, [], %w(md)
|
|
5
5
|
class ActionMailer::Base
|
6
6
|
alias :original_collect_responses :collect_responses
|
7
7
|
|
8
|
-
def collect_responses(*args)
|
9
|
-
responses = original_collect_responses(*args)
|
8
|
+
def collect_responses(*args, &block)
|
9
|
+
responses = original_collect_responses(*args, &block)
|
10
10
|
md = ::Maildown::Md.new(responses)
|
11
11
|
if md.contains_md?
|
12
12
|
return md.to_responses
|
data/lib/maildown/version.rb
CHANGED
data/lib/maildown.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1,54 +1,4 @@
|
|
1
|
-
[1m[36m (0.
|
2
|
-
-----------------------------------------------------------
|
3
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
4
|
-
-----------------------------------------------------------
|
5
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
-
-------------------------------------------------------------
|
8
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
9
|
-
-------------------------------------------------------------
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
-
----------------------------------------------
|
13
|
-
ExtActionMailerTest: test_monkeypatch_location
|
14
|
-
----------------------------------------------
|
15
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
-
------------------------------------
|
18
|
-
MaildownTest: test_no_md_in_response
|
19
|
-
------------------------------------
|
20
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
-
------------------------------------
|
23
|
-
MaildownTest: test_parse_md_response
|
24
|
-
------------------------------------
|
25
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
26
|
-
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
27
|
-
-----------------------------------------------------------
|
28
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
29
|
-
-----------------------------------------------------------
|
30
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
31
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
-
-------------------------------------------------------------
|
33
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
34
|
-
-------------------------------------------------------------
|
35
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
36
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
-
----------------------------------------------
|
38
|
-
ExtActionMailerTest: test_monkeypatch_location
|
39
|
-
----------------------------------------------
|
40
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
-
------------------------------------
|
43
|
-
MaildownTest: test_no_md_in_response
|
44
|
-
------------------------------------
|
45
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
46
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
-
------------------------------------
|
48
|
-
MaildownTest: test_parse_md_response
|
49
|
-
------------------------------------
|
50
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52
2
|
-----------------------------------------------------------
|
53
3
|
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
54
4
|
-----------------------------------------------------------
|
@@ -57,328 +7,33 @@ ExtActionMailerTest: test_correctly_registered_md_mime_type
|
|
57
7
|
-------------------------------------------------------------
|
58
8
|
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
59
9
|
-------------------------------------------------------------
|
60
|
-
[1m[35m (0.
|
61
|
-
[1m[36m (0.
|
10
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
62
12
|
----------------------------------------------
|
63
13
|
ExtActionMailerTest: test_monkeypatch_location
|
64
14
|
----------------------------------------------
|
65
|
-
[1m[35m (0.
|
66
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
67
|
-
------------------------------------
|
68
|
-
MaildownTest: test_no_md_in_response
|
69
|
-
------------------------------------
|
70
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
72
|
-
------------------------------------
|
73
|
-
MaildownTest: test_parse_md_response
|
74
|
-
------------------------------------
|
75
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
77
|
-
---------------------------------------
|
78
|
-
MarkdownEngineTest: test_can_set_engine
|
79
|
-
---------------------------------------
|
80
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
15
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
81
16
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
82
|
-
-----------------------------------------------------------
|
83
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
84
|
-
-----------------------------------------------------------
|
85
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
86
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87
|
-
-------------------------------------------------------------
|
88
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
89
|
-
-------------------------------------------------------------
|
90
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
91
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
92
|
-
----------------------------------------------
|
93
|
-
ExtActionMailerTest: test_monkeypatch_location
|
94
|
-
----------------------------------------------
|
95
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
96
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
97
17
|
------------------------------------
|
98
18
|
MaildownTest: test_no_md_in_response
|
99
|
-
------------------------------------
|
100
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
101
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
102
|
-
------------------------------------
|
103
|
-
MaildownTest: test_parse_md_response
|
104
19
|
------------------------------------
|
105
20
|
[1m[35m (0.1ms)[0m rollback transaction
|
106
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107
|
-
---------------------------------------
|
108
|
-
MarkdownEngineTest: test_can_set_engine
|
109
|
-
---------------------------------------
|
110
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
111
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
112
|
-
-----------------------------------------------------------
|
113
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
114
|
-
-----------------------------------------------------------
|
115
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
-
-------------------------------------------------------------
|
118
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
119
|
-
-------------------------------------------------------------
|
120
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
121
21
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
122
|
-
----------------------------------------------
|
123
|
-
ExtActionMailerTest: test_monkeypatch_location
|
124
|
-
----------------------------------------------
|
125
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
126
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
-
------------------------------------
|
128
|
-
MaildownTest: test_no_md_in_response
|
129
|
-
------------------------------------
|
130
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
131
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
132
|
-
------------------------------------
|
133
|
-
MaildownTest: test_parse_md_response
|
134
|
-
------------------------------------
|
135
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
136
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137
|
-
---------------------------------------
|
138
|
-
MarkdownEngineTest: test_can_set_engine
|
139
|
-
---------------------------------------
|
140
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
141
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
142
|
-
-----------------------------------------------------------
|
143
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
144
|
-
-----------------------------------------------------------
|
145
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
146
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
147
|
-
-------------------------------------------------------------
|
148
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
149
|
-
-------------------------------------------------------------
|
150
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
151
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
152
|
-
----------------------------------------------
|
153
|
-
ExtActionMailerTest: test_monkeypatch_location
|
154
|
-
----------------------------------------------
|
155
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
156
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
157
|
-
------------------------------------
|
158
|
-
MaildownTest: test_no_md_in_response
|
159
|
-
------------------------------------
|
160
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
161
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
162
22
|
------------------------------------
|
163
23
|
MaildownTest: test_parse_md_response
|
164
24
|
------------------------------------
|
165
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
166
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
167
|
-
---------------------------------------
|
168
|
-
MarkdownEngineTest: test_can_set_engine
|
169
|
-
---------------------------------------
|
170
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
171
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
172
|
-
-----------------------------------------------------------
|
173
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
174
|
-
-----------------------------------------------------------
|
175
25
|
[1m[35m (0.1ms)[0m rollback transaction
|
176
26
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
177
|
-
-------------------------------------------------------------
|
178
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
179
|
-
-------------------------------------------------------------
|
180
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
181
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
182
|
-
----------------------------------------------
|
183
|
-
ExtActionMailerTest: test_monkeypatch_location
|
184
|
-
----------------------------------------------
|
185
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
186
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
187
|
-
------------------------------------
|
188
|
-
MaildownTest: test_no_md_in_response
|
189
|
-
------------------------------------
|
190
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
191
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
192
|
-
------------------------------------
|
193
|
-
MaildownTest: test_parse_md_response
|
194
|
-
------------------------------------
|
195
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
196
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
197
27
|
---------------------------------------
|
198
28
|
MarkdownEngineTest: test_can_set_engine
|
199
29
|
---------------------------------------
|
200
30
|
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
202
|
-
--------------------------------------------
|
203
|
-
MarkdownEngineTest: test_multiple_threads_yo
|
204
|
-
--------------------------------------------
|
205
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
206
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
207
|
-
-----------------------------------------------------------
|
208
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
209
|
-
-----------------------------------------------------------
|
210
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
211
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
212
|
-
-------------------------------------------------------------
|
213
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
214
|
-
-------------------------------------------------------------
|
215
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
216
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
-
----------------------------------------------
|
218
|
-
ExtActionMailerTest: test_monkeypatch_location
|
219
|
-
----------------------------------------------
|
220
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
221
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
222
|
-
------------------------------------
|
223
|
-
MaildownTest: test_no_md_in_response
|
224
|
-
------------------------------------
|
225
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
226
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
227
|
-
------------------------------------
|
228
|
-
MaildownTest: test_parse_md_response
|
229
|
-
------------------------------------
|
230
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
231
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
232
|
-
---------------------------------------
|
233
|
-
MarkdownEngineTest: test_can_set_engine
|
234
|
-
---------------------------------------
|
235
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
236
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
237
|
-
--------------------------------------------
|
238
|
-
MarkdownEngineTest: test_multiple_threads_yo
|
239
|
-
--------------------------------------------
|
240
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
241
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
242
|
-
-----------------------------------------------------------
|
243
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
244
|
-
-----------------------------------------------------------
|
245
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
246
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
-
-------------------------------------------------------------
|
248
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
249
|
-
-------------------------------------------------------------
|
250
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252
|
-
----------------------------------------------
|
253
|
-
ExtActionMailerTest: test_monkeypatch_location
|
254
|
-
----------------------------------------------
|
255
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
256
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
257
|
-
------------------------------------
|
258
|
-
MaildownTest: test_no_md_in_response
|
259
|
-
------------------------------------
|
260
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
261
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
|
-
------------------------------------
|
263
|
-
MaildownTest: test_parse_md_response
|
264
|
-
------------------------------------
|
265
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
266
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
267
|
-
---------------------------------------
|
268
|
-
MarkdownEngineTest: test_can_set_engine
|
269
|
-
---------------------------------------
|
270
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
271
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
272
|
-
----------------------------------------------------------
|
273
|
-
MarkdownEngineTest: test_default_works_in_multiple_threads
|
274
|
-
----------------------------------------------------------
|
275
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
276
31
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
277
|
-
-----------------------------------------------------------
|
278
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
279
|
-
-----------------------------------------------------------
|
280
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
281
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282
|
-
-------------------------------------------------------------
|
283
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
284
|
-
-------------------------------------------------------------
|
285
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
286
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
287
|
-
----------------------------------------------
|
288
|
-
ExtActionMailerTest: test_monkeypatch_location
|
289
|
-
----------------------------------------------
|
290
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
291
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
292
|
-
------------------------------------
|
293
|
-
MaildownTest: test_no_md_in_response
|
294
|
-
------------------------------------
|
295
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
296
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
297
|
-
------------------------------------
|
298
|
-
MaildownTest: test_parse_md_response
|
299
|
-
------------------------------------
|
300
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
301
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
302
|
-
---------------------------------------
|
303
|
-
MarkdownEngineTest: test_can_set_engine
|
304
|
-
---------------------------------------
|
305
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
306
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
307
32
|
----------------------------------------------------------
|
308
33
|
MarkdownEngineTest: test_default_works_in_multiple_threads
|
309
34
|
----------------------------------------------------------
|
310
35
|
[1m[35m (0.2ms)[0m rollback transaction
|
311
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
312
|
-
-----------------------------------------------------------
|
313
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
314
|
-
-----------------------------------------------------------
|
315
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
316
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
317
|
-
-------------------------------------------------------------
|
318
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
319
|
-
-------------------------------------------------------------
|
320
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
321
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322
|
-
----------------------------------------------
|
323
|
-
ExtActionMailerTest: test_monkeypatch_location
|
324
|
-
----------------------------------------------
|
325
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
326
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
327
|
-
------------------------------------
|
328
|
-
MaildownTest: test_no_md_in_response
|
329
|
-
------------------------------------
|
330
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
331
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
332
|
-
------------------------------------
|
333
|
-
MaildownTest: test_parse_md_response
|
334
|
-
------------------------------------
|
335
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
336
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
337
|
-
---------------------------------------
|
338
|
-
MarkdownEngineTest: test_can_set_engine
|
339
|
-
---------------------------------------
|
340
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
341
36
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
342
|
-
----------------------------------------------------------
|
343
|
-
MarkdownEngineTest: test_default_works_in_multiple_threads
|
344
|
-
----------------------------------------------------------
|
345
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
346
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
347
|
-
-----------------------------------------------------------
|
348
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
349
|
-
-----------------------------------------------------------
|
350
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
351
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
352
|
-
-------------------------------------------------------------
|
353
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
354
|
-
-------------------------------------------------------------
|
355
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
356
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
357
|
-
----------------------------------------------
|
358
|
-
ExtActionMailerTest: test_monkeypatch_location
|
359
|
-
----------------------------------------------
|
360
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
361
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
362
|
-
------------------------------------
|
363
|
-
MaildownTest: test_no_md_in_response
|
364
|
-
------------------------------------
|
365
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
366
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
367
|
-
------------------------------------
|
368
|
-
MaildownTest: test_parse_md_response
|
369
|
-
------------------------------------
|
370
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
371
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
372
|
-
---------------------------------------
|
373
|
-
MarkdownEngineTest: test_can_set_engine
|
374
|
-
---------------------------------------
|
375
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
376
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
377
|
-
----------------------------------------------------------
|
378
|
-
MarkdownEngineTest: test_default_works_in_multiple_threads
|
379
|
-
----------------------------------------------------------
|
380
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
381
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
382
37
|
-----------------------------------------------------------
|
383
38
|
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
384
39
|
-----------------------------------------------------------
|
@@ -394,76 +49,16 @@ ExtActionMailerTest: test_monkeypatch_location
|
|
394
49
|
----------------------------------------------
|
395
50
|
[1m[35m (0.0ms)[0m rollback transaction
|
396
51
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
397
|
-
------------------------------------
|
398
|
-
MaildownTest: test_no_md_in_response
|
399
|
-
------------------------------------
|
400
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
401
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
402
|
-
------------------------------------
|
403
|
-
MaildownTest: test_parse_md_response
|
404
|
-
------------------------------------
|
405
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
406
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
407
52
|
---------------------------------------
|
408
53
|
MarkdownEngineTest: test_can_set_engine
|
409
54
|
---------------------------------------
|
410
55
|
[1m[35m (0.0ms)[0m rollback transaction
|
411
|
-
[1m[36m (0.
|
412
|
-
----------------------------------------------------------
|
413
|
-
MarkdownEngineTest: test_default_works_in_multiple_threads
|
414
|
-
----------------------------------------------------------
|
415
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
416
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
417
|
-
-----------------------------------------------------------
|
418
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
419
|
-
-----------------------------------------------------------
|
420
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
421
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
422
|
-
-------------------------------------------------------------
|
423
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
424
|
-
-------------------------------------------------------------
|
425
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
426
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
427
|
-
----------------------------------------------
|
428
|
-
ExtActionMailerTest: test_monkeypatch_location
|
429
|
-
----------------------------------------------
|
430
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
431
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
432
|
-
------------------------------------
|
433
|
-
MaildownTest: test_no_md_in_response
|
434
|
-
------------------------------------
|
435
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
436
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
437
|
-
------------------------------------
|
438
|
-
MaildownTest: test_parse_md_response
|
439
|
-
------------------------------------
|
440
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
441
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
442
|
-
---------------------------------------
|
443
|
-
MarkdownEngineTest: test_can_set_engine
|
444
|
-
---------------------------------------
|
445
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
446
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
447
57
|
----------------------------------------------------------
|
448
58
|
MarkdownEngineTest: test_default_works_in_multiple_threads
|
449
59
|
----------------------------------------------------------
|
450
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
451
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
452
|
-
-----------------------------------------------------------
|
453
|
-
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
454
|
-
-----------------------------------------------------------
|
455
60
|
[1m[35m (0.1ms)[0m rollback transaction
|
456
61
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
457
|
-
-------------------------------------------------------------
|
458
|
-
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
459
|
-
-------------------------------------------------------------
|
460
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
461
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
462
|
-
----------------------------------------------
|
463
|
-
ExtActionMailerTest: test_monkeypatch_location
|
464
|
-
----------------------------------------------
|
465
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
466
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
467
62
|
------------------------------------
|
468
63
|
MaildownTest: test_no_md_in_response
|
469
64
|
------------------------------------
|
@@ -473,13 +68,3 @@ MaildownTest: test_no_md_in_response
|
|
473
68
|
MaildownTest: test_parse_md_response
|
474
69
|
------------------------------------
|
475
70
|
[1m[35m (0.1ms)[0m rollback transaction
|
476
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
477
|
-
---------------------------------------
|
478
|
-
MarkdownEngineTest: test_can_set_engine
|
479
|
-
---------------------------------------
|
480
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
481
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
482
|
-
----------------------------------------------------------
|
483
|
-
MarkdownEngineTest: test_default_works_in_multiple_threads
|
484
|
-
----------------------------------------------------------
|
485
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
data/test/test_helper.rb
CHANGED
@@ -3,6 +3,7 @@ ENV["RAILS_ENV"] = "test"
|
|
3
3
|
|
4
4
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
5
|
require "rails/test_help"
|
6
|
+
require "kramdown"
|
6
7
|
|
7
8
|
Rails.backtrace_cleaner.remove_silencers!
|
8
9
|
|
@@ -14,7 +15,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
14
15
|
# ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
16
|
# end
|
16
17
|
|
17
|
-
|
18
18
|
def orig_text_response
|
19
19
|
{:body=>"Hi,\n\n##\n\n\nName:\n test_to_yaml_with_time_with_zone_should_not_raise_exception\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L7\nName:\n test_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L20\nName:\n test_roundtrip_serialized_column\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L27\nName:\n test_encode_with_coder\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L32\nName:\n test_psych_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L39\nName:\n test_psych_roundtrip_new_object\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L46\n\n--\n@schneems\n", :content_type=>"text/plain"}.dup
|
20
20
|
end
|
@@ -37,4 +37,4 @@ end
|
|
37
37
|
|
38
38
|
def parses_responses
|
39
39
|
[orig_text_response, parsed_html_response]
|
40
|
-
end
|
40
|
+
end
|
@@ -9,7 +9,8 @@ class ExtActionMailerTest < ActiveSupport::TestCase
|
|
9
9
|
|
10
10
|
test "default types on action mailer base" do
|
11
11
|
expected = [:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :md]
|
12
|
-
|
12
|
+
actual = ActionMailer::Base.view_context_class.default_formats
|
13
|
+
assert_equal actual.include?(:md), true, "Expected #{actual.inspect} to include :md but it did not"
|
13
14
|
end
|
14
15
|
|
15
16
|
test "monkeypatch location" do
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maildown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: kramdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Best practice is to send text/plain && text/html markdown works great
|
@@ -60,14 +60,16 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- MIT-LICENSE
|
64
|
+
- Rakefile
|
65
|
+
- lib/maildown.rb
|
63
66
|
- lib/maildown/ext/action_mailer.rb
|
64
67
|
- lib/maildown/markdown_engine.rb
|
65
68
|
- lib/maildown/md.rb
|
66
69
|
- lib/maildown/version.rb
|
67
|
-
- lib/maildown.rb
|
68
70
|
- lib/tasks/maildown_tasks.rake
|
69
|
-
-
|
70
|
-
- Rakefile
|
71
|
+
- test/dummy/README.rdoc
|
72
|
+
- test/dummy/Rakefile
|
71
73
|
- test/dummy/app/assets/javascripts/application.js
|
72
74
|
- test/dummy/app/assets/stylesheets/application.css
|
73
75
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -76,6 +78,7 @@ files:
|
|
76
78
|
- test/dummy/bin/bundle
|
77
79
|
- test/dummy/bin/rails
|
78
80
|
- test/dummy/bin/rake
|
81
|
+
- test/dummy/config.ru
|
79
82
|
- test/dummy/config/application.rb
|
80
83
|
- test/dummy/config/boot.rb
|
81
84
|
- test/dummy/config/database.yml
|
@@ -92,15 +95,12 @@ files:
|
|
92
95
|
- test/dummy/config/initializers/wrap_parameters.rb
|
93
96
|
- test/dummy/config/locales/en.yml
|
94
97
|
- test/dummy/config/routes.rb
|
95
|
-
- test/dummy/config.ru
|
96
98
|
- test/dummy/db/test.sqlite3
|
97
99
|
- test/dummy/log/test.log
|
98
100
|
- test/dummy/public/404.html
|
99
101
|
- test/dummy/public/422.html
|
100
102
|
- test/dummy/public/500.html
|
101
103
|
- test/dummy/public/favicon.ico
|
102
|
-
- test/dummy/Rakefile
|
103
|
-
- test/dummy/README.rdoc
|
104
104
|
- test/test_helper.rb
|
105
105
|
- test/unit/ext_action_mailer_test.rb
|
106
106
|
- test/unit/maildown_test.rb
|
@@ -115,17 +115,17 @@ require_paths:
|
|
115
115
|
- lib
|
116
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.4.5
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Markdown in your mailbox
|