bootstrap-email 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bootstrap-email/action_mailer.rb +11 -9
- 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: c3ae7bb3c555b31ee3611cedd6c5ed5d4d2c79acd46c4882b29d060a1d5d31a2
|
|
4
|
+
data.tar.gz: 1c51d7adf429cc7389b588ce00fa7a30a79279c9deae0fbf1bcfe53b31915384
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 435ea12fecc4b9922c1c9c301dff507efeb789087d83fa85ca43976f28572b0914b317b0e1b627e656a2cf77b77f65fef0ce5118759fab7c948b24a3eb16a567
|
|
7
|
+
data.tar.gz: b509f82549a68c3c378d00e0b39454dc3a0288e0a0b429788541a65f8264e08d6b3edd341948b46306e3d5a5a3e12386d2ce3d6d64a5f3ca7b46ca84ed48aabe
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.4
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
ActiveSupport.on_load(:action_mailer) do
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
ActiveSupport.on_load(:action_mailer, {yield: true}) do |action_mailer|
|
|
2
|
+
action_mailer.class_eval do # To support Rails less than 6
|
|
3
|
+
# sit in the middle and compile the html
|
|
4
|
+
def bootstrap_mail(*args)
|
|
5
|
+
bootstrap = BootstrapEmail::Compiler.new(mail(*args) { |format| format.html { render layout: 'layouts/bootstrap-mailer.html.erb' } })
|
|
6
|
+
bootstrap.perform_full_compile
|
|
7
|
+
end
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
def make_bootstrap_mail(*args, &block)
|
|
10
|
+
bootstrap = BootstrapEmail::Compiler.new(mail(*args, &block))
|
|
11
|
+
bootstrap.perform_full_compile
|
|
12
|
+
end
|
|
11
13
|
end
|
|
12
14
|
end
|
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: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
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-01-
|
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|