kamifusen 0.9.2 → 0.9.3
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 +5 -5
- data/lib/kamifusen/version.rb +1 -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: 39fcc15893a5fea23ae7100f394582cb123e3dbe1b1d24351cd1b6a1b51dea12
|
4
|
+
data.tar.gz: 628dac26bf2eb4790073755477679a56bc3c8dbc4a67b02201d3aded41f64767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 818bb709d661c9908104cddbe90496950eafbb487d035f22efdd02cda3524b88e77e6cb60cca147bd19617cdca8c8691c13dc8a3e5416b9c73ac2c3d8c72c049
|
7
|
+
data.tar.gz: ff9fef8645419e0330affbbfd98d187256803d66001e35aac5038fd3570728ecaa599afd6ce764ef57033637c4c858ebeecc1f6eb75d151e807dafe3f07f2391
|
data/Gemfile.lock
CHANGED
@@ -18,13 +18,13 @@ parameters += " class=\"#{ options[:class] }\"" if klass
|
|
18
18
|
quality = 80
|
19
19
|
# Computing
|
20
20
|
sizes.reject! { |size| size > width * 2 } if width
|
21
|
-
|
22
|
-
|
23
|
-
default = url_for source.variant(resize: "#{sizes.max}>",
|
21
|
+
srcset_webp = sizes.map { |size| "#{ url_for source.variant(resize: "#{size}>", format: :webp, quality: quality) } #{ size } vw" }.join(', ')
|
22
|
+
srcset_default = sizes.map { |size| "#{ url_for source.variant(resize: "#{size}>", quality: quality) } #{ size } vw" }.join(', ')
|
23
|
+
default = url_for source.variant(resize: "#{sizes.max}>", quality: quality)
|
24
24
|
%>
|
25
25
|
<picture>
|
26
|
-
<source srcset="<%=
|
27
|
-
<img src="<%= default %>" srcset="<%=
|
26
|
+
<source srcset="<%= srcset_webp %>">
|
27
|
+
<img src="<%= default %>" srcset="<%= srcset_default %>"<%= raw parameters %>>
|
28
28
|
</picture>
|
29
29
|
<% else %>
|
30
30
|
<picture>
|
data/lib/kamifusen/version.rb
CHANGED