avo-icons 0.1.4 → 0.1.5

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: b6d12ac529464a2f49e76c4554a3f2e177cc0f554729c013d669c7c3a4f9a453
4
- data.tar.gz: 70c51a9c845ecd3efd846fca56d1c121380ce3ac0c0094e6182ffbe2b6a9f556
3
+ metadata.gz: '0804ba0dacb221d4b02e49d550e5c2a1e58527f2dffe5bf21779f37ed6359655'
4
+ data.tar.gz: 0b9ad1b3eefe21c05f02d3bed0c0733a73fa6dadead0dae0cacb3eb216e9fc89
5
5
  SHA512:
6
- metadata.gz: 45a569944fa42c26763b9284d0b8fa5f4f8d29abe97b01493fae11dda47e5e42142b442799a00ee5921826bb2de72fba37248cd00af39961855a74c715cfa8b4
7
- data.tar.gz: 2928dd7f36656c72d5d05881da6d2897ec43657feabe0cb29be53a8591277815d9cedd75c9c12d54fc11625ab7419c8993fda6d03501314ad9f41b337a2ddcd3
6
+ metadata.gz: 229478a6201fe6a21ae21ab5eefdf62d1ec46a46bf96209790d2a8affa2e6ca2d9c7dc2771c2a4f2f13594b86d4a98f436e7eb23d1e276e4a5de1b9adfa1fdfd
7
+ data.tar.gz: 7db4d43b9986e37c0ef604ee25cb147efc0fd8f7f516eb13aca39d3f8e6764034ece58d79faada6c459e700bca7f409187951485d9ad06b9121ca403b5d6cda2
@@ -21,4 +21,3 @@ module Avo
21
21
  end
22
22
  end
23
23
  end
24
-
@@ -24,8 +24,9 @@ module Avo
24
24
  # https://github.com/jamesmartin/inline_svg/blob/main/lib/inline_svg/action_view/helpers.rb#L61
25
25
  def placeholder(filename)
26
26
  css_class = "avo-missing-svg"
27
+ escaped_filename = ERB::Util.html_escape_once(filename.to_s)
27
28
  missing_icon = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-ice-cream-off"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 21.5v-4.5" /><path d="M8 8v9h8v-1m0 -4v-5a4 4 0 0 0 -7.277 -2.294" /><path d="M8 10.5l1.74 -.76m2.79 -1.222l3.47 -1.518" /><path d="M8 14.5l4.488 -1.964" /><path d="M3 3l18 18" /></svg>'
28
- "<div data-tippy='tooltip' class='#{css_class}' style='width: 2rem; height: 2rem; color: #ef4444;' title='SVG file not found: #{filename}'><!-- SVG file not found: '#{ERB::Util.html_escape_once(filename)}' -->#{missing_icon}</div>".html_safe
29
+ "<div data-tippy='tooltip' class='#{css_class}' style='width: 2rem; height: 2rem; color: #ef4444;' title='SVG file not found: #{escaped_filename}'><!-- SVG file not found: '#{escaped_filename}' -->#{missing_icon}</div>".html_safe
29
30
  end
30
31
 
31
32
  # Taken from the original library
@@ -40,4 +41,3 @@ module Avo
40
41
  end
41
42
  end
42
43
  end
43
-
@@ -1,5 +1,5 @@
1
1
  module Avo
2
2
  module Icons
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
data/lib/avo/icons.rb CHANGED
@@ -12,7 +12,7 @@ module Avo
12
12
  attr_accessor :cached_svgs
13
13
 
14
14
  def root
15
- Pathname.new File.expand_path('..', __dir__)
15
+ Pathname.new File.expand_path("..", __dir__)
16
16
  end
17
17
 
18
18
  def configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo-icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Bob
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-04-27 00:00:00.000000000 Z
12
+ date: 2026-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inline_svg