jekyll_patternbot 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/_plugins/jekyll_patternbot/config.rb +21 -1
- data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3c87670f0cc0776524ea41eb257988d016a638fad8d1a60e6fec70e83d9bcc5
|
4
|
+
data.tar.gz: 1b0ce781d80f9b255c13f5e88c985ead74ebf77b33f435c25270a5ca0d580611
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4acf07f6dcd38429e6befbf8c5e5c5cdb22c32d5121f1cfa80b1c9f6112d122a9e9423f41a4c0cbffd8b8506b00021e1aa368ffa9dcf4c1bbd58484becff025
|
7
|
+
data.tar.gz: d57184d88b5a275e45c02b928321c6ad020bde19eb69d9d89923dcd3d7b3cf0f22596c08e5ae3d5a2442b33ffa0f058a8b1bcf289bd8c6c874bba33d717e3777
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ Jekyll Patternbot adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
---
|
7
7
|
|
8
|
+
## [1.6.2] — 2020-01-11
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- Added a bunch of ignored directories for the `_config.yml` listener to help improve performance.
|
13
|
+
|
14
|
+
---
|
15
|
+
|
8
16
|
## [1.6.1] — 2020-01-04
|
9
17
|
|
10
18
|
### Fixed
|
@@ -26,9 +26,29 @@ module JekyllPatternbot
|
|
26
26
|
PatternbotLocale = YAML.load_file File.expand_path("../../_data/locales/en-ca.yml", __dir__)
|
27
27
|
end
|
28
28
|
|
29
|
+
listener_ignore_dirs = [
|
30
|
+
/^\.jekyll\-metadata/,
|
31
|
+
%r!#{Config['patternbot']['source']}!,
|
32
|
+
%r!#{Config['patternbot']['destination']}!,
|
33
|
+
%r!#{Config['patternbot']['css']['source']}!,
|
34
|
+
%r!#{Config['patternbot']['icons']['source']}!,
|
35
|
+
%r!#{Config['patternbot']['logos']['source']}!,
|
36
|
+
%r!#{Config['patternbot']['sample_pages']['source']}!,
|
37
|
+
%r!#{Config['patternbot']['js']['source']}!,
|
38
|
+
]
|
39
|
+
dirs_to_ignore = ['destination', 'plugins_dir', 'layouts_dir', 'data_dir', 'includes_dir',]
|
40
|
+
dirs_to_ignore.each do |opt|
|
41
|
+
new_path = Config[opt].sub Config['source'] + '/', ''
|
42
|
+
listener_ignore_dirs += [%r!#{new_path}!]
|
43
|
+
end
|
44
|
+
site.collections.each do |key, col|
|
45
|
+
new_path = col.relative_directory.sub Config['source'] + '/', ''
|
46
|
+
listener_ignore_dirs += [%r!#{new_path}!]
|
47
|
+
end
|
48
|
+
|
29
49
|
# Does this leave a running process when Jekyll shuts down?
|
30
50
|
unless @@config_listener
|
31
|
-
@@config_listener = Listen.to(site.source, only:
|
51
|
+
@@config_listener = Listen.to(site.source, ignore: listener_ignore_dirs, only: /^\_config\.yml/) do |modified, added, removed|
|
32
52
|
if site
|
33
53
|
site.process
|
34
54
|
end
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_patternbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas J Bradley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|