bootstrap-email 1.0.0.alpha2 → 1.0.0.alpha2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bootstrap-email/rails/action_mailer.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754525440d7ea29f8ca2fbd07a4c54af48abf49bb3a08e6be127c4b287cbb94b
|
4
|
+
data.tar.gz: e6164558bc455056434601be51978b0cae979bb4581238a4325c53da493cbb4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 436b384bb50dc14c83b4d2903af0c5caeeecc3ef99e618383fb7aa05bac1ca43e0bde09619c229806ae7926adc762296ae7c70f3dfa7c7c10a79c2702a2d40e4
|
7
|
+
data.tar.gz: bb4e1834510e3a833a518a559d460972637012f6e3b1771fc46238af972b8df0fcd2a1ebfbd2c5d76eedb8eaa532600e4fc9746856de670ddab4645977da8d95
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha2
|
1
|
+
1.0.0.alpha2.1
|
@@ -2,8 +2,12 @@ ActiveSupport.on_load(:action_mailer, {yield: true}) do |action_mailer|
|
|
2
2
|
action_mailer.class_eval do # To support Rails less than 6
|
3
3
|
# sit in the middle and compile the html
|
4
4
|
def bootstrap_mail(*args, &block)
|
5
|
-
|
6
|
-
|
5
|
+
mail_message = mail(*args, &block)
|
6
|
+
# if you override the #mail method in you ApplicationMailer you may intentionally return something other than a mail message
|
7
|
+
if mail_message
|
8
|
+
bootstrap = BootstrapEmail::Compiler.new(mail_message, type: :rails)
|
9
|
+
bootstrap.perform_full_compile
|
10
|
+
end
|
7
11
|
end
|
8
12
|
alias bootstrap_email bootstrap_mail
|
9
13
|
alias make_bootstrap_mail bootstrap_mail
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha2
|
4
|
+
version: 1.0.0.alpha2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Yamartino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|