kamifusen 1.10.5 → 1.10.6
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 +9 -0
- 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: 93f81ea0cd46f224d042bb77f6610bc4e676ec53e14ad82c617837776fa07e73
|
4
|
+
data.tar.gz: 28be3a228293b600cdc2e812851e5204a72cd68c3b05c2b456cbc65dce258bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6e28fa4ac6f70e3e122597da28952f095900993ef84139d13ce54b6678540594cb4ded2afff8451377cdc316f8853af6b84ed851b7599d5071b3683f0eb72f0
|
7
|
+
data.tar.gz: 62358c3da9d59aa816b8a6d4da3daa899746736365d106f508a97a80e6d7b531f3a3de9ae47282d8dfcd7c1cd121619a1a7d56318308237e8bc004710d615190
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
<%
|
2
2
|
options ||= {}
|
3
|
+
title = options[:title]
|
3
4
|
alt = options[:alt]
|
5
|
+
data = options[:data]
|
4
6
|
async = options.has_key?(:async) ? options[:async] : true
|
5
7
|
active_storage_direct_url = options.has_key?(:active_storage_direct_url) ? options[:active_storage_direct_url] : false
|
6
8
|
klass = options[:class]
|
@@ -40,9 +42,16 @@ end
|
|
40
42
|
parameters = ""
|
41
43
|
parameters += " loading=\"lazy\" decoding=\"async\"" if async
|
42
44
|
parameters += " alt=\"#{alt}\"" if alt
|
45
|
+
parameters += " title=\"#{title}\"" if title
|
43
46
|
parameters += " width=\"#{width}\"" if width
|
44
47
|
parameters += " height=\"#{height}\"" if height
|
45
48
|
parameters += " class=\"#{klass}\"" if klass
|
49
|
+
if data
|
50
|
+
data.each do |entry|
|
51
|
+
parameters += " data-#{entry.first.to_s}=\"#{entry.last}\""
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
46
55
|
|
47
56
|
def kamifusen_process(variant, active_storage_direct_url)
|
48
57
|
if active_storage_direct_url
|
data/lib/kamifusen/version.rb
CHANGED