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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll/watcher.rb +12 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9855455db8909487179a72ecb00a1f4fe815e37d
4
- data.tar.gz: 78c2b869b915f9f4d4f82938eb595a782fc77884
3
+ metadata.gz: 229fbf98bb8691dbd4699c59511f5140babbbe39
4
+ data.tar.gz: 10596fd70b9d72e6b238e4a4e0986f4aa2964852
5
5
  SHA512:
6
- metadata.gz: c1229d13b045a137e5b7576ad5e691d0ed343ba4dc96555a62f53541ca72250f616812940b78a80e3b3bb030cc6eef5b8443e58605aabb29eb7ad32fcb421f94
7
- data.tar.gz: 86d75902d758067629d35e0427fef1872176c745f4ff7a5577391f712cbfaea021e569ecf324fab524340e5e77e10a0b2be46598f24be502f64debbd81555d7b
6
+ metadata.gz: cf10fb816d2cd1bd33077f8e3c6a1bb4079b710f94d5a6e8aac756c7d72ff64abdf1f688efbf29a2db5ea7da18902f8e63ab1343bd341828056fa4b104174cf6
7
+ data.tar.gz: 01ffc09e531deebbd7b50761c33ba58562eba9a628327a75e600b1d1ec339c090cab156e28e64b193425a41643c32e0e8f0c21e920dfefc7a45fa6f4307784d7
@@ -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
- config_files = [
57
- "_config.yml",
58
- "_config.yaml",
59
- "_config.toml"
60
- ].map { |config_file| Jekyll.sanitized_path(options['source'], config_file) }
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.1.2
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-08 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen