jekyll_picture_tag 2.0.1 → 2.0.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: 5d6d2bf0edc139d12f269e614e3585ecf18ace2a48a92e9bc1367a6e654ba2d0
4
- data.tar.gz: e6fe2197c58c368255472631adeef9dd9a593230c7655617ad66d00330ba4b4e
3
+ metadata.gz: 61b3c53bfa81070e0457626c7ffe32c528bd6cafcc6627b5899d4737f83e2fd8
4
+ data.tar.gz: 25abc195daaee489892452b4fb1622fcb4585e1b09ee34bb1a2a4b568d2a1f68
5
5
  SHA512:
6
- metadata.gz: 8682488670153d69640703aa1cd128f57be84c979efff085d19144e4861c3a7d854ae9d638e766ce2398ccafec68b9243613b65b2186e51c83a3d89ef9bc3c9d
7
- data.tar.gz: 631adc8189614973ab8ad6b14c2b08fd335abcf53cf8a7b6b63cd23f66bcfb9e5f2c800e188b0eeee46242d2a409db776ec5ad64bae0df4fd7c7ca4694429e49
6
+ metadata.gz: 075f856f3407ee8e1c68f785759a600ea04ddbfcff08944fd4796157c842a2c0583044b726580ed5030b81fd0f8b82c962345e583eef4c492fd2edda7a03fe48
7
+ data.tar.gz: 66f7afa3af4d32ac61d67e21f4a7844d86c2f195043f3f607b706a30a40e3be040e21654ef601cd5f12edf7535f6e1401edb2ae1f17a50c56de91eb5b1a03c70
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  ---
3
3
  # Release History
4
+
5
+ * 2.0.2 March 31, 2021
6
+ * Do not pass a quality argument when generating PNG files.
7
+ * It only works on newer versions of vips, breaking builds when using older
8
+ versions (such as when deploying to netlify.)
9
+ * It's not remarkably useful in the first place.
4
10
  * 2.0.1 March 31, 2021
5
11
  * Select imagemagick deliberately when appropriate, rather than simply rescuing all vips errors
6
12
  and trying again. This will stop JPT from suppressing useful vips errors.
@@ -57,8 +57,9 @@ module PictureTag
57
57
 
58
58
  opts[:strip] = PictureTag.preset['strip_metadata']
59
59
 
60
- # gifs don't accept a quality setting.
61
- opts[quality_key] = base.quality unless base.format == 'gif'
60
+ # gifs don't accept a quality setting, and PNGs don't on older versions of
61
+ # vips. Since it's not remarkably useful anyway, we'll ignore them.
62
+ opts[quality_key] = base.quality unless %w[gif png].include? base.format
62
63
 
63
64
  opts.transform_keys(&:to_sym)
64
65
  end
@@ -1,3 +1,3 @@
1
1
  module PictureTag
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
data/readme.md CHANGED
@@ -47,6 +47,11 @@ https://rbuchberger.github.io/jekyll_picture_tag/devs/releases
47
47
 
48
48
  Recent releases:
49
49
 
50
+ * 2.0.2 March 31, 2021
51
+ * Do not pass a quality argument when generating PNG files.
52
+ * It only works on newer versions of vips, breaking builds when using older
53
+ versions (such as when deploying to netlify.)
54
+ * It's not remarkably useful in the first place.
50
55
  * 2.0.1 March 31, 2021
51
56
  * Select imagemagick deliberately when appropriate, rather than simply rescuing all vips errors
52
57
  and trying again. This will stop JPT from suppressing useful vips errors.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_picture_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Wierzbowski