maildown 3.2.0 → 3.3.0

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
  SHA256:
3
- metadata.gz: 15216b9c3c117a02eb4b24b3f5c691054ce4303e2b46a86c19a05f712efc4bb6
4
- data.tar.gz: 99bb1b84ac4125e38c96a257f9261270dd2fa35f118df07193c634bdac386823
3
+ metadata.gz: 8b1c026eb429b1729325cff1a5030c020a18cedbd61a8b4b22d20a00ab6a552d
4
+ data.tar.gz: bf4d0f8614c303b9e363a6ca409d25775f952da0b0aac0e433f1df7d6b26e389
5
5
  SHA512:
6
- metadata.gz: 34ec1dbcab97af0f7aa50603ddc113df11c9f8b4eccf42095193e038ac2b427aac44cfcc023842d18b6070487d007ca4dbe0a34875687a6ac271efdbf5a5832a
7
- data.tar.gz: 86c864b03330f577406737517a5bd15afdb4cf496d2d07dafbc897b19047030ff9d1d8641ac176b365f8a9162717246060a3b39192eef2ca687a6cbd1b17f101
6
+ metadata.gz: 1626def673703a8c13fbe38467ca76fcabe69fa3817b5899e0dccb315f5018c69f1f8086dc5ca328ad4400afea8955cf2387e15838127c32e9adeecb7002e083
7
+ data.tar.gz: 072b0f363e3bf0eaac0bdabf2d13a8a3dfc00f14006be5e4068084e188eb4cb78197c392b479b2737640834a3296c82a28b00bf9badd91f39afbdf26971eb65d
data/lib/maildown.rb CHANGED
@@ -17,6 +17,10 @@ module Maildown
17
17
  end
18
18
 
19
19
  require 'maildown/markdown_engine'
20
- require 'maildown/ext/action_mailer'
21
- require 'maildown/ext/action_view'
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'
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_mailer'
4
- require 'action_mailer/base'
5
-
6
3
  # Monkeypatch to allow mailer to auto generate text/html
7
4
  #
8
5
  # If you generate a mailer action, by default it will only
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_view'
4
-
5
3
  # This monkeypatch allows the use of `.md.erb` file extensions
6
4
  # in addition to `.md+erb` and `.md`
7
5
  module ActionView
@@ -1,3 +1,3 @@
1
1
  module Maildown
2
- VERSION = "3.2.0"
2
+ VERSION = "3.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maildown
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - schneems
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -187,7 +187,7 @@ homepage: https://www.github.com/schneems/maildown
187
187
  licenses:
188
188
  - MIT
189
189
  metadata: {}
190
- post_install_message:
190
+ post_install_message:
191
191
  rdoc_options: []
192
192
  require_paths:
193
193
  - lib
@@ -202,8 +202,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
- rubygems_version: 3.1.2
206
- signing_key:
205
+ rubygems_version: 3.1.4
206
+ signing_key:
207
207
  specification_version: 4
208
208
  summary: Markdown in your mailbox
209
209
  test_files: