wormwood 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/wormwood +14 -3
- data/lib/wormwood/version.rb +1 -1
- data/wormwood.gemspec +1 -1
- metadata +2 -2
data/bin/wormwood
CHANGED
@@ -5,7 +5,7 @@ require 'wormwood'
|
|
5
5
|
|
6
6
|
program :name, 'wormwood'
|
7
7
|
program :version, Wormwood::VERSION
|
8
|
-
program :description, '
|
8
|
+
program :description, 'Event-driven template rendering inspired by Jekyll.'
|
9
9
|
|
10
10
|
default_command :watch
|
11
11
|
|
@@ -13,8 +13,8 @@ global_option '-s', '--source [DIR]', 'Watches specified directory path (default
|
|
13
13
|
global_option '-d', '--destination [DIR]', 'Writes to specified directory path (defaults to ./)'
|
14
14
|
|
15
15
|
command :watch do |c|
|
16
|
-
c.syntax = 'wormwood [options]'
|
17
|
-
c.description = 'Watches source directory
|
16
|
+
c.syntax = 'wormwood watch [options]'
|
17
|
+
c.description = 'Watches source directory and renders any files that change'
|
18
18
|
c.action do |args, options|
|
19
19
|
options.default \
|
20
20
|
:source => './',
|
@@ -22,3 +22,14 @@ command :watch do |c|
|
|
22
22
|
Wormwood.watch(options)
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
command :build do |c|
|
27
|
+
c.syntax = 'wormwood build [options]'
|
28
|
+
c.description = 'Renders all templates in source directory'
|
29
|
+
c.action do |args, options|
|
30
|
+
options.default \
|
31
|
+
:source => './',
|
32
|
+
:destination => './'
|
33
|
+
Wormwood.build(Dir[Wormwood::GLOB], options)
|
34
|
+
end
|
35
|
+
end
|
data/lib/wormwood/version.rb
CHANGED
data/wormwood.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.version = Wormwood::VERSION
|
9
9
|
gem.authors = ["Erik Eldridge"]
|
10
10
|
gem.email = "contact@erikeldridge.com"
|
11
|
-
gem.description = "
|
11
|
+
gem.description = "Event-driven template rendering inspired by Jekyll"
|
12
12
|
gem.summary = "Wormwood watches for changes to a template directory (\"./\" by default), "+
|
13
13
|
"renders the changed files (via Tilt), and writes the rendered output to "+
|
14
14
|
"an output directory (\"./\" by default)."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wormwood
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.3.3
|
62
|
-
description:
|
62
|
+
description: Event-driven template rendering inspired by Jekyll
|
63
63
|
email: contact@erikeldridge.com
|
64
64
|
executables:
|
65
65
|
- wormwood
|