jekyll_picture_tag 1.10.1 → 1.10.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: f8139b8ad99ab1d17326fa0a36b19660211d2eeaaf2f013bde294e5c0fd985d1
4
- data.tar.gz: f1b4e609115cd6a27c7438a5bffe7bd954ad193f21c87e5e6804b4d3c4261338
3
+ metadata.gz: ae8370284d1375ba3f33a17cce5aae2b5aa4a5d51dcc23623ec9e7560b7f789a
4
+ data.tar.gz: 9f0c81c49fcbb700e36cc7e3b3152c8a35857cee2121de3ccfac98e8cf4eaa7c
5
5
  SHA512:
6
- metadata.gz: c5a51b1438f0dcdd3ccd00925208e56fe740762451cc9c60603204a044595525f44e47285e2b6bc7b9f2f99c644b2d98fd0401f6639a58163cd1334b22a6cd95
7
- data.tar.gz: fb823ff0aef8a29989495663e3d108add494609e9c7956865d379fb8a5b05aa79e9a66fb504f073ae204631b3b9dd9a502fc3a13763d6b9d3e6af5384d70c470
6
+ metadata.gz: 76b323add40a8ba56004f7e51371baa5a7b1c5c611cdca526ed0757fb7b746714674ad03f3d598cb5c4532bbbdcebc08a6ae7e531fcfdf52917c5d12d70574d9
7
+ data.tar.gz: 5911cd5b66f9638809ff7296a9a54fad639e5b87a68c892eaed47b54fa1f615eaa2afc15a2266ce59bbd1c05779ef56d0d5e7eb00bcf6e8469673e52ea250542
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  ---
3
3
  # Release History
4
-
4
+ * 1.10.2 July 6, 2020
5
+ * Bugfix for fallback image files not actually getting generated
5
6
  * 1.10.1 July 2, 2020
6
7
  * Bugfix for erroneously regenerated images
7
8
  * 1.10.0 May 11, 2020
@@ -73,24 +73,24 @@ module PictureTag
73
73
  def build_fallback_image
74
74
  return fallback_candidate if fallback_candidate.exists?
75
75
 
76
- build_new_fallback_image
77
- end
78
-
79
- def fallback_candidate
80
- @fallback_candidate ||= GeneratedImage.new(
76
+ image = GeneratedImage.new(
81
77
  source_file: PictureTag.source_images.first,
82
78
  format: PictureTag.fallback_format,
83
- width: PictureTag.fallback_width,
79
+ width: checked_fallback_width,
84
80
  crop: PictureTag.crop,
85
81
  gravity: PictureTag.gravity
86
82
  )
83
+
84
+ image.generate
85
+
86
+ image
87
87
  end
88
88
 
89
- def build_new_fallback_image
90
- GeneratedImage.new(
89
+ def fallback_candidate
90
+ @fallback_candidate ||= GeneratedImage.new(
91
91
  source_file: PictureTag.source_images.first,
92
92
  format: PictureTag.fallback_format,
93
- width: checked_fallback_width,
93
+ width: PictureTag.fallback_width,
94
94
  crop: PictureTag.crop,
95
95
  gravity: PictureTag.gravity
96
96
  )
@@ -1,3 +1,3 @@
1
1
  module PictureTag
2
- VERSION = '1.10.1'.freeze
2
+ VERSION = '1.10.2'.freeze
3
3
  end
data/readme.md CHANGED
@@ -49,6 +49,8 @@ Latest versions:
49
49
  * Documentation improvements
50
50
  * 1.10.1 July 2, 2020
51
51
  * Bugfix for erroneously regenerated images
52
+ * 1.10.2 July 6, 2020
53
+ * Bugfix for fallback image files not actually getting generated
52
54
 
53
55
  ## Help Wanted
54
56
 
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: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Wierzbowski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-02 00:00:00.000000000 Z
13
+ date: 2020-07-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler