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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61185a31bdae5117672878baf5e5f05bf66e1ae8288420d54b9614a8be040176
4
- data.tar.gz: 4a50a5934a684287b428503d17f0f25c400089b17d69ebffd3b14ebebae19436
3
+ metadata.gz: 39fcc15893a5fea23ae7100f394582cb123e3dbe1b1d24351cd1b6a1b51dea12
4
+ data.tar.gz: 628dac26bf2eb4790073755477679a56bc3c8dbc4a67b02201d3aded41f64767
5
5
  SHA512:
6
- metadata.gz: d7ada36299ca1dd019e5dc36431b86bb7af361eef886a92056a1c79066ae83b1e5453ed0320739bed31b0393905ace82fa91a4e7c2dc1b4da259f946a124a986
7
- data.tar.gz: 3d8845a6231bc7429bb6977aaa0289ca9bef05cda5daaf56bd287921c266930365043f848734a4a33b50a9382cfe161d893af8e1282d59b2aed2d8bf2d1a34ed
6
+ metadata.gz: 818bb709d661c9908104cddbe90496950eafbb487d035f22efdd02cda3524b88e77e6cb60cca147bd19617cdca8c8691c13dc8a3e5416b9c73ac2c3d8c72c049
7
+ data.tar.gz: ff9fef8645419e0330affbbfd98d187256803d66001e35aac5038fd3570728ecaa599afd6ce764ef57033637c4c858ebeecc1f6eb75d151e807dafe3f07f2391
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (0.9.2)
4
+ kamifusen (0.9.3)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -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
- webps = sizes.map { |size| "#{ url_for source.variant(resize: "#{size}>", format: :webp, quality: quality) } #{ size } vw" }.join(', ')
22
- jpgs = sizes.map { |size| "#{ url_for source.variant(resize: "#{size}>", format: :jpg, quality: quality) } #{ size } vw" }.join(', ')
23
- default = url_for source.variant(resize: "#{sizes.max}>", format: :jpg, quality: quality)
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="<%= webps %>">
27
- <img src="<%= default %>" srcset="<%= jpgs %>"<%= raw parameters %>>
26
+ <source srcset="<%= srcset_webp %>">
27
+ <img src="<%= default %>" srcset="<%= srcset_default %>"<%= raw parameters %>>
28
28
  </picture>
29
29
  <% else %>
30
30
  <picture>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "0.9.2"
4
+ VERSION = "0.9.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamifusen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène