mrml-rails 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3886bc4409463e90435cedd42ae1b300912ffd538c629f4ff0cec1d68e18d445
4
- data.tar.gz: ac69f84c99f3656c7ba02a811b0795ea2b1e00098686eb8cccebe0a370e5a22e
3
+ metadata.gz: 1fafd99505d730e12f41ae208875c8527abc5445144a464dc2bc9b7f74d2723b
4
+ data.tar.gz: befa481a45c889b597f8307c6bdcd4cdc141fb53055762319cc6e7fb9a2b7bb3
5
5
  SHA512:
6
- metadata.gz: 519b0c71a2eb4d5e1a77a66bfe2fef39cafa8564a8498318738cd4ef516feb63819ec5b0523238e0d58af0f7c97b4a4405fe97ec253d2d0c95240a1a48b483c9
7
- data.tar.gz: 2273af58264a65b9884f364c0682fbcda4564dbed286c604aa3c1c72d248dcd0845d79a7b979877f663c7c8ea0c5094b4384038fc161eb1957a722ab5ce3f180
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.3.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.3.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: 2021-12-07 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.7'
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.7'
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: []