kamifusen 1.11.1 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c5f7cb46dbd7b04b4a2b3c9a77de1cc53f7f93f21aa716812395f52eb219feb
4
- data.tar.gz: 0c952d9ce72c589239592d191c2e4c15528009fe167cfdbf36277d083dc7b7f7
3
+ metadata.gz: 65c261931b31f7261f7ecb8eef7c33acefffc4d376277bbf51849a2bef265e72
4
+ data.tar.gz: 2e9a99e1178698daa9e755a3c57255b5b64d9bed7e325abc7fa2c674dbf0d02d
5
5
  SHA512:
6
- metadata.gz: 4ee630f8448c64097e653341718771f5d883f9fb7cf1b6639b5f5b975d9d96ddb564476d99cee5836ac849f059cd95a943430c4f0e2f13edb4a3fe07ebe508e7
7
- data.tar.gz: f2821b85680f3ad578c5a0f901645b16ac433d7e3c8608e2bc899996f14863b5011298b2055d62eb8885187f9600c0a59824f55c46b3d22fa562dc3f78ab7716
6
+ metadata.gz: 1060a04a694115c734ddf368d103094de0eddafdcf3c82a9cfdb13b66f01aa9325dbb097ebcbd065d960c6d408bc75096bb7cdc4ad282ec807cb7d8251910ca4
7
+ data.tar.gz: f5bb7e006824b81be617c50901c61fa93ae871a307fc1a75b948ddefdc8b298ceb263d191083992a1a0c8356d281abf2b4f3f9c8cee85bf9d14c233a23de58e7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (1.11.1)
4
+ kamifusen (1.11.2)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -78,14 +78,14 @@ end
78
78
  %>
79
79
  <picture<%= " class=\"#{picture_class}\"".html_safe unless picture_class.blank? %>>
80
80
  <% if Kamifusen.with_webp %>
81
- <source srcset="<%= srcset_webp %>"
81
+ <source srcset="<%= raw srcset_webp %>"
82
82
  <%= " sizes=\"#{sizes_value}\"".html_safe unless sizes.empty? %>
83
83
  type="image/webp">
84
84
  <% end %>
85
- <source srcset="<%= srcset_default %>"
85
+ <source srcset="<%= raw srcset_default %>"
86
86
  <%= " sizes=\"#{sizes_value}\"".html_safe unless sizes.empty? %>
87
87
  type="<%= source.content_type %>">
88
- <img src="<%= default %>" <%= raw parameters %>>
88
+ <img src="<%= raw default %>" <%= raw parameters %>>
89
89
  </picture>
90
90
  <% else %>
91
91
  <picture>
@@ -17,14 +17,14 @@ module Kamifusen
17
17
  def keycdn_url
18
18
  url = "#{Kamifusen.keycdn}/#{variant.blob.key}?"
19
19
  transformations = variant.variation.transformations
20
- url += "&format=#{transformations[:format]}" if transformations.has_key? :format
21
- url += "&quality=#{transformations[:quality]}" if transformations.has_key? :quality
20
+ url += "format=#{transformations[:format]}&" if transformations.has_key? :format
21
+ url += "quality=#{transformations[:quality]}&" if transformations.has_key? :quality
22
22
  if transformations.has_key? :resize
23
23
  resize = transformations[:resize]
24
24
  # 100>
25
25
  if '>'.in? resize
26
26
  width = resize.split('>').first.to_i
27
- url += "&width=#{width}"
27
+ url += "width=#{width}&"
28
28
  end
29
29
  end
30
30
  url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "1.11.1"
4
+ VERSION = "1.11.2"
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: 1.11.1
4
+ version: 1.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène