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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0143e62d3254a60443d75b197c1ed2ae2d0f610c
4
- data.tar.gz: 4c2c46c1f739c5af83be6c82941179c8560dc7a2
3
+ metadata.gz: bdbd311dcdbb6f67e265500eedc079f45afa5fa1
4
+ data.tar.gz: 5c939a2cb0dca35b5295e4882b7d61a9931bf940
5
5
  SHA512:
6
- metadata.gz: 53a8b1731e42529d766dd33b0d24ff8ffdf025735db1cee2386b617afdcd6cc2cb738722f1c634c5fe741b081ea9923bb89327349fe44d3528746e97e34084b8
7
- data.tar.gz: 171c12ba3211830db6499664ec72e464151e2882047ffa98a5e2f5d6ced3ca7da8d997c2bc512ee07a9dfba4eaf5b58abecbbd409de6d8f68fa51b5c19f85bca
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, &block)
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
@@ -1,3 +1,3 @@
1
1
  module Mjml
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
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.6
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-10-19 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler