guard-jekyll 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/guard-jekyll.gemspec +2 -2
- data/lib/guard/jekyll.rb +4 -4
- data/lib/guard/jekyll/version.rb +5 -0
- metadata +7 -6
data/guard-jekyll.gemspec
CHANGED
@@ -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::
|
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"]
|
data/lib/guard/jekyll.rb
CHANGED
@@ -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(
|
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 = {
|
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')
|
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *14301840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jekyll
|
27
|
-
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: *
|
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:
|