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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -0
  3. data/bin/ctt +4 -0
  4. data/lib/ctt/version.rb +1 -1
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4167fc7333c7209323de057eea6883d9c7728d3ca5ea5ee001f98b1845c4cc46
4
- data.tar.gz: 34db7a860b17a6054061fd4fef21bf5b68b6a1d52594924a29890a4fa05777b1
3
+ metadata.gz: f50470e14cf0dc810955f557f725c153b07aa47b0a344f747576225fa87e5a07
4
+ data.tar.gz: 62989ecab159fadc91560a77e080d70cbb8a4c0f6de17a6c16f0b3cd5b8deb08
5
5
  SHA512:
6
- metadata.gz: aaabc9b4a3350dff128b580740e46c235658f325400d552ecd5a3f62c3b9a60afebf55d6c45b98c80dd83610242414e25d696c9971e98ad1d332315bf9c375ec
7
- data.tar.gz: 1c91e6c4fc4656d08dbec1b7fe05702dac0f2368cb8cfbf14ca127eafe77325dbd128b95108295bbeb7b830bef2efee76646bd332b08b16cea51f9f3e571ee6a
6
+ metadata.gz: 49a401109c761291542663f6fc2454fc9683d93dcda01144551559a5a871f7b44fe4d33d30aa9b5ca33f14a250ac8f742d41b4c2d4e737babcfc9b9254c65e26
7
+ data.tar.gz: 146acb371856c9983400afe95204b5450035e6d60888cc1c0d9ee3a13e5facf2dbea7cc7a55831ef74db54f4fd17ad409f402e1a1f30138241f53f44dfcb377a
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ [![Gem Version](https://img.shields.io/gem/v/ctt.svg?style=flat)](https://rubygems.org/gems/ctt)
2
+
3
+ ![Carteiro a correr](./ctt-logo.jpg)
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
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift("#{__dir__}/../lib")
5
+
2
6
  require 'ctt'
3
7
 
4
8
  case ARGV[0]
data/lib/ctt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CTT
4
- VERSION = "0.0.5".freeze
4
+ VERSION = "0.0.6".freeze
5
5
  end
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.5
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