mjml 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mjml/mailer.rb +3 -3
- data/lib/mjml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdbd311dcdbb6f67e265500eedc079f45afa5fa1
|
4
|
+
data.tar.gz: 5c939a2cb0dca35b5295e4882b7d61a9931bf940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2770a3a305f069dc9a48f99856d451d813b88990afb2e072a95c95c457f6b8203494b93851b17cb197916438a472423cfecb56d8b83de4552f6a5004d1ac5da4
|
7
|
+
data.tar.gz: e9b35edea80721cf74f3b67e491bbcc5126f0bf493ce51ee85861d9db62b27ae1459be8edb59209a15030d43cf0bbbb2a75e0a610beda099f0cae2adfd3350ee
|
data/lib/mjml/mailer.rb
CHANGED
@@ -6,10 +6,10 @@ module Mjml
|
|
6
6
|
headers[:subject] ||= I18n.t("mailers.#{mailer_name}.#{action_name}.subject", headers[:subject_variables])
|
7
7
|
headers[:template_name] ||= action_name
|
8
8
|
headers[:template_path] ||= "#{Dir.pwd}/app/views/mailers/#{mailer_name}"
|
9
|
-
headers[:body] = mjml_content(headers, scope)
|
10
|
-
headers[:content_type] = "text/html"
|
11
9
|
|
12
|
-
mail(headers
|
10
|
+
mail(headers) do |format|
|
11
|
+
format.html { mjml_content(headers, scope) }
|
12
|
+
end
|
13
13
|
end
|
14
14
|
|
15
15
|
def mailer_name
|
data/lib/mjml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mjml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MQuy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|