jekyll-watch 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/watcher.rb +12 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 229fbf98bb8691dbd4699c59511f5140babbbe39
|
4
|
+
data.tar.gz: 10596fd70b9d72e6b238e4a4e0986f4aa2964852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf10fb816d2cd1bd33077f8e3c6a1bb4079b710f94d5a6e8aac756c7d72ff64abdf1f688efbf29a2db5ea7da18902f8e63ab1343bd341828056fa4b104174cf6
|
7
|
+
data.tar.gz: 01ffc09e531deebbd7b50761c33ba58562eba9a628327a75e600b1d1ec339c090cab156e28e64b193425a41643c32e0e8f0c21e920dfefc7a45fa6f4307784d7
|
data/lib/jekyll/watcher.rb
CHANGED
@@ -52,13 +52,18 @@ module Jekyll
|
|
52
52
|
Array(options['exclude']).map { |e| Jekyll.sanitized_path(options['source'], e) }
|
53
53
|
end
|
54
54
|
|
55
|
+
def config_files(options)
|
56
|
+
%w[yml yaml toml].map do |ext|
|
57
|
+
Jekyll.sanitized_path(options['source'], "_config.#{ext}")
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
55
61
|
def to_exclude(options)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
].
|
61
|
-
[config_files, options['destination'], custom_excludes(options)].flatten
|
62
|
+
[
|
63
|
+
config_files(options),
|
64
|
+
options['destination'],
|
65
|
+
custom_excludes(options)
|
66
|
+
].flatten
|
62
67
|
end
|
63
68
|
|
64
69
|
# Paths to ignore for the watch option
|
@@ -84,7 +89,7 @@ module Jekyll
|
|
84
89
|
# Could not find a relative path
|
85
90
|
end
|
86
91
|
end
|
87
|
-
end.compact
|
92
|
+
end.compact + [/\.jekyll\-metadata/]
|
88
93
|
end
|
89
94
|
|
90
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-watch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|