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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3e9df8ecf7604933c02caca0d1fbc55655836aa0ac5bdd4ea936993e2cfd982
4
- data.tar.gz: 0e50cd9c950072abf3e089883f7e9142a1e2059377392b7529183c38b66a9ceb
3
+ metadata.gz: 93f81ea0cd46f224d042bb77f6610bc4e676ec53e14ad82c617837776fa07e73
4
+ data.tar.gz: 28be3a228293b600cdc2e812851e5204a72cd68c3b05c2b456cbc65dce258bfc
5
5
  SHA512:
6
- metadata.gz: 2e1b63b9fdd6480cd16c2bc4a40a7dbf0b121f20f11ad64bef6aa452f82caa6d4c5d6f03de3b8e41df09687bf876052cb370afdf24e1692a96eb1b764e557f33
7
- data.tar.gz: 5f8203abfea337dba45a86a3432b60634420127f9c1785a5b60853b67f094df2e0ab21417a1fba4f64e957f0af312052c001f421f690e8e68c6ad024ae9a339c
6
+ metadata.gz: f6e28fa4ac6f70e3e122597da28952f095900993ef84139d13ce54b6678540594cb4ded2afff8451377cdc316f8853af6b84ed851b7599d5071b3683f0eb72f0
7
+ data.tar.gz: 62358c3da9d59aa816b8a6d4da3daa899746736365d106f508a97a80e6d7b531f3a3de9ae47282d8dfcd7c1cd121619a1a7d56318308237e8bc004710d615190
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamifusen (1.10.5)
4
+ kamifusen (1.10.6)
5
5
  image_processing
6
6
  rails
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamifusen
4
- VERSION = "1.10.5"
4
+ VERSION = "1.10.6"
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.5
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène