mrml 1.4.2-x64-mingw32 → 1.5.0-x64-mingw32

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: ca7bac6aa6e35d204ae01b0a16ffec905db5f0cc3bf25147a9367831d74108e2
4
- data.tar.gz: 0bbc9ef6334f8fa2c61e78c7bcffe02193d54c23989de3ae28708c07b5f2a1cf
3
+ metadata.gz: 776334debe379ce6626acf019ad6902fcd3b96185d1a98518ead6efd699b8e1a
4
+ data.tar.gz: 590a19287580b6f9ad94f8d4ea726b0565982b4b1ed018ce5a9a94729e1af9b8
5
5
  SHA512:
6
- metadata.gz: 2bbe85fc25e495b9fc736ca591789ba3f8cdd7f66db21be4ff75043d19e4df17c0badeb18bd90e6a815970aa15c1a9d53e51006f1ea0d5e93e4369b3d56c6bcb
7
- data.tar.gz: 4eecd6536af780eb91c080464dcd20b2573909fbf367bac2acbf334ccbe4644fe333e4c2e5eadbd244596c90cdae424af9550a696136e0853d719f9a3c55123b
6
+ metadata.gz: 260c58676bed2e534933eb48d7b10b51d28b957f929d6f30b6f86a6eefb2417a10b0388be381c985facb1ba0337b24f1ab69addf2aae3e5acedfab5661fb27f4
7
+ data.tar.gz: 300f9d1e1179f0dca2bbdd421b5f032ec51f753db3d244273d6731b578b25dccf2256acb3abedb62d2e7a9416d3d496a65e563489929751888909a0734c7d54f
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MRML Ruby
2
2
 
3
- Ruby wrapper for [MRML](https://github.com/jdrouet/mrml), the [MJML](https://mjml.io) markup language implementation in Rust. Rust must be available on your system to install this gem.
3
+ Ruby wrapper for [MRML](https://github.com/jdrouet/mrml), the [MJML](https://mjml.io) markup language implementation in Rust. Rust must be available on your system to install this gem if you use a version below [v1.4.2](https://github.com/hardpixel/mrml-ruby/releases/tag/v1.4.2).
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/mrml.svg)](https://badge.fury.io/rb/mrml)
6
6
  [![Build](https://github.com/hardpixel/mrml-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/hardpixel/mrml-ruby/actions/workflows/build.yml)
@@ -105,6 +105,33 @@ template.to_json # Render as json
105
105
  template.to_hash # Render as hash
106
106
  ```
107
107
 
108
+ ## Benchmark
109
+
110
+ ```
111
+ Warming up --------------------------------------
112
+ mrml 3.069k i/100ms
113
+ mjml 1.000 i/100ms
114
+ Calculating -------------------------------------
115
+ mrml 32.537k (±16.1%) i/s - 156.519k in 5.029759s
116
+ mjml 1.895 (± 0.0%) i/s - 10.000 in 5.283579s
117
+
118
+ Comparison:
119
+ mrml: 32537.2 i/s
120
+ mjml: 1.9 i/s - 17169.16x slower
121
+
122
+ Calculating -------------------------------------
123
+ mrml 3.166k memsize ( 0.000 retained)
124
+ 2.000 objects ( 0.000 retained)
125
+ 1.000 strings ( 0.000 retained)
126
+ mjml 21.253k memsize ( 1.490k retained)
127
+ 107.000 objects ( 15.000 retained)
128
+ 20.000 strings ( 11.000 retained)
129
+
130
+ Comparison:
131
+ mrml: 3166 allocated
132
+ mjml: 21253 allocated - 6.71x more
133
+ ```
134
+
108
135
  ## Development
109
136
 
110
137
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Binary file
Binary file
data/lib/mrml/3.0/mrml.so CHANGED
Binary file
data/lib/mrml/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MRML
4
- VERSION = '1.4.2'
4
+ VERSION = '1.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-18 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,6 +63,8 @@ files:
63
63
  - LICENSE.txt
64
64
  - README.md
65
65
  - lib/mrml.rb
66
+ - lib/mrml/2.6/mrml.so
67
+ - lib/mrml/2.7/mrml.so
66
68
  - lib/mrml/3.0/mrml.so
67
69
  - lib/mrml/error.rb
68
70
  - lib/mrml/template.rb
@@ -79,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
81
  requirements:
80
82
  - - ">="
81
83
  - !ruby/object:Gem::Version
82
- version: '3.0'
84
+ version: '2.6'
83
85
  - - "<"
84
86
  - !ruby/object:Gem::Version
85
87
  version: 3.1.dev