jekyll-zopfli 1.0.0 → 1.1.0

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: a3f4e5a67ce2d9411a647d9fade08e009316f6b6085d76e109a1ec65c2ceabd7
4
- data.tar.gz: 3eb3a02d22b264066ff7c6baeafe68362ef13c83dd96b5166c7e6b2817a0280e
3
+ metadata.gz: 2bf1c26f0d54b5d5ae1168ddef0f4b2dc09377b15dbf44bdec2c4348931ded5a
4
+ data.tar.gz: 805cb2c1623856635697dadd413de1d0b9c77a39375aefac88b9176f84d3ea7e
5
5
  SHA512:
6
- metadata.gz: 67c251bd50b61c17d4b621620edc11d7e7b29cc2a99d2857e8145d44a226d2d212cf4b9c7cd778a352f2fad15b74c85e2e0bebbe878e8a42587868e8235e9060
7
- data.tar.gz: c57bda518c63c2840b60825e90ef205ef04697d5b7a9933f14975b56abed4e0bcffc0aaf7dc6aa535c7588e6777533851b994ff7e4e470c8c21d5c0796a738ef
6
+ metadata.gz: d1a01caa7da984a2855e300ece77fb473130657f874d327d4d35497a69cf3b1f1c6360a5df8b535aed4a51003aed022dfb30763f1b960d9945b796a76aa47ad3
7
+ data.tar.gz: 1b48d8e7f514bcb52dc0e6ca883196a6228a1ce5f64dd2a76d5a42a678287ab4d6a86dd3f195ee9accd652c4a159e1a40d9f5446d254c95400a57d973d19d4f9
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.0 / 2018-01-01
3
+ ## 1.1.0 / 2018-01-03
4
+
5
+ ### Changed
6
+
7
+ * Only run the post write hook when the environment variable `JEKYLL_ENV` is `production`
8
+
9
+ ## 1.0.0 / 2018-01-02
4
10
 
5
11
  ### Added
6
12
 
data/README.md CHANGED
@@ -30,7 +30,9 @@ bundle install
30
30
 
31
31
  ## Usage
32
32
 
33
- Once you have the gem installed, run `bundle exec jekyll build`. In your destination directory (`_site` by default) you will find gzipped files.
33
+ Once you have the gem installed, run `JEKYLL_ENV=production bundle exec jekyll build`. In your destination directory (`_site` by default) you will find gzipped files.
34
+
35
+ Due to the time it takes to generate zopfli files, this plugin only works when the `JEKYLL_ENV` environment variable is set to `production`.
34
36
 
35
37
  ### Serving pre-compiled gzip files
36
38
 
@@ -7,5 +7,7 @@ module Jekyll
7
7
  end
8
8
 
9
9
  Jekyll::Hooks.register :site, :post_write do |site|
10
- Jekyll::Zopfli::Compressor.new(site).compress
10
+ if ENV["JEKYLL_ENV"] == "production"
11
+ Jekyll::Zopfli::Compressor.new(site).compress
12
+ end
11
13
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Zopfli
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-zopfli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.7.3
141
+ rubygems_version: 2.7.4
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Generate gzipped assets and files for your Jekyll site at build time using