kamifusen 1.5 → 1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/views/kamifusen/_view.html.erb +4 -3
- data/lib/kamifusen/version.rb +1 -1
- data/lib/kamifusen/view_helper.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e4345e5d359096961d48f2c5477fbcdf6fafec4b84f2ca32dc6e410a2502fa
|
4
|
+
data.tar.gz: d2b920f457438f5652c14cffd7d14032637549e10a753f1244cb95da3706e475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c68441c27a9e4533d74975f2a57ebb0bffa59bfe66cc32f9ce2846c897d090b24d3ebf338fbc5de180d2368f4b56a84e81258b9866552f691e5f8740b934d2
|
7
|
+
data.tar.gz: 3334ffd8b926960203b4586f779130d00ad6d2c0010d02e7f2b419bfd2d2389d11be128f8901970fbff5f8f2705e9dbbb5ace3dda2bd7ec01f4f5dfc1719d20c
|
data/Gemfile.lock
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
# image_tag options
|
3
3
|
options ||= {}
|
4
4
|
alt = options[:alt]
|
5
|
-
async = options[:
|
5
|
+
async = options.has_key?(:async) ? options[:async]
|
6
|
+
: true
|
6
7
|
klass = options[:class]
|
7
8
|
picture_class = options[:picture_class]
|
8
9
|
width = options[:width]
|
@@ -34,8 +35,8 @@ if source&.metadata &&
|
|
34
35
|
width = width.round
|
35
36
|
height = height.round
|
36
37
|
end
|
37
|
-
parameters = "
|
38
|
-
parameters
|
38
|
+
parameters = ""
|
39
|
+
parameters += " loading=\"lazy\" decoding=\"async\"" if async
|
39
40
|
parameters += " alt=\"#{ alt }\"" if alt
|
40
41
|
parameters += " width=\"#{ width }\"" if width
|
41
42
|
parameters += " height=\"#{ height }\"" if height
|
data/lib/kamifusen/version.rb
CHANGED