mjml 0.0.5 → 0.0.6
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 +1 -1
- 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: 0143e62d3254a60443d75b197c1ed2ae2d0f610c
|
4
|
+
data.tar.gz: 4c2c46c1f739c5af83be6c82941179c8560dc7a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a8b1731e42529d766dd33b0d24ff8ffdf025735db1cee2386b617afdcd6cc2cb738722f1c634c5fe741b081ea9923bb89327349fe44d3528746e97e34084b8
|
7
|
+
data.tar.gz: 171c12ba3211830db6499664ec72e464151e2882047ffa98a5e2f5d6ced3ca7da8d997c2bc512ee07a9dfba4eaf5b58abecbbd409de6d8f68fa51b5c19f85bca
|
data/lib/mjml/mailer.rb
CHANGED
@@ -3,7 +3,7 @@ module Mjml
|
|
3
3
|
def mjml(headers, &block)
|
4
4
|
scope = Mjml::Scope.new(self, headers[:template_variables])
|
5
5
|
|
6
|
-
headers[:subject] ||= I18n.t("mailers.#{mailer_name}.#{action_name}.subject")
|
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
9
|
headers[:body] = mjml_content(headers, scope)
|
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.6
|
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-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|