kamifusen 1.10.1 → 1.10.2

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: 623f43a95efe95c7f4966df6584d2e92abfa8b870b94e018e0a97a06221cf110
4
- data.tar.gz: e9d1711c003fde435452257b1b43b239f5604606d65c86ba66d1408cae8cfd6d
3
+ metadata.gz: 2fdd71ccadb407398ff0e93515e68ab5baf952c6126b21253f7eed7ed7a23ffe
4
+ data.tar.gz: bcf6bb686e133972a594c28992d2e4c44b8f481da07ebc48667871f1909f41a3
5
5
  SHA512:
6
- metadata.gz: a68d9c2bb398bd911934c2b77b3f08f576045d518b4ab30d01cedac10762c05d2382aa680ee6c3365b7eddeb523329779ffd3e1679d09aa5b10c47462cc51f30
7
- data.tar.gz: 1499e4a4e86300c822a8c812c1e52c80c4b61851aa5bbafb8e04965276afe2923d2f689ffeef617770e9bed8dc7934d55220d2adfb48bd3139a4f71e816dfdd1
6
+ metadata.gz: ea108d4ec53a1083f9c9f25ebcefeef09653f5929049cb6e7e7acb927e7e19fd83575967b2cd56531301e48758f287f748ffbc8dab9414251fd28b672c8009eb
7
+ data.tar.gz: 963dd8eef230ae2fe292a65ad3e74b01a2e1b47ebd264ca6dfbc3e6acda7a753af1acfa8faaf3e87c9dd90b426cc57d67589476dba2413fd12ce3fcf06831fa7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (1.10.1)
4
+ kamifusen (1.10.2)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -158,9 +158,9 @@ GEM
158
158
  sprockets (4.0.2)
159
159
  concurrent-ruby (~> 1.0)
160
160
  rack (> 1, < 3)
161
- sprockets-rails (3.2.2)
162
- actionpack (>= 4.0)
163
- activesupport (>= 4.0)
161
+ sprockets-rails (3.3.0)
162
+ actionpack (>= 5.2)
163
+ activesupport (>= 5.2)
164
164
  sprockets (>= 3.0.0)
165
165
  sqlite3 (1.4.2)
166
166
  thor (1.1.0)
@@ -12,6 +12,7 @@ variant_sizes = Kamifusen.sizes.dup
12
12
  quality = Kamifusen.quality.dup
13
13
 
14
14
  sizes = options[:sizes] || {}
15
+ sizes_value = sizes.map { |key, value| [key, value].join(' ').strip }.join(', ')
15
16
 
16
17
  if source&.analyzed? && source.metadata.has_key?('width') && source.metadata.has_key?('height')
17
18
  image_width = source.metadata['width']
@@ -85,11 +86,11 @@ end
85
86
  <picture<%= " class=\"#{picture_class}\"".html_safe unless picture_class.blank? %>>
86
87
  <% if Kamifusen.with_webp %>
87
88
  <source srcset="<%= srcset_webp %>"
88
- <%= " sizes=\"#{sizes.map { |key, value| [key, value].join(' ') }.join(', ')}\"".html_safe unless sizes.empty? %>
89
+ <%= " sizes=\"#{sizes_value}\"".html_safe unless sizes.empty? %>
89
90
  type="image/webp">
90
91
  <% end %>
91
92
  <source srcset="<%= srcset_default %>"
92
- <%= " sizes=\"#{sizes.map { |key, value| [key, value].join(' ') }.join(', ')}\"".html_safe unless sizes.empty? %>
93
+ <%= " sizes=\"#{sizes_value}\"".html_safe unless sizes.empty? %>
93
94
  type="<%= source.content_type %>">
94
95
  <img src="<%= default %>" <%= raw parameters %>>
95
96
  </picture>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "1.10.1"
4
+ VERSION = "1.10.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.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-11-09 00:00:00.000000000 Z
12
+ date: 2021-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails