jekyll-gzip 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/jekyll/gzip.rb +0 -5
- data/lib/jekyll/gzip/compressor.rb +2 -3
- data/lib/jekyll/gzip/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: 28d480574a2998a3dae5cdfd7f41d0071f9f50989b40b8fdab9cc5a4c8ee780f
|
4
|
+
data.tar.gz: c897d7e9c325aa0780e817525b11d2aea99103590501a30a7e717b79add8dc95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
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
|
data/lib/jekyll/gzip/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|