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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fbb042d5b05b5808b449558be71d6368b078217
4
- data.tar.gz: 7fb8d61976d1b8a372ceda791f2c0469fb2ee007
3
+ metadata.gz: fd5cad1054fdd363671efc2bc743f300808abb13
4
+ data.tar.gz: 884837096744efa812e684aa6bd353b9cf2f2cdd
5
5
  SHA512:
6
- metadata.gz: 62200cf6528749371a68749dcac9f8cbdf122c73608921ba8184c9a094b7dc031bed12f86a4f04ddb4b727ae1905e8bbaa2d81073bb6dd803b8479fc5365dc3d
7
- data.tar.gz: 2d4b1ceda215343801a35643a26805cdee546f638ef84023a251ffac395c2decf3e669177ebe397e6177015b23ec83f120297446bfff45126df8ca7f144ff330
6
+ metadata.gz: 9fb0206f71d1d4b57ae533bc8d6394f6ed35dcc7b9550402994a0b51d0ad813971deba7faaf8b0008a2522b9c7ac6106fbf03ba5cfdbae31ea62ee3f0af83d7a
7
+ data.tar.gz: 86c2b5d7ee0ed95f4f4de8b1533a7c3ac813a7dd3129b1841a6bb373399a106f8bf8a0a0496a750b04a57659c1e3f415549e9a1736adefc762e4932522b77420
data/Rakefile CHANGED
@@ -31,3 +31,6 @@ end
31
31
 
32
32
 
33
33
  task default: :test
34
+
35
+
36
+ require "bundler/gem_tasks"
@@ -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
@@ -13,6 +13,8 @@ module Maildown
13
13
  end
14
14
 
15
15
  def self.default
16
+ require 'kramdown' unless defined? Kramdown
17
+
16
18
  ->(string) { Kramdown::Document.new(string).to_html }
17
19
  end
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module Maildown
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/maildown.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'kramdown'
2
-
3
1
  module Maildown
4
2
  end
5
3
 
