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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ff92b3118bdf891ae8dbea21652e1aabf28db6d
4
- data.tar.gz: 1078cd1690c20cc325b35fd615ddb6531313cd13
3
+ metadata.gz: 0143e62d3254a60443d75b197c1ed2ae2d0f610c
4
+ data.tar.gz: 4c2c46c1f739c5af83be6c82941179c8560dc7a2
5
5
  SHA512:
6
- metadata.gz: 642165a8c23267eb6af96688a0f4cfbaab33ca7076a562a5a86d67164629172e7f9e6dfe68c5108803e2bcb1b2443128fa721a837c7a29320fe2a1fc5bf82475
7
- data.tar.gz: c9d3ec46da48179a6c1ca543ed2d16c22f6174529980bf69337c012b1950596a60c1d7c50856613d1f57765e0be895e4eddf06fdb2e3f180f0f127751cf08364
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
@@ -1,3 +1,3 @@
1
1
  module Mjml
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-06-02 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler