guard-jekyll 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -11,7 +11,7 @@ in your project's directory root
11
11
  which will add this to your Guardfile
12
12
 
13
13
  guard 'jekyll' do
14
- watch ('.*')
14
+ watch /.*/
15
15
  end
16
16
 
17
17
  ## TODO
data/guard-jekyll.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "guard-jekyll"
16
16
 
17
- s.add_dependency 'guard', '>= 0.2.2'
17
+ s.add_dependency 'guard', '>= 1.1.0'
18
18
  s.add_dependency "jekyll"
19
19
 
20
20
  s.files = `git ls-files`.split("\n")
@@ -1,3 +1,3 @@
1
1
  guard 'jekyll' do
2
- watch('(.*)')
2
+ watch /.*/
3
3
  end
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.2'
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 run_on_change(paths)
26
+ def run_on_changes(paths)
28
27
  jekyll!
29
28
  end
30
29
 
31
- def run_on_deletion(paths)
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.2
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-05-09 00:00:00.000000000 Z
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: &7049880 !ruby/object:Gem::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: 0.2.2
21
+ version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7049880
24
+ version_requirements: *13044860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jekyll
27
- requirement: &7048480 !ruby/object:Gem::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: *7048480
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: