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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3580c11da34fb0e8cb61221403e2d5166f8aaf00
4
- data.tar.gz: 2d0ccdf2ea2e1b42780925754ef817f9a27cd5dc
3
+ metadata.gz: 63be19a0310c7d726082af6f17ab2baa8d9eba85
4
+ data.tar.gz: 12146d0d806620d5531d70d3514bb4239f3868de
5
5
  SHA512:
6
- metadata.gz: e94f1452290532ef55a5338879da7aedebfef21fb4a62275c53c7b75782b3e2b88a8a175a1d1d16df6e1e960cfa4110598618763faedcd3b1935e34723d432b2
7
- data.tar.gz: fe38c413ff247eee7d09f7c3e4159ace28f17e18dd9cfcf04c8a0240c26d4356ae67cafd10010eb7608b26829896eded0311b26979424ca56d6a27c30348ba0e
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://magnum.travis-ci.com/kiskolabs/kisko-suits.svg?token=DwseF79747iq46syMYaD)
74
+ ![](https://travis-ci.org/kiskolabs/kisko-suits.svg?branch=master)
@@ -26,7 +26,9 @@ module KiskoSuits
26
26
  private
27
27
 
28
28
  def process_line(root_dir, line)
29
- if match = line.match(/\s*include:\s*([\w\.\/]+)/)
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
@@ -1,3 +1,3 @@
1
1
  module KiskoSuits
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
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.3
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: 2015-09-29 00:00:00.000000000 Z
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.4.5.1
83
+ rubygems_version: 2.6.13
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Application to compile files as one