rails_icons 1.3.0 → 1.4.0

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: ea0d1a2d414fe4308cfd7a65732fe7422e9a1f10edab64f6673cf0a667ef351f
4
- data.tar.gz: 9fa4bab3788760957dce0e13135777fd9a432774fdd2172da077f9d716f5ed5e
3
+ metadata.gz: 3d7cd3efc6fcdd950e2a509b16d65cb70657b5444ac28b3a16e86a36aaae9a68
4
+ data.tar.gz: 41e21e7a5d8fa720b16e90c7a67534de8c2fd2e59eac726408243778e2d90f60
5
5
  SHA512:
6
- metadata.gz: 35389cf6c698b29f48229d34db04108c2471f8cb48f6e7b1d1dca8b812a381bcd6c1601fd39e360339aaa3487944130580881c2fa09323b9eeba1023be9714f3
7
- data.tar.gz: 5ce92e169233c6a19c6e2e6b626996436d2ddda6b0f1c1c2e14d8b20d58b0550ccbab7b47767cabd0f7106ef8646483abdbfca20a3a7dbaf25108746fbf6158c
6
+ metadata.gz: 91571161520d6d7a57b6fc53d7e2a81ec49dfc76c58d922b0c3adb1e706207f55de846b436e7d87803262f18d8dfa0e4a4a7874bf7e8b2770df023f5091d4b7b
7
+ data.tar.gz: 07f2cdb947abed671415af4ec25b784a651acd094581099622bc7e40bf44e98ec70283ee0e1154d974c7a8e6586e1a3a263a88a338c3d0c7af1a42283503443d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_icons (1.3.0)
4
+ rails_icons (1.4.0)
5
5
  nokogiri (~> 1.16, >= 1.16.4)
6
6
  rails (> 6.1)
7
7
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Add any icon library to a Rails app. Rails Icons has first-party support for a [handful of libraries](#first-party-libraries). It is library agnostic so it can be used with any icon library using the same interface.
4
4
 
5
+ ![Rails Icons - A collection of icons from popular libraries like Feather, Lucide, and Heroicons arranged in a grid pattern around the title text](https://raw.githubusercontent.com/Rails-Designer/rails_icons/HEAD/.github/cover.jpg)
6
+
5
7
  ```erb
6
8
  # Using the default icon library
7
9
  icon "check", class: "text-gray-500"
@@ -99,7 +101,7 @@ Rails Icons also includes a few animated icons. Great for loading states and so
99
101
  - `fading-dots`
100
102
  - `bouncing-dots`
101
103
 
102
- Use like this: `icon "faded-spinner", library: "animated"`. The same attributes as the others libraries are available.
104
+ Use like this: `icon "faded-spinner", library: "animated"`. The same attributes as the other libraries are available.
103
105
 
104
106
 
105
107
  ## Custom icon library
@@ -99,5 +99,7 @@ module RailsIcons
99
99
  end
100
100
 
101
101
  def libraries = options[:libraries].map(&:downcase)
102
+
103
+ def validatable? = true
102
104
  end
103
105
  end
@@ -25,5 +25,7 @@ module RailsIcons
25
25
  private
26
26
 
27
27
  def attributes = ["--libraries=#{options[:libraries].map(&:downcase).join(" ")}", "--destination=#{options[:destination]}"].join(" ")
28
+
29
+ def validatable? = true
28
30
  end
29
31
  end
@@ -7,7 +7,7 @@ module RailsIcons
7
7
  def initialize(*arguments)
8
8
  super(*arguments)
9
9
 
10
- validate!
10
+ validate! if validatable?
11
11
  end
12
12
 
13
13
  private
@@ -19,6 +19,8 @@ module RailsIcons
19
19
  raise RailsIcons::LibraryNotFound.new(invalid_libraries.join(", ")) if invalid_libraries.any?
20
20
  end
21
21
 
22
+ def validatable? = false
23
+
22
24
  def invalid_libraries = options.libraries.map(&:to_sym).map(&:downcase).reject { RailsIcons.libraries.key?(_1) }
23
25
 
24
26
  def custom_library? = options.custom.present?
@@ -1,3 +1,3 @@
1
1
  module RailsIcons
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails Designer Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-22 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails