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 +4 -4
- data/Gemfile.lock +4 -4
- data/app/views/kamifusen/_view.html.erb +3 -2
- data/lib/kamifusen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fdd71ccadb407398ff0e93515e68ab5baf952c6126b21253f7eed7ed7a23ffe
|
4
|
+
data.tar.gz: bcf6bb686e133972a594c28992d2e4c44b8f481da07ebc48667871f1909f41a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
162
|
-
actionpack (>=
|
163
|
-
activesupport (>=
|
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=\"#{
|
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=\"#{
|
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>
|
data/lib/kamifusen/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|