guard-jekyll 0.0.2 → 0.1.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 +1 -1
- data/guard-jekyll.gemspec +1 -1
- data/lib/guard/jekyll/templates/Guardfile +1 -1
- data/lib/guard/jekyll.rb +7 -4
- metadata +8 -7
data/README.markdown
CHANGED
data/guard-jekyll.gemspec
CHANGED
data/lib/guard/jekyll.rb
CHANGED
|
@@ -6,7 +6,7 @@ require 'jekyll'
|
|
|
6
6
|
module Guard
|
|
7
7
|
class Jekyll < Guard
|
|
8
8
|
|
|
9
|
-
VERSION = '0.0
|
|
9
|
+
VERSION = '0.1.0'
|
|
10
10
|
|
|
11
11
|
def initialize(watchers=[], options={})
|
|
12
12
|
super
|
|
@@ -14,7 +14,6 @@ module Guard
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def start
|
|
17
|
-
create_site
|
|
18
17
|
UI.info "Guard::Jekyll is watching for file changes..."
|
|
19
18
|
run_all
|
|
20
19
|
true
|
|
@@ -24,11 +23,11 @@ module Guard
|
|
|
24
23
|
jekyll!
|
|
25
24
|
end
|
|
26
25
|
|
|
27
|
-
def
|
|
26
|
+
def run_on_changes(paths)
|
|
28
27
|
jekyll!
|
|
29
28
|
end
|
|
30
29
|
|
|
31
|
-
def
|
|
30
|
+
def reload
|
|
32
31
|
jekyll!
|
|
33
32
|
end
|
|
34
33
|
|
|
@@ -37,9 +36,13 @@ module Guard
|
|
|
37
36
|
def jekyll!
|
|
38
37
|
UI.info "Guard::Jekyll running."
|
|
39
38
|
|
|
39
|
+
create_site
|
|
40
40
|
@jekyll_site.process
|
|
41
41
|
|
|
42
42
|
UI.info "Guard::Jekyll complete."
|
|
43
|
+
rescue Exception => e
|
|
44
|
+
UI.error "Guard::Jekyll failed: #{e}"
|
|
45
|
+
throw :task_has_failed
|
|
43
46
|
end
|
|
44
47
|
|
|
45
48
|
def create_site
|
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: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,22 +9,22 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: guard
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &13044860 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version:
|
|
21
|
+
version: 1.1.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *13044860
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: jekyll
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &13064140 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *13064140
|
|
36
36
|
description: guard file for jekyll
|
|
37
37
|
email:
|
|
38
38
|
- therabidbanana@gmail.com
|
|
@@ -72,3 +72,4 @@ signing_key:
|
|
|
72
72
|
specification_version: 3
|
|
73
73
|
summary: guard file for jekyll
|
|
74
74
|
test_files: []
|
|
75
|
+
has_rdoc:
|