mrml 0.1.0 → 0.2.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: 698a5cbddf2e1321636928ab0c6bb5edf1e8909173a516de3b9c7d7059122a15
4
- data.tar.gz: 13f6b2ae6f0c74c712b66fc481dd13481a4060cf33889fef66b5a277e715eedf
3
+ metadata.gz: 1d24641d7935465df48cb84cf4ec54134e028ccc6939c5f5353d587cc08a83a1
4
+ data.tar.gz: fbdb527a1fb152b2f18965f9685c61e97f2c53b4004547016909f5b025b061d6
5
5
  SHA512:
6
- metadata.gz: 1639da3c3ab01afe8ca6930d5f487debff86b67f73469e59611a4198447caa1a2c3771904d5361e8a57dce43ced08aea29fc4bf43bd48e5d6c7a0bbd4fca9933
7
- data.tar.gz: 19a0e0f5c8cf10e0c8a10aa73324d5690dc8ddf2c886fc59bd54c2b2acf729206534812b5c0602d2e8ba10e464f756548e3291bd7f990dbcc49c3f9f1c246791
6
+ metadata.gz: 24421c93616103cf85ec54ac19388928a72950722d379bb9c467f17dd2b320568772bab722b39d1c2dfd25e9eb73bda93442df4db083397a3e4dc132fc27f377
7
+ data.tar.gz: 9103f9892daffb15306ed66439a8948f2ff33ce702b67e6ca65cfd48fb85d7f005fd94ed5aeed5a46a7149813cd7d42062359931a669a6ab8ad6502b3202de18
data/.travis.yml CHANGED
@@ -3,4 +3,11 @@ language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
5
  - 2.7.2
6
- before_install: gem install bundler -v 2.1.4
6
+ env:
7
+ global:
8
+ - RUST_VERSION=stable
9
+ before_install:
10
+ - if [ ! -e "$HOME/.cargo/bin" ]; then curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y; fi
11
+ - export PATH="$HOME/.cargo/bin:$PATH"
12
+ - rustup default $RUST_VERSION
13
+ - gem install bundler -v 2.1.4
data/Cargo.toml CHANGED
@@ -6,8 +6,7 @@ edition = "2018"
6
6
 
7
7
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
8
  [dependencies]
9
- ruru = "0.9.3"
10
- mrml = "0.4.0"
9
+ mrml = "0.5.0"
11
10
 
12
11
  [lib]
13
12
  name = "mrml"
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # MRML Ruby
2
2
 
3
- Ruby wrapper for [MRML](https://github.com/jdrouet/mrml), the [MJML](https://mjml.io) parser 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.
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/mrml.svg)](https://badge.fury.io/rb/mrml)
6
+ [![Build Status](https://travis-ci.org/hardpixel/mrml-ruby.svg?branch=master)](https://travis-ci.org/hardpixel/mrml-ruby)
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/7e307214d3c2e4d2056d/maintainability)](https://codeclimate.com/github/hardpixel/mrml-ruby/maintainability)
4
8
 
5
9
  ## Installation
6
10
 
@@ -27,6 +31,7 @@ template = <<-HTML
27
31
  <mjml>
28
32
  <mj-head>
29
33
  <mj-title>Newsletter Title</mj-title>
34
+ <mj-preview>Newsletter Preview</mj-preview>
30
35
  </mj-head>
31
36
  <mj-body>
32
37
  <mj-section>
@@ -48,10 +53,6 @@ MRML.to_preview(template)
48
53
  MRML.to_html(template)
49
54
  ```
50
55
 
51
- ## To Do
52
-
53
- Add support for options.
54
-
55
56
  ## Development
56
57
 
57
58
  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.
data/Rakefile CHANGED
@@ -10,4 +10,4 @@ Rake::TestTask.new(:test) do |t|
10
10
  t.test_files = FileList["test/**/*_test.rb"]
11
11
  end
12
12
 
13
- task :default => :test
13
+ task :default => ['thermite:build', :test]
data/lib/mrml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MRML
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'.freeze
3
3
  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: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-01 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi