mrml-rails 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: da615a6e03a979325fe8065d70d78fd8556983acff76361ef055a7ea5ade1646
4
- data.tar.gz: 117e8c09135a11b0090620a887aede0ef5987ab767885b8e9c7256270ab52936
3
+ metadata.gz: 1fafd99505d730e12f41ae208875c8527abc5445144a464dc2bc9b7f74d2723b
4
+ data.tar.gz: befa481a45c889b597f8307c6bdcd4cdc141fb53055762319cc6e7fb9a2b7bb3
5
5
  SHA512:
6
- metadata.gz: e99cbee5192e69ce27452d5481d072cc85c62cc0e2c4248f48dc045196cbb679c875d27b7c5c24a6f2e54d879df8dca6c20ef60ba9bb59363bce87266f14175e
7
- data.tar.gz: 84c95a55841fa323b315251e5b50d5cd3ce1976e848d8a0e77172d17f5aac2330b7284bbc3853d2c0e0e02fc5450e991fd9d97da0d7fed831a001491f89c03b2
6
+ metadata.gz: 48d214599f4653a05a8d01f3b06b64144075f289155476fb8de425b44d7951b073d4382a6210df53e64c56c210c1a5e4955f739e9ab216208191739f0338f652
7
+ data.tar.gz: 3989f2d0912416029cfbea34debf4ad361883fd33bb46eff31962764db2b74034d411a1c9686c7e29af4476fd4bf4d5228b307a051e8b0eb3daa042c071f349f
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  `mrml-rails` is a ActionMailer templating engine that uses the Rust-based MRML compiler in order to compile MJML files into pure HTML.
4
4
 
5
+ **Minimum Rust version supported is `1.51.0`**
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -22,7 +24,7 @@ Or install it yourself as:
22
24
 
23
25
  All you need to do is to have the file extension `mjml` on the specific views.
24
26
 
25
- I.e.: `sign_up.html.mjml`, `sign_up.mjml`
27
+ I.e.: `sign_up.mjml`, `notification.mjml`
26
28
 
27
29
  ## Development
28
30
 
@@ -36,7 +38,7 @@ I.e.: `sign_up.html.mjml`, `sign_up.mjml`
36
38
  2. Add a RustConfig with:
37
39
 
38
40
  ```
39
- VERSION=1.57.0
41
+ VERSION=1.65.0
40
42
  RUST_SKIP_BUILD=1
41
43
  ```
42
44
 
@@ -21,7 +21,8 @@ module Mrml
21
21
  end
22
22
 
23
23
  if compiled_source =~ /<mjml.*?>/i
24
- "MRML.to_html(begin;#{compiled_source};end).html_safe"
24
+ # "MRML.to_html(begin;#{compiled_source};end).html_safe"
25
+ "MRML::Template.new(begin;#{compiled_source};end).to_html"
25
26
  else
26
27
  compiled_source
27
28
  end
@@ -1,5 +1,5 @@
1
1
  module Mrml
2
2
  module Rails
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Nylén
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -28,22 +28,16 @@ dependencies:
28
28
  name: mrml
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.2'
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: '0.9'
33
+ version: '1.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.2'
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '0.9'
40
+ version: '1.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: railties
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -112,7 +106,7 @@ metadata:
112
106
  homepage_uri: https://github.com/oddcamp/mrml-rails
113
107
  source_code_uri: https://github.com/oddcamp/mrml-rails
114
108
  changelog_uri: https://github.com/oddcamp/mrml-rails/releases
115
- post_install_message:
109
+ post_install_message:
116
110
  rdoc_options: []
117
111
  require_paths:
118
112
  - lib
@@ -127,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
121
  - !ruby/object:Gem::Version
128
122
  version: '0'
129
123
  requirements: []
130
- rubygems_version: 3.1.6
131
- signing_key:
124
+ rubygems_version: 3.3.7
125
+ signing_key:
132
126
  specification_version: 4
133
127
  summary: Rails Template Engine for MJML (Rust-variant called MRML)
134
128
  test_files: []