guard-jekyll 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/guard/jekyll.rb +7 -6
  2. metadata +6 -6
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.1.0'
9
+ VERSION = '0.2.0'
10
10
 
11
11
  def initialize(watchers=[], options={})
12
12
  super
@@ -46,11 +46,12 @@ module Guard
46
46
  end
47
47
 
48
48
  def create_site
49
- options = {
50
- 'source' => @working_path,
51
- 'destination' => File.join(@working_path, '_site'),
52
- 'plugins' => File.join(@working_path, '_plugins')
53
- }
49
+ options = { 'source' => @working_path }
50
+
51
+ unless File.exists? File.join(@working_path, '_config.yml')
52
+ options['destination'] = File.join(@working_path, '_site')
53
+ options['plugins'] = File.join(@working_path, '_plugins')
54
+ end
54
55
 
55
56
  config = ::Jekyll.configuration(options)
56
57
  @jekyll_site = ::Jekyll::Site.new(config)
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.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-20 00:00:00.000000000 Z
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &13044860 !ruby/object:Gem::Requirement
16
+ requirement: &13322880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13044860
24
+ version_requirements: *13322880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jekyll
27
- requirement: &13064140 !ruby/object:Gem::Requirement
27
+ requirement: &13321760 !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: *13064140
35
+ version_requirements: *13321760
36
36
  description: guard file for jekyll
37
37
  email:
38
38
  - therabidbanana@gmail.com