railsui_icon 1.0.6 → 1.0.7
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 +4 -4
- data/lib/railsui_icon/configuration.rb +1 -2
- data/lib/railsui_icon/helpers.rb +3 -3
- data/lib/railsui_icon/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: b30b1a0ea5d66e059caafce32b6971356bd337595d414ea636e449c868e9abc5
|
4
|
+
data.tar.gz: 3facdb347e3181a84ac7c495fbaf618b80a7b995d223fc65aa3a71d61561eb4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 739f988655f3d8af6de8b6ef8885de4d4d5ac96aeb93cd1ba716a62cb6528378c34e34abe76e02ec8a19ee623d22ff61b46055c3239cab28bc163bd1867519e5
|
7
|
+
data.tar.gz: 592e6ba1c9a9665ee28eb754bee98cee221c05a58cc0524d9e3761ee1df3e51b136ee7fa5e94933785e2736f8e4711efc0ac98b597e1667ae0e77c68dca1ad7b
|
@@ -2,12 +2,11 @@
|
|
2
2
|
|
3
3
|
module RailsuiIcon
|
4
4
|
class Configuration
|
5
|
-
attr_accessor :default_class, :default_variant
|
5
|
+
attr_accessor :default_class, :default_variant
|
6
6
|
|
7
7
|
def initialize
|
8
8
|
@default_class = ""
|
9
9
|
@default_variant = :outline
|
10
|
-
@custom_icon_paths = []
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
data/lib/railsui_icon/helpers.rb
CHANGED
@@ -19,10 +19,10 @@ module RailsuiIcon
|
|
19
19
|
def resolve_custom_path(path)
|
20
20
|
return unless path
|
21
21
|
|
22
|
-
if Rails.application.config.assets.paths.any? { |p| path.start_with?(p) }
|
23
|
-
path
|
22
|
+
if Rails.application.config.assets.paths.any? { |p| path.to_s.start_with?(p.to_s) }
|
23
|
+
path.to_s
|
24
24
|
else
|
25
|
-
ActionController::Base.helpers.asset_path(path)
|
25
|
+
ActionController::Base.helpers.asset_path(path.to_s)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/lib/railsui_icon/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.7
|
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-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|