wormwood 0.0.4 → 0.0.5

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.
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, 'Wormwood is an event-driven file rendering utility inspired by Jekyll.'
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 for changes, and writes rendered changes to the destination 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
@@ -1,3 +1,3 @@
1
1
  module Wormwood
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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 = "Wormwood is an event-driven file rendering utility inspired by Jekyll."
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
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: Wormwood is an event-driven file rendering utility inspired by Jekyll.
62
+ description: Event-driven template rendering inspired by Jekyll
63
63
  email: contact@erikeldridge.com
64
64
  executables:
65
65
  - wormwood