kisko-suits 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -1
- data/lib/kisko-suits/compiler.rb +3 -1
- data/lib/kisko-suits/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63be19a0310c7d726082af6f17ab2baa8d9eba85
|
4
|
+
data.tar.gz: 12146d0d806620d5531d70d3514bb4239f3868de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d62d754d11abbeae557b62d359aaa70f3549086e013f1d3bb44282b5bf85703d3374a9639b41080fc9ac50fab3ef66bdd9f12657c7991997bd99e101de770605
|
7
|
+
data.tar.gz: f165caa53796b93519de65d94357dd39caccae8cb8cb1bfbb5ed92db8c69d2b4f0dfb0135ea1f0be1d4d96a137cf2564e3ca3ce209f737b0f6481c2f59cc8bf8
|
data/README.md
CHANGED
@@ -50,6 +50,25 @@ If you want to update the output file when any of the included portions in the c
|
|
50
50
|
|
51
51
|
This makes it fast to work with the files and see the end result in Deckset.
|
52
52
|
|
53
|
+
### ZSH function
|
54
|
+
|
55
|
+
Add this to your `.zshrc` to use `deck my_presentation.md` and automatically create the `.suits` file, open it in atom and Deckset.
|
56
|
+
|
57
|
+
|
58
|
+
``` zsh
|
59
|
+
function deck {
|
60
|
+
local suits_file
|
61
|
+
suits_file=($(echo $1 | xargs).suits)
|
62
|
+
if [[ ! -e $1 ]] ; then
|
63
|
+
touch $1
|
64
|
+
fi
|
65
|
+
if [[ ! -e $suits_file ]] ; then
|
66
|
+
touch $suits_file
|
67
|
+
fi
|
68
|
+
open -a Deckset $1 && atom $suits_file && kisko-suits -w $suits_file
|
69
|
+
}
|
70
|
+
```
|
71
|
+
|
53
72
|
### CI Build Status
|
54
73
|
|
55
|
-
![](https://
|
74
|
+
![](https://travis-ci.org/kiskolabs/kisko-suits.svg?branch=master)
|
data/lib/kisko-suits/compiler.rb
CHANGED
@@ -26,7 +26,9 @@ module KiskoSuits
|
|
26
26
|
private
|
27
27
|
|
28
28
|
def process_line(root_dir, line)
|
29
|
-
if
|
29
|
+
if line.start_with?('[//]:')
|
30
|
+
# It's a comment
|
31
|
+
elsif match = line.match(/\s*include:\s*([\w\.\/]+)/)
|
30
32
|
included_path = "#{root_dir}/#{match[1]}"
|
31
33
|
if File.exists?(included_path)
|
32
34
|
@included_filenames << included_path
|
data/lib/kisko-suits/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kisko-suits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Akonniemi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filewatcher
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: 1.3.6
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project: kisko-suits
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.6.13
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Application to compile files as one
|