jekyll_picture_tag 1.10.1 → 1.10.2
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/docs/releases.md +2 -1
- data/lib/jekyll_picture_tag/output_formats/basic.rb +9 -9
- data/lib/jekyll_picture_tag/version.rb +1 -1
- data/readme.md +2 -0
- 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: ae8370284d1375ba3f33a17cce5aae2b5aa4a5d51dcc23623ec9e7560b7f789a
|
4
|
+
data.tar.gz: 9f0c81c49fcbb700e36cc7e3b3152c8a35857cee2121de3ccfac98e8cf4eaa7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b323add40a8ba56004f7e51371baa5a7b1c5c611cdca526ed0757fb7b746714674ad03f3d598cb5c4532bbbdcebc08a6ae7e531fcfdf52917c5d12d70574d9
|
7
|
+
data.tar.gz: 5911cd5b66f9638809ff7296a9a54fad639e5b87a68c892eaed47b54fa1f615eaa2afc15a2266ce59bbd1c05779ef56d0d5e7eb00bcf6e8469673e52ea250542
|
data/docs/releases.md
CHANGED
@@ -73,24 +73,24 @@ module PictureTag
|
|
73
73
|
def build_fallback_image
|
74
74
|
return fallback_candidate if fallback_candidate.exists?
|
75
75
|
|
76
|
-
|
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:
|
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
|
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:
|
93
|
+
width: PictureTag.fallback_width,
|
94
94
|
crop: PictureTag.crop,
|
95
95
|
gravity: PictureTag.gravity
|
96
96
|
)
|
data/readme.md
CHANGED
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.
|
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-
|
13
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|