maildown 3.1.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maildown/ext/action_mailer.rb +0 -3
- data/lib/maildown/ext/action_view.rb +14 -1
- data/lib/maildown/markdown_engine.rb +1 -1
- data/lib/maildown/version.rb +1 -1
- data/lib/maildown.rb +6 -2
- data/test/dummy/app/assets/config/manifest.js +2 -0
- data/test/dummy/log/test.log +3269 -27566
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5U/5UZ4whVZrVX9o6_7aV52ZpZuzCH5PnIMltLo5g3ub8o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8J/8JkinxDDCtIZEyzmlgjLZO4Z_KtzcpDScA5gMCGG4C0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/C_/C_l4c5OqiMM2Ya-B04gkwgk_S10VjOgOBT3RvbtE4BU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/Sg/SgGPXJGAAT9BnlD8lOEY30CrwX2Ww8GNvkz1_06BUuY.cache → v4.0.0/DK/DKgjFvqIa-WACbhup2oOzilexYZVUXMbYmH9uC4UYjU.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Oy/OyGfok5opHJ6Xm-CrE1ZxUlL9Ikfbqq1fSzC86fV1TA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VU/VUSDewHbv3IH31pWgOlOYSI64SLydDL2y6KZllkwwKA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Vp/VprJsb_LK4tumpqdO7EL_tNsplvcxxFwkryDQAZIDFM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/YE/YEr_uBcFiQmO_i3e4M7dZNRMv-aL6KmNP0eHSksNoxM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/hz/hzfOEnv86cyXvfNc1ID57ERgXFQbUWy0mA_2kb8RMf8.cache → v4.0.0/c4/c4QbGmy6BNAR3Hw0TBCDOgEV2ohWByGvWYmPzNrPEpk.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/A3/A3kbR-mx77BuTQCXH_ow0ly8c8774_qjKkbRwg7o7Z8.cache → v4.0.0/ed/ed5ibb_FPCpbrHg8V8WDGis-qYAH24bRpSxrlALfUTA.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/XL/XL_FTz0ksBA62QtuUFTEXWp6sbxjcinWNxVRvwewdVQ.cache → v4.0.0/eq/eqOM3bBQop_4iFUyklzoHsKxWHGBjcNFz-X-t6XgQh4.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hb/hbxVXwx9VU5r2S5dCxWG1WF7oRslviBB4cUvA8MYScQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m_/m_Fw2uiD7m6iZFs9Pjv-uQz4CavXwqCJKGNlDJpMrAc.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/on/ontMsQ90BDZAitJUuEfQDEANOXnCAxM6r6Eau7g6Rk4.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pN/PNauVK2MlJ3e1qY8ohIeBS1x9od3oFmeSxI_pKCKm6M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pN/pNSdgouaf4GV531Y6travfqHkQKmobvDn4J3BWDmPy4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/zj/zjBh6TAy1PfMo7ob2ifDemYXiSU1gF4Hed-g-jXHYuQ.cache → v4.0.0/qU/qUaCq5qVBDMulV-Ur4rlgyxw-oCYAJtab-o0sf43PDA.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/tv/tvLxL5X3y-xY7lF__XmeZ4ki7oz3vLvvWDnR9uLIgKQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/bG/bGAz7aV3zTfJzCyTFZJ3JHHiggWMmTL8_sjwIrZof48.cache → v4.0.0/vA/vAatR5gZowEAfL79M7H5WwJnFo8B-iQApPEUNu5QYr4.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0 → v4.0.0}/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/{v3.0/lL/lLPqCyZWuBhuo1Cc2h2NkRzr8qk4bog-PvgUZj9eD9A.cache → v4.0.0/xG/xGL8mEeMD5cOa6NOTA9ENl6c1d214rIwg4US9FtfdSI.cache} +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xY/xYc7TKbwhDYYhnMZQeZCcbNWqkzAXJUJDHOQMT9SzV8.cache +1 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/ext_action_mailer_test.rb +0 -4
- data/test/unit/markdown_engine_test.rb +7 -0
- metadata +110 -78
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ky/KyPopZ9bAZSzDxl0-5H4oSWt6v3Hscx-IqtKCez5N6M.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LQ/LQc7CZbqyqSrstnlW82z5LYgsBPDE-bOnyAvkzwGyZE.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qs/QsuZC0N-5s9LoiQKU5bmb9ddCBVsqqcG23hRRSzaNzI.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hN/hNuDCLtFB8vWAB97u08o2jUz_JOaHtcRL85mfok6rKE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xq/xqUVzvrduT5J0NftyOoRYuGT8PShk-KqKJrZbf_u63o.cache +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ee105c6605948b1f91d11fc5b0baa6d4a88bd352495b5a496119048852fae9
|
4
|
+
data.tar.gz: 52db7d65af72ec54cff434c301b308aec9d37169cfc364a75b177896a6c50d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 485d04e2f03335b40e7719090eecc62f0029ee320f084db190f30b598d211caa839c95e0414aad8ad462d51f3aa9e05f2a3dd0d4cfcd9e406bb308782f42fe97
|
7
|
+
data.tar.gz: 548bf6bb27cb47b8d3b45ed661fd4a40a06983c5e1887ff0633986c6b284bb7ebf589902c334b7173e8644d88f26cfc42f707e846781c44c58491b285e25123f
|
@@ -1,6 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
if !defined?(ActionView::OptimizedFileSystemResolver)
|
4
|
+
module ActionView
|
5
|
+
# https://github.com/codetriage/maildown/issues/59
|
6
|
+
#
|
7
|
+
# extract_handler_and_format_and_variant was removed in https://github.com/rails/rails/commit/2be8d3ebf85e26e936a7717b968737ee333d95bd
|
8
|
+
# OptimizedFileSystemResolver was removed in https://github.com/rails/rails/commit/faac734387124c6d780dbfcfdab721b2f26ce865
|
9
|
+
class OptimizedFileSystemResolver < FileSystemResolver
|
10
|
+
def extract_handler_and_format_and_variant(template)
|
11
|
+
details = @path_parser.parse(template)
|
12
|
+
[details.handler, details.format, details.variant]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
4
17
|
|
5
18
|
# This monkeypatch allows the use of `.md.erb` file extensions
|
6
19
|
# in addition to `.md+erb` and `.md`
|
data/lib/maildown/version.rb
CHANGED
data/lib/maildown.rb
CHANGED
@@ -17,6 +17,10 @@ module Maildown
|
|
17
17
|
end
|
18
18
|
|
19
19
|
require 'maildown/markdown_engine'
|
20
|
-
|
21
|
-
require 'maildown/ext/
|
20
|
+
ActiveSupport.on_load(:action_mailer) do
|
21
|
+
require 'maildown/ext/action_mailer'
|
22
|
+
end
|
23
|
+
ActiveSupport.on_load(:action_view) do
|
24
|
+
require 'maildown/ext/action_view'
|
25
|
+
end
|
22
26
|
require 'maildown/handlers/markdown'
|