guard-jekyll 0.2.0 → 0.2.1

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.
@@ -1,10 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require 'guard/jekyll'
3
+ require 'guard/jekyll/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "guard-jekyll"
7
- s.version = Guard::Jekyll::VERSION
7
+ s.version = Guard::JekyllVersion::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["David Haslem"]
10
10
  s.email = ["therabidbanana@gmail.com"]
@@ -6,11 +6,11 @@ require 'jekyll'
6
6
  module Guard
7
7
  class Jekyll < Guard
8
8
 
9
- VERSION = '0.2.0'
10
-
11
9
  def initialize(watchers=[], options={})
12
10
  super
13
- @working_path = File.expand_path(File.dirname("."))
11
+ @working_path = File.expand_path(options[:source] ||
12
+ options['source'] ||
13
+ File.dirname("."))
14
14
  end
15
15
 
16
16
  def start
@@ -46,7 +46,7 @@ module Guard
46
46
  end
47
47
 
48
48
  def create_site
49
- options = { 'source' => @working_path }
49
+ options = {'source' => @working_path}
50
50
 
51
51
  unless File.exists? File.join(@working_path, '_config.yml')
52
52
  options['destination'] = File.join(@working_path, '_site')
@@ -0,0 +1,5 @@
1
+ module Guard
2
+ module JekyllVersion
3
+ VERSION = '0.2.1'
4
+ end
5
+ end
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.2.0
4
+ version: 0.2.1
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-27 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &13322880 !ruby/object:Gem::Requirement
16
+ requirement: &14301840 !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: *13322880
24
+ version_requirements: *14301840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jekyll
27
- requirement: &13321760 !ruby/object:Gem::Requirement
27
+ requirement: &14300200 !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: *13321760
35
+ version_requirements: *14300200
36
36
  description: guard file for jekyll
37
37
  email:
38
38
  - therabidbanana@gmail.com
@@ -47,6 +47,7 @@ files:
47
47
  - guard-jekyll.gemspec
48
48
  - lib/guard/jekyll.rb
49
49
  - lib/guard/jekyll/templates/Guardfile
50
+ - lib/guard/jekyll/version.rb
50
51
  homepage: http://davidhaslem.com
51
52
  licenses: []
52
53
  post_install_message: