railsui_icon 1.0.0 → 1.0.1

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: baab21cf3d7e083200c74e1edb06316601ceb02bd1e017b7b6e8eb774e0adbd7
4
- data.tar.gz: af39f357c1c666ead3169e841a89712672e7a8c484ac20b6587480c0c78b69a2
3
+ metadata.gz: aabb52a9244cebba3bbe4f27b98de6e641f036623f93c05db799845e6d953fee
4
+ data.tar.gz: 769f0953c601fa3a69b21edc071410827ad11b3c894bcfc38d6603729d42463d
5
5
  SHA512:
6
- metadata.gz: ef5420b719937b189601da6a42998de01c0d3ea12f132e34d165178e0ffdc0c649883e4177f310cd9485de90b612ec6e1632c2d01e5188bd1d78d6e7f78240e7
7
- data.tar.gz: b0f5dae245da6754d7ce28f86e17d0b6c56cefe2b35dd4f6046a9dcb6047f3153849caf7d6ea215b6615a6f85974cdc4e5a0bad1d77872c6b6f1522bd4c34df8
6
+ metadata.gz: f8402b00f1e32a4fd2c99f7cfa409febc378dc7d606f02545644e98828d44197f6b8fd5ee14712c91d4f44b4076807f9eddb0dbb606dcc4a99e88ccb57877eb4
7
+ data.tar.gz: 85700d11e87da59f116e62281a608f712ba031a6720f4ff8e37cbaaf5b48919e646a008d65b08e21ad6025c74b3a2a4c5fa1a6ea249c5ad5f4c1dc583c44d2f3
@@ -19,7 +19,12 @@ module RailsuiIcon
19
19
  def resolve_custom_path(path)
20
20
  return unless path
21
21
 
22
- path
22
+ # Check if the custom path is relative and convert it to an absolute asset path
23
+ if Rails.application.config.assets.paths.any? { |p| path.start_with?(p) }
24
+ path
25
+ else
26
+ ActionController::Base.helpers.asset_path(path)
27
+ end
23
28
  end
24
29
  end
25
30
  end
@@ -1,3 +1,3 @@
1
1
  module RailsuiIcon
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsui_icon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Leverenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-06 00:00:00.000000000 Z
11
+ date: 2024-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails