mjml 0.0.2 → 0.0.3

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: 8cec8c1d702583ace1b455a66ba18e37b1b2cee8
4
- data.tar.gz: c7af250352177702622ed25cc9647c3fd4db1f14
3
+ metadata.gz: 074c6418fb34a7c3136bd5993784e6da2c3f63cc
4
+ data.tar.gz: 3767d0b093a9363680ee3308b218f8f3fea82a06
5
5
  SHA512:
6
- metadata.gz: 9c7cc195ecddb7d4be02ece19e038f66d7053648571ef3ebfc95cf0548350ecfd3ba552cf9d96efd90e918d2b3efe67d533e61ab6f6f638a8a2eead051554f54
7
- data.tar.gz: 93a99c4705edfe03e7fc21677f080e9ba2144888d98498100b4ed9d0b853e5495f59d29219f556e3bbec7ecb86c002ae7626e5710e5fe29a8640265bf2f40aba
6
+ metadata.gz: 5c96c033e12d07ec3114788249baa853b2df5b97411c138777b36489a190aac2f23983282a83f669908d7a1b9c2347141539abe25da7597804a8c1af2d27855f
7
+ data.tar.gz: 1e648f5649e72e8f57afb1d985ba029ed3ed292690fd3edc4f0203f9794004651053ed3e05d43b5332d077f76c1ece9aa25d8de995587070efa74bd696475a91
data/README.md CHANGED
@@ -30,7 +30,7 @@ end
30
30
 
31
31
  You have to install mjml compiler via `npm install mjml` to use this gem
32
32
 
33
- The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use heroku you can config [multiple buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) to make it support nodejs
33
+ In case of you don't set `exec_path`, The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use heroku you can config [multiple buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) to make it support nodejs
34
34
 
35
35
  #### Mjmj#render
36
36
 
@@ -44,7 +44,7 @@ The `exec_path` will be set default as `node_modules/mjml/bin/mjml`. If you use
44
44
  You can use in mailer
45
45
 
46
46
  ```ruby
47
- body = Mjml.render("#{Dir.pwd}/app/views/template", { name: 'Mjml parser' }) # => template.mjml
47
+ body = Mjml.render("#{Dir.pwd}/app/views/template.mjml", { name: 'Mjml parser' })
48
48
  mail(to: xxx, subject: xxx, body: body, content_type: 'text/html')
49
49
  ```
50
50
 
data/lib/mjml/render.rb CHANGED
@@ -23,7 +23,7 @@ module Mjml
23
23
  end
24
24
 
25
25
  def generate_html_file
26
- `#{Config.exec_path} #{mjml_path} -o #{html_path}`
26
+ `#{Config.exec_path.chomp} #{mjml_path} -o #{html_path}`
27
27
  end
28
28
 
29
29
  def read_html_file
data/lib/mjml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mjml
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mjml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy