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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e7a65e72e14fcdfaff8cf21d079c3c2dc75b1f225af614f9fa7c01f78b6ddf4
4
- data.tar.gz: dcc20432b31495913b7ac21852b90aab882a40984df61ece77687647e537b066
3
+ metadata.gz: f3c87670f0cc0776524ea41eb257988d016a638fad8d1a60e6fec70e83d9bcc5
4
+ data.tar.gz: 1b0ce781d80f9b255c13f5e88c985ead74ebf77b33f435c25270a5ca0d580611
5
5
  SHA512:
6
- metadata.gz: 25f181344dac581222ac7569153f3e4759a6f3f1fe52e4ece007d605feabafe9c2f520d9f9a64d77ffdaf3ff0855f46e39fed64d17541092ddd152628a0ac5e9
7
- data.tar.gz: fe9c3fbc7de612c147d1f3f399d8a7ea048d1457234e7cdd38d9bb56e24315a1f1652ede64621ae6d4d7b2c55f7294afcd79bfa0b48a27c02e68c4f7cbe57728
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: /\_config\.yml/) do |modified, added, removed|
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
@@ -1,3 +1,3 @@
1
1
  module JekyllPatternbot
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll