railsui_icon 1.0.5 → 1.0.7

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: 1bd7919c8f13f907f53889eefdb415673f37e32efa162e1935adac97101e36fd
4
- data.tar.gz: 3b57157b1c05982a935e0eac257418b47a64cdbccb62e531829e42d88608d5db
3
+ metadata.gz: b30b1a0ea5d66e059caafce32b6971356bd337595d414ea636e449c868e9abc5
4
+ data.tar.gz: 3facdb347e3181a84ac7c495fbaf618b80a7b995d223fc65aa3a71d61561eb4a
5
5
  SHA512:
6
- metadata.gz: b214074a637067755e3e7776bbb8f89a562ec1133d74460bf5ae4d0138fb67e58cc4566efe3f0f17750d422e1b4b5b15a717b2caf12ad316b825c5383d853332
7
- data.tar.gz: e5bb3544be5dfcdd49d3219e5e22a632bbaab53a37c281a8b850fb3e783a34b77486b3807bae54813200b2359d0cdbc9582ac162c8ce4a36689a551219710f7b
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, :custom_icon_paths
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
@@ -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
@@ -54,7 +54,7 @@ module RailsuiIcon
54
54
  app_asset_path = Rails.root.join("app/assets/images#{custom_path}")
55
55
 
56
56
  if File.exist?(app_asset_path)
57
- asset_path = app_asset_path
57
+ asset_path = app_asset_path.to_s
58
58
  end
59
59
 
60
60
  raise ArgumentError, "Asset path cannot be nil" if asset_path.nil?
@@ -1,3 +1,3 @@
1
1
  module RailsuiIcon
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.7"
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.5
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-07-30 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails