ctt 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +41 -0
- data/bin/ctt +4 -0
- data/lib/ctt/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50470e14cf0dc810955f557f725c153b07aa47b0a344f747576225fa87e5a07
|
4
|
+
data.tar.gz: 62989ecab159fadc91560a77e080d70cbb8a4c0f6de17a6c16f0b3cd5b8deb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a401109c761291542663f6fc2454fc9683d93dcda01144551559a5a871f7b44fe4d33d30aa9b5ca33f14a250ac8f742d41b4c2d4e737babcfc9b9254c65e26
|
7
|
+
data.tar.gz: 146acb371856c9983400afe95204b5450035e6d60888cc1c0d9ee3a13e5facf2dbea7cc7a55831ef74db54f4fd17ad409f402e1a1f30138241f53f44dfcb377a
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
[](https://rubygems.org/gems/ctt)
|
2
|
+
|
3
|
+

|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
Add to Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'ctt'
|
11
|
+
```
|
12
|
+
|
13
|
+
or
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ gem install ctt
|
17
|
+
```
|
18
|
+
|
19
|
+
Install [NodeJS](https://nodejs.org/en/) and [MJML](https://mjml.io)
|
20
|
+
(both installations will works local and global).
|
21
|
+
|
22
|
+
|
23
|
+
```bash
|
24
|
+
$ npm install -g mjml@^4.0.0
|
25
|
+
$ bundle install
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
There are 3 options:
|
32
|
+
- parse (only transforms mjml to html)
|
33
|
+
- upload (only uploads an html file to a template)
|
34
|
+
- refresh (both parses and uploads the file)
|
35
|
+
|
36
|
+
This assumes you have a `test-template.mjml` inside the `templates` folder
|
37
|
+
```ruby
|
38
|
+
ctt parse test-template
|
39
|
+
ctt upload test-template
|
40
|
+
ctt refresh test-template
|
41
|
+
```
|
data/bin/ctt
CHANGED
data/lib/ctt/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ctt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Silva
|
@@ -46,6 +46,7 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- README.md
|
49
50
|
- bin/ctt
|
50
51
|
- lib/ctt.rb
|
51
52
|
- lib/ctt/ses.rb
|