jekyll-gzip 2.5.0 → 2.5.1

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: 3049ee54c391de6df317ecde1288f82f1224a17569644da228dd5c136eb71dd0
4
- data.tar.gz: fe2ec6c84c347aa946ac9cd9d7c91e5c9087ded244a0b66e6a8cfc80924b3f80
3
+ metadata.gz: 28d480574a2998a3dae5cdfd7f41d0071f9f50989b40b8fdab9cc5a4c8ee780f
4
+ data.tar.gz: c897d7e9c325aa0780e817525b11d2aea99103590501a30a7e717b79add8dc95
5
5
  SHA512:
6
- metadata.gz: 37b07ec7b37fa110aeee0d36c8b96de89ed4b815bdb472f2d621863585f20cd8e3574d17b2be7c34c4a92e2c699cea4e0be203b7fadd1126b586fd55e9c68b79
7
- data.tar.gz: 683e435482ca5be7e31e8d7149361a1cefaec9cf53c9b53418244e7b90503a39b51ff1589baa2fe50725e9ece98e06dde9be5e4eb33b8b38f75d5141e08b4b4e
6
+ metadata.gz: 5d60611ffcf9f0143c5ce1a85d8c3941386b39d323b819da6589ed0878979d6ef5c611789f54d86894cca57e8a611d83ad073f2641983356196ed7104a881152
7
+ data.tar.gz: a2506fb3379771e481fef97acf9354304fba61dc6a45e59286ed46d6b58a4b86372af74d1843395719875edab8280fe4db8b1dc94314020231d727afbd1b6f79
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ...
6
6
 
7
+ ## 2.5.1 (2021-02-13) [☰](https://github.com/philnash/jekyll-gzip/compare/v2.5.0...v2.5.1)
8
+
9
+ ### Fixed
10
+
11
+ - Stop overwriting Jekyll config, which invalidates the Jekyll cache (see https://github.com/jekyll/jekyll/issues/8551)
12
+
7
13
  ## 2.5.0 (2021-02-09) [☰](https://github.com/philnash/jekyll-gzip/compare/v2.4.2...v2.5.0)
8
14
 
9
15
  ### Changed
data/lib/jekyll/gzip.rb CHANGED
@@ -10,11 +10,6 @@ module Jekyll
10
10
  end
11
11
  end
12
12
 
13
- Jekyll::Hooks.register :site, :after_init do |site|
14
- config = site.config['gzip'] || {}
15
- site.config['gzip'] = Jekyll::Gzip::DEFAULT_CONFIG.merge(config) || {}
16
- end
17
-
18
13
  Jekyll::Hooks.register :site, :post_write do |site|
19
14
  Jekyll::Gzip::Compressor.compress_site(site) if Jekyll.env == 'production'
20
15
  end
@@ -100,12 +100,11 @@ module Jekyll
100
100
  end
101
101
 
102
102
  def self.zippable_extensions(site)
103
- site.config.dig('gzip', 'extensions') || Jekyll::Gzip::DEFAULT_CONFIG['extensions']
103
+ site.config.dig("gzip", "extensions") || Jekyll::Gzip::DEFAULT_CONFIG.fetch("extensions")
104
104
  end
105
105
 
106
106
  def self.replace_files(site)
107
- replace_files = site.config.dig('gzip', 'replace_files')
108
- replace_files.nil? ? Jekyll::Gzip::DEFAULT_CONFIG['replace_files'] : replace_files
107
+ site.config.dig("gzip", "replace_files") || Jekyll::Gzip::DEFAULT_CONFIG.fetch("replace_files")
109
108
  end
110
109
 
111
110
  # Compresses the file if the site is built incrementally and the
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Gzip
5
- VERSION = "2.5.0"
5
+ VERSION = "2.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-gzip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2021-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll