mrml 1.4.2-x86_64-linux → 1.5.0-x86_64-linux

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: 8540c25d8811ffa7b6cd41eaad539961ed0c287c42195670fdc14935c68c42e6
4
- data.tar.gz: 7531029443b4f03739f199984d7f5f24a067e4e85ff7deb6ab3297de547cb385
3
+ metadata.gz: aef3207afe9abc3bcb584505c625f29eda6eb8e5a40613b6d80f74aea0fd250a
4
+ data.tar.gz: e7b80bd6eabca3414a2ce8f25aaa6f0cf000894f950c6849d2fe9c437ba9450d
5
5
  SHA512:
6
- metadata.gz: 58c4d0f30afb21f9eb721988eff9cecb480a6a204a25d343077447becff6fb20f21d461e2a0f99478f96a910ed3c7a2d429ab7c487bfb1caaff3c702f33e9e5f
7
- data.tar.gz: 5dc951f6394bca10ff8fd6d4579f24877081840810d34cb4977e391265c9283070abc1b9120bf3876b4553c8c33b65122ddc08da41b21f1e00601961a7304207
6
+ metadata.gz: 2caac61163bf2b5de141edc59d42a57a5af457129b81a7a0522261b1005ea8a29c7137d0368751e934e9fcc557501df91ce37cc10789a37a8a0fc80920d8b82a
7
+ data.tar.gz: de785c537eaf9835e8256b0fb808e7b96fd5c8e12466568f1f3900316e5f36c102839699db0c8301d93a95352e82cee821ec3cc9a9b9a97462c711343493dcdf
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/3.1/mrml.so CHANGED
Binary file
data/lib/mrml/3.2/mrml.so CHANGED
Binary file
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: x86_64-linux
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,9 +63,12 @@ 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/3.1/mrml.so
68
70
  - lib/mrml/3.2/mrml.so
71
+ - lib/mrml/3.3/mrml.so
69
72
  - lib/mrml/error.rb
70
73
  - lib/mrml/template.rb
71
74
  - lib/mrml/version.rb
@@ -81,10 +84,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
84
  requirements:
82
85
  - - ">="
83
86
  - !ruby/object:Gem::Version
84
- version: '3.0'
87
+ version: '2.6'
85
88
  - - "<"
86
89
  - !ruby/object:Gem::Version
87
- version: 3.3.dev
90
+ version: 3.4.dev
88
91
  required_rubygems_version: !ruby/object:Gem::Requirement
89
92
  requirements:
90
93
  - - ">="