guard-jekyll-plus 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/README.md +3 -0
- data/lib/guard/jekyll-plus/version.rb +1 -1
- data/lib/guard/jekyll-plus.rb +1 -2
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
A Guard plugin for smarter Jekyll watching.
|
4
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/guard-jekyll-plus.png)](http://badge.fury.io/rb/guard-jekyll-plus)
|
6
|
+
|
5
7
|
Features:
|
6
8
|
|
7
9
|
- Changing static files won't trigger a jekyll build! Files are copied/removed instead.
|
8
10
|
- Batched processing! (Adding a directory of `n` files triggers a single build)
|
9
11
|
- Reads options from your YAML config file(s)
|
10
12
|
- Supports multiple config files (Jekyll 1.0)
|
13
|
+
- Serve with Jekyll or Rack (just add rack to your gemfile)
|
11
14
|
- Clear and colorized output
|
12
15
|
|
13
16
|
Here's a look
|
data/lib/guard/jekyll-plus.rb
CHANGED
@@ -217,10 +217,9 @@ module Guard
|
|
217
217
|
def rack_config(root)
|
218
218
|
ENV['RACK_ROOT'] = root
|
219
219
|
default_config = File.expand_path("../rack/config.ru", File.dirname(__FILE__))
|
220
|
-
local_config = File.exist?
|
220
|
+
local_config = File.exist?('config.ru') ? 'config.ru' : nil
|
221
221
|
|
222
222
|
config = (@config['rack_config'] || local_config || default_config)
|
223
|
-
puts config
|
224
223
|
{ :config => config, :Port => @config['port'], :Host => @config['host'] }
|
225
224
|
end
|
226
225
|
|