@@ -1,54 +1,4 @@
1
-  (0.3ms) begin transaction
2
- -----------------------------------------------------------
3
- ExtActionMailerTest: test_correctly_registered_md_mime_type
4
- -----------------------------------------------------------
5
-  (0.1ms) rollback transaction
6
-  (0.0ms) begin transaction
7
- -------------------------------------------------------------
8
- ExtActionMailerTest: test_default_types_on_action_mailer_base
9
- -------------------------------------------------------------
10
-  (0.0ms) rollback transaction
11
-  (0.0ms) begin transaction
12
- ----------------------------------------------
13
- ExtActionMailerTest: test_monkeypatch_location
14
- ----------------------------------------------
15
-  (0.0ms) rollback transaction
16
-  (0.0ms) begin transaction
17
- ------------------------------------
18
- MaildownTest: test_no_md_in_response
19
- ------------------------------------
20
-  (0.0ms) rollback transaction
21
-  (0.0ms) begin transaction
22
- ------------------------------------
23
- MaildownTest: test_parse_md_response
24
- ------------------------------------
25
-  (0.1ms) rollback transaction
26
-  (0.5ms) begin transaction
27
- -----------------------------------------------------------
28
- ExtActionMailerTest: test_correctly_registered_md_mime_type
29
- -----------------------------------------------------------
30
-  (0.1ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- -------------------------------------------------------------
33
- ExtActionMailerTest: test_default_types_on_action_mailer_base
34
- -------------------------------------------------------------
35
-  (0.1ms) rollback transaction
36
-  (0.1ms) begin transaction
37
- ----------------------------------------------
38
- ExtActionMailerTest: test_monkeypatch_location
39
- ----------------------------------------------
40
-  (0.1ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- ------------------------------------
43
- MaildownTest: test_no_md_in_response
44
- ------------------------------------
45
-  (0.1ms) rollback transaction
46
-  (0.1ms) begin transaction
47
- ------------------------------------
48
- MaildownTest: test_parse_md_response
49
- ------------------------------------
50
-  (0.1ms) rollback transaction
51
-  (0.3ms) begin transaction
1
+  (0.2ms) begin transaction
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
-  (0.0ms) rollback transaction
61
-  (0.0ms) begin transaction
10
+  (0.2ms) rollback transaction
11
+  (0.8ms) begin transaction
62
12
  ----------------------------------------------
63
13
  ExtActionMailerTest: test_monkeypatch_location
64
14
  ----------------------------------------------
65
-  (0.0ms) rollback transaction
66
-  (0.0ms) begin transaction
67
- ------------------------------------
68
- MaildownTest: test_no_md_in_response
69
- ------------------------------------
70
-  (0.1ms) rollback transaction
71
-  (0.0ms) begin transaction
72
- ------------------------------------
73
- MaildownTest: test_parse_md_response
74
- ------------------------------------
75
-  (0.1ms) rollback transaction
76
-  (0.0ms) begin transaction
77
- ---------------------------------------
78
- MarkdownEngineTest: test_can_set_engine
79
- ---------------------------------------
80
-  (0.1ms) rollback transaction
15
+  (0.3ms) rollback transaction
81
16
   (0.2ms) begin transaction
82
- -----------------------------------------------------------
83
- ExtActionMailerTest: test_correctly_registered_md_mime_type
84
- -----------------------------------------------------------
85
-  (0.0ms) rollback transaction
86
-  (0.1ms) begin transaction
87
- -------------------------------------------------------------
88
- ExtActionMailerTest: test_default_types_on_action_mailer_base
89
- -------------------------------------------------------------
90
-  (0.0ms) rollback transaction
91
-  (0.1ms) begin transaction
92
- ----------------------------------------------
93
- ExtActionMailerTest: test_monkeypatch_location
94
- ----------------------------------------------
95
-  (0.0ms) rollback transaction
96
-  (0.0ms) begin transaction
97
17
  ------------------------------------
98
18
  MaildownTest: test_no_md_in_response
99
- ------------------------------------
100
-  (0.0ms) rollback transaction
101
-  (0.1ms) begin transaction
102
- ------------------------------------
103
- MaildownTest: test_parse_md_response
104
19
  ------------------------------------
105
20
   (0.1ms) rollback transaction
106
-  (0.0ms) begin transaction
107
- ---------------------------------------
108
- MarkdownEngineTest: test_can_set_engine
109
- ---------------------------------------
110
-  (0.1ms) rollback transaction
111
-  (0.2ms) begin transaction
112
- -----------------------------------------------------------
113
- ExtActionMailerTest: test_correctly_registered_md_mime_type
114
- -----------------------------------------------------------
115
-  (0.0ms) rollback transaction
116
-  (0.1ms) begin transaction
117
- -------------------------------------------------------------
118
- ExtActionMailerTest: test_default_types_on_action_mailer_base
119
- -------------------------------------------------------------
120
-  (0.0ms) rollback transaction
121
21
   (0.1ms) begin transaction
122
- ----------------------------------------------
123
- ExtActionMailerTest: test_monkeypatch_location
124
- ----------------------------------------------
125
-  (0.0ms) rollback transaction
126
-  (0.0ms) begin transaction
127
- ------------------------------------
128
- MaildownTest: test_no_md_in_response
129
- ------------------------------------
130
-  (0.0ms) rollback transaction
131
-  (0.1ms) begin transaction
132
- ------------------------------------
133
- MaildownTest: test_parse_md_response
134
- ------------------------------------
135
-  (0.1ms) rollback transaction
136
-  (0.0ms) begin transaction
137
- ---------------------------------------
138
- MarkdownEngineTest: test_can_set_engine
139
- ---------------------------------------
140
-  (0.0ms) rollback transaction
141
-  (0.3ms) begin transaction
142
- -----------------------------------------------------------
143
- ExtActionMailerTest: test_correctly_registered_md_mime_type
144
- -----------------------------------------------------------
145
-  (0.1ms) rollback transaction
146
-  (0.0ms) begin transaction
147
- -------------------------------------------------------------
148
- ExtActionMailerTest: test_default_types_on_action_mailer_base
149
- -------------------------------------------------------------
150
-  (0.0ms) rollback transaction
151
-  (0.0ms) begin transaction
152
- ----------------------------------------------
153
- ExtActionMailerTest: test_monkeypatch_location
154
- ----------------------------------------------
155
-  (0.0ms) rollback transaction
156
-  (0.0ms) begin transaction
157
- ------------------------------------
158
- MaildownTest: test_no_md_in_response
159
- ------------------------------------
160
-  (0.0ms) rollback transaction
161
-  (0.0ms) begin transaction
162
22
  ------------------------------------
163
23
  MaildownTest: test_parse_md_response
164
24
  ------------------------------------
165
-  (0.1ms) rollback transaction
166
-  (0.0ms) begin transaction
167
- ---------------------------------------
168
- MarkdownEngineTest: test_can_set_engine
169
- ---------------------------------------
170
-  (0.0ms) rollback transaction
171
-  (0.4ms) begin transaction
172
- -----------------------------------------------------------
173
- ExtActionMailerTest: test_correctly_registered_md_mime_type
174
- -----------------------------------------------------------
175
25
   (0.1ms) rollback transaction
176
26
   (0.1ms) begin transaction
177
- -------------------------------------------------------------
178
- ExtActionMailerTest: test_default_types_on_action_mailer_base
179
- -------------------------------------------------------------
180
-  (0.0ms) rollback transaction
181
-  (0.0ms) begin transaction
182
- ----------------------------------------------
183
- ExtActionMailerTest: test_monkeypatch_location
184
- ----------------------------------------------
185
-  (0.0ms) rollback transaction
186
-  (0.0ms) begin transaction
187
- ------------------------------------
188
- MaildownTest: test_no_md_in_response
189
- ------------------------------------
190
-  (0.1ms) rollback transaction
191
-  (0.1ms) begin transaction
192
- ------------------------------------
193
- MaildownTest: test_parse_md_response
194
- ------------------------------------
195
-  (0.1ms) rollback transaction
196
-  (0.0ms) begin transaction
197
27
  ---------------------------------------
198
28
  MarkdownEngineTest: test_can_set_engine
199
29
  ---------------------------------------
200
30
   (0.1ms) rollback transaction
201
-  (0.0ms) begin transaction
202
- --------------------------------------------
203
- MarkdownEngineTest: test_multiple_threads_yo
204
- --------------------------------------------
205
-  (0.0ms) rollback transaction
206
-  (0.2ms) begin transaction
207
- -----------------------------------------------------------
208
- ExtActionMailerTest: test_correctly_registered_md_mime_type
209
- -----------------------------------------------------------
210
-  (0.0ms) rollback transaction
211
-  (0.0ms) begin transaction
212
- -------------------------------------------------------------
213
- ExtActionMailerTest: test_default_types_on_action_mailer_base
214
- -------------------------------------------------------------
215
-  (0.0ms) rollback transaction
216
-  (0.0ms) begin transaction
217
- ----------------------------------------------
218
- ExtActionMailerTest: test_monkeypatch_location
219
- ----------------------------------------------
220
-  (0.0ms) rollback transaction
221
-  (0.0ms) begin transaction
222
- ------------------------------------
223
- MaildownTest: test_no_md_in_response
224
- ------------------------------------
225
-  (0.0ms) rollback transaction
226
-  (0.0ms) begin transaction
227
- ------------------------------------
228
- MaildownTest: test_parse_md_response
229
- ------------------------------------
230
-  (0.1ms) rollback transaction
231
-  (0.0ms) begin transaction
232
- ---------------------------------------
233
- MarkdownEngineTest: test_can_set_engine
234
- ---------------------------------------
235
-  (0.0ms) rollback transaction
236
-  (0.0ms) begin transaction
237
- --------------------------------------------
238
- MarkdownEngineTest: test_multiple_threads_yo
239
- --------------------------------------------
240
-  (0.0ms) rollback transaction
241
-  (0.2ms) begin transaction
242
- -----------------------------------------------------------
243
- ExtActionMailerTest: test_correctly_registered_md_mime_type
244
- -----------------------------------------------------------
245
-  (0.0ms) rollback transaction
246
-  (0.0ms) begin transaction
247
- -------------------------------------------------------------
248
- ExtActionMailerTest: test_default_types_on_action_mailer_base
249
- -------------------------------------------------------------
250
-  (0.0ms) rollback transaction
251
-  (0.0ms) begin transaction
252
- ----------------------------------------------
253
- ExtActionMailerTest: test_monkeypatch_location
254
- ----------------------------------------------
255
-  (0.0ms) rollback transaction
256
-  (0.0ms) begin transaction
257
- ------------------------------------
258
- MaildownTest: test_no_md_in_response
259
- ------------------------------------
260
-  (0.0ms) rollback transaction
261
-  (0.0ms) begin transaction
262
- ------------------------------------
263
- MaildownTest: test_parse_md_response
264
- ------------------------------------
265
-  (0.1ms) rollback transaction
266
-  (0.0ms) begin transaction
267
- ---------------------------------------
268
- MarkdownEngineTest: test_can_set_engine
269
- ---------------------------------------
270
-  (0.0ms) rollback transaction
271
-  (0.0ms) begin transaction
272
- ----------------------------------------------------------
273
- MarkdownEngineTest: test_default_works_in_multiple_threads
274
- ----------------------------------------------------------
275
-  (0.0ms) rollback transaction
276
31
   (0.2ms) begin transaction
277
- -----------------------------------------------------------
278
- ExtActionMailerTest: test_correctly_registered_md_mime_type
279
- -----------------------------------------------------------
280
-  (0.0ms) rollback transaction
281
-  (0.0ms) begin transaction
282
- -------------------------------------------------------------
283
- ExtActionMailerTest: test_default_types_on_action_mailer_base
284
- -------------------------------------------------------------
285
-  (0.0ms) rollback transaction
286
-  (0.0ms) begin transaction
287
- ----------------------------------------------
288
- ExtActionMailerTest: test_monkeypatch_location
289
- ----------------------------------------------
290
-  (0.0ms) rollback transaction
291
-  (0.0ms) begin transaction
292
- ------------------------------------
293
- MaildownTest: test_no_md_in_response
294
- ------------------------------------
295
-  (0.0ms) rollback transaction
296
-  (0.0ms) begin transaction
297
- ------------------------------------
298
- MaildownTest: test_parse_md_response
299
- ------------------------------------
300
-  (0.1ms) rollback transaction
301
-  (0.0ms) begin transaction
302
- ---------------------------------------
303
- MarkdownEngineTest: test_can_set_engine
304
- ---------------------------------------
305
-  (0.0ms) rollback transaction
306
-  (0.0ms) begin transaction
307
32
  ----------------------------------------------------------
308
33
  MarkdownEngineTest: test_default_works_in_multiple_threads
309
34
  ----------------------------------------------------------
310
35
   (0.2ms) rollback transaction
311
-  (0.2ms) begin transaction
312
- -----------------------------------------------------------
313
- ExtActionMailerTest: test_correctly_registered_md_mime_type
314
- -----------------------------------------------------------
315
-  (0.0ms) rollback transaction
316
-  (0.0ms) begin transaction
317
- -------------------------------------------------------------
318
- ExtActionMailerTest: test_default_types_on_action_mailer_base
319
- -------------------------------------------------------------
320
-  (0.0ms) rollback transaction
321
-  (0.0ms) begin transaction
322
- ----------------------------------------------
323
- ExtActionMailerTest: test_monkeypatch_location
324
- ----------------------------------------------
325
-  (0.0ms) rollback transaction
326
-  (0.0ms) begin transaction
327
- ------------------------------------
328
- MaildownTest: test_no_md_in_response
329
- ------------------------------------
330
-  (0.0ms) rollback transaction
331
-  (0.0ms) begin transaction
332
- ------------------------------------
333
- MaildownTest: test_parse_md_response
334
- ------------------------------------
335
-  (0.1ms) rollback transaction
336
-  (0.0ms) begin transaction
337
- ---------------------------------------
338
- MarkdownEngineTest: test_can_set_engine
339
- ---------------------------------------
340
-  (0.0ms) rollback transaction
341
36
   (0.1ms) begin transaction
342
- ----------------------------------------------------------
343
- MarkdownEngineTest: test_default_works_in_multiple_threads
344
- ----------------------------------------------------------
345
-  (0.2ms) rollback transaction
346
-  (0.2ms) begin transaction
347
- -----------------------------------------------------------
348
- ExtActionMailerTest: test_correctly_registered_md_mime_type
349
- -----------------------------------------------------------
350
-  (0.0ms) rollback transaction
351
-  (0.0ms) begin transaction
352
- -------------------------------------------------------------
353
- ExtActionMailerTest: test_default_types_on_action_mailer_base
354
- -------------------------------------------------------------
355
-  (0.0ms) rollback transaction
356
-  (0.0ms) begin transaction
357
- ----------------------------------------------
358
- ExtActionMailerTest: test_monkeypatch_location
359
- ----------------------------------------------
360
-  (0.0ms) rollback transaction
361
-  (0.0ms) begin transaction
362
- ------------------------------------
363
- MaildownTest: test_no_md_in_response
364
- ------------------------------------
365
-  (0.0ms) rollback transaction
366
-  (0.0ms) begin transaction
367
- ------------------------------------
368
- MaildownTest: test_parse_md_response
369
- ------------------------------------
370
-  (0.1ms) rollback transaction
371
-  (0.0ms) begin transaction
372
- ---------------------------------------
373
- MarkdownEngineTest: test_can_set_engine
374
- ---------------------------------------
375
-  (0.1ms) rollback transaction
376
-  (0.0ms) begin transaction
377
- ----------------------------------------------------------
378
- MarkdownEngineTest: test_default_works_in_multiple_threads
379
- ----------------------------------------------------------
380
-  (0.1ms) rollback transaction
381
-  (0.2ms) begin transaction
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
   (0.0ms) rollback transaction
396
51
   (0.0ms) begin transaction
397
- ------------------------------------
398
- MaildownTest: test_no_md_in_response
399
- ------------------------------------
400
-  (0.0ms) rollback transaction
401
-  (0.1ms) begin transaction
402
- ------------------------------------
403
- MaildownTest: test_parse_md_response
404
- ------------------------------------
405
-  (0.1ms) rollback transaction
406
-  (0.0ms) begin transaction
407
52
  ---------------------------------------
408
53
  MarkdownEngineTest: test_can_set_engine
409
54
  ---------------------------------------
410
55
   (0.0ms) rollback transaction
411
-  (0.0ms) begin transaction
412
- ----------------------------------------------------------
413
- MarkdownEngineTest: test_default_works_in_multiple_threads
414
- ----------------------------------------------------------
415
-  (0.0ms) rollback transaction
416
-  (0.2ms) begin transaction
417
- -----------------------------------------------------------
418
- ExtActionMailerTest: test_correctly_registered_md_mime_type
419
- -----------------------------------------------------------
420
-  (0.0ms) rollback transaction
421
-  (0.0ms) begin transaction
422
- -------------------------------------------------------------
423
- ExtActionMailerTest: test_default_types_on_action_mailer_base
424
- -------------------------------------------------------------
425
-  (0.0ms) rollback transaction
426
-  (0.0ms) begin transaction
427
- ----------------------------------------------
428
- ExtActionMailerTest: test_monkeypatch_location
429
- ----------------------------------------------
430
-  (0.0ms) rollback transaction
431
-  (0.0ms) begin transaction
432
- ------------------------------------
433
- MaildownTest: test_no_md_in_response
434
- ------------------------------------
435
-  (0.0ms) rollback transaction
436
-  (0.0ms) begin transaction
437
- ------------------------------------
438
- MaildownTest: test_parse_md_response
439
- ------------------------------------
440
-  (0.1ms) rollback transaction
441
-  (0.0ms) begin transaction
442
- ---------------------------------------
443
- MarkdownEngineTest: test_can_set_engine
444
- ---------------------------------------
445
-  (0.0ms) rollback transaction
446
-  (0.0ms) begin transaction
56
+  (0.1ms) begin transaction
447
57
  ----------------------------------------------------------
448
58
  MarkdownEngineTest: test_default_works_in_multiple_threads
449
59
  ----------------------------------------------------------
450
-  (0.0ms) rollback transaction
451
-  (0.2ms) begin transaction
452
- -----------------------------------------------------------
453
- ExtActionMailerTest: test_correctly_registered_md_mime_type
454
- -----------------------------------------------------------
455
60
   (0.1ms) rollback transaction
456
61
   (0.0ms) begin transaction
457
- -------------------------------------------------------------
458
- ExtActionMailerTest: test_default_types_on_action_mailer_base
459
- -------------------------------------------------------------
460
-  (0.0ms) rollback transaction
461
-  (0.0ms) begin transaction
462
- ----------------------------------------------
463
- ExtActionMailerTest: test_monkeypatch_location
464
- ----------------------------------------------
465
-  (0.0ms) rollback transaction
466
-  (0.0ms) begin transaction
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
   (0.1ms) rollback transaction
476
-  (0.0ms) begin transaction
477
- ---------------------------------------
478
- MarkdownEngineTest: test_can_set_engine
479
- ---------------------------------------
480
-  (0.0ms) rollback transaction
481
-  (0.0ms) begin transaction
482
- ----------------------------------------------------------
483
- MarkdownEngineTest: test_default_works_in_multiple_threads
484
- ----------------------------------------------------------
485
-  (0.0ms) 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
- assert_equal expected, ActionMailer::Base.view_context_class.default_formats
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.2
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: 2013-08-28 00:00:00.000000000 Z
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
- - MIT-LICENSE
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.0.3
128
+ rubygems_version: 2.4.5
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Markdown in your mailbox