guard-jekyll 1.3.0 → 1.4.0
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/README.markdown +12 -7
- data/guard-jekyll.gemspec +2 -2
- data/lib/guard/jekyll.rb +0 -10
- data/lib/guard/jekyll/version.rb +1 -1
- metadata +5 -4
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Guard::Jekyll
|
2
2
|
|
3
|
-
|
3
|
+
Guard::Jekyll automatically rebuilds websites with the [Jekyll static site generator](http://jekyllrb.com/) every time files are modified.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,20 +18,25 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
Enter the
|
21
|
+
Enter the Jekyll site directory for which you want to use Guard::Jekyll. Create a Guardfile using:
|
22
22
|
|
23
23
|
$ guard init jekyll
|
24
24
|
|
25
|
-
|
25
|
+
Then execute:
|
26
26
|
|
27
27
|
$ guard
|
28
28
|
|
29
|
-
Whenever you change a file in the
|
29
|
+
Whenever you change a file in the Jekyll site directory now, the site will be rebuilt!
|
30
30
|
|
31
31
|
## Options
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
You can provide these options to Guard::Jekyll:
|
34
|
+
|
35
|
+
* `:source` the source directory which Jekyll reads files from.
|
36
|
+
* `:destination` the directory where Jekyll will write files to.
|
37
|
+
* `:config` array of configuration files for Jekyll.
|
38
|
+
|
39
|
+
Without options, Jekyll will use its built-in defaults.
|
35
40
|
|
36
41
|
## License
|
37
42
|
|
data/guard-jekyll.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["David Haslem"]
|
10
10
|
s.email = ["therabidbanana@gmail.com"]
|
11
11
|
s.homepage = "http://davidhaslem.com"
|
12
|
-
s.summary =
|
13
|
-
s.description =
|
12
|
+
s.summary = "Guard gem for Jekyll."
|
13
|
+
s.description = "Guard::Jekyll automatically rebuilds websites with the Jekyll static site generator."
|
14
14
|
|
15
15
|
s.rubyforge_project = "guard-jekyll"
|
16
16
|
|
data/lib/guard/jekyll.rb
CHANGED
@@ -5,16 +5,6 @@ require 'jekyll'
|
|
5
5
|
|
6
6
|
module Guard
|
7
7
|
class Jekyll < Guard
|
8
|
-
def initialize(watchers = [], options = {})
|
9
|
-
defaults = {
|
10
|
-
:source => './',
|
11
|
-
:destination => './_site',
|
12
|
-
:config => ['_config.yml'],
|
13
|
-
}
|
14
|
-
|
15
|
-
super(watchers, defaults.merge(options))
|
16
|
-
end
|
17
|
-
|
18
8
|
def start
|
19
9
|
UI.info 'Guard::Jekyll is watching for file changes'
|
20
10
|
rebuild
|
data/lib/guard/jekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -43,7 +43,8 @@ dependencies:
|
|
43
43
|
none: false
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
description:
|
46
|
+
description: Guard::Jekyll automatically rebuilds websites with the Jekyll static
|
47
|
+
site generator.
|
47
48
|
email:
|
48
49
|
- therabidbanana@gmail.com
|
49
50
|
executables: []
|
@@ -80,5 +81,5 @@ rubyforge_project: guard-jekyll
|
|
80
81
|
rubygems_version: 1.8.25
|
81
82
|
signing_key:
|
82
83
|
specification_version: 3
|
83
|
-
summary:
|
84
|
+
summary: Guard gem for Jekyll.
|
84
85
|
test_files: []
|