heroicons 2.1.1 → 2.2.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 +4 -4
- data/lib/heroicons/engine.rb +1 -8
- data/lib/heroicons/helper.rb +12 -0
- data/lib/heroicons/version.rb +1 -1
- data/lib/heroicons.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c99d3d7cf35f8a2638dd1644e929829ebb9630d0c3690f9c524fe262cfc2502
|
4
|
+
data.tar.gz: c27feb212a32c118e5ef4ed0a3768bec866ac1b55af24ce6f177ad56571a8505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45ce5aaff2bb28c1d93f11cb2cbd678de2f94f602d81263773866b15ec6b0a60adb7c6fe0f08c0287831eb1483d5604f3c606d0b3e61c551f5056b831bb9964
|
7
|
+
data.tar.gz: 0c0c2112320a9acec1bf5ea7680547d614c6a79f2a5f4f8502c52ec76df2a213db5c3ce8283fe7ca7cb25c776f2c215d57f1469a3b3dde116ec7cde3dfb69d39
|
data/lib/heroicons/engine.rb
CHANGED
@@ -3,14 +3,7 @@ module Heroicons
|
|
3
3
|
isolate_namespace Heroicons
|
4
4
|
initializer "heroicons.include_view_helpers" do |app|
|
5
5
|
ActiveSupport.on_load :action_view do
|
6
|
-
|
7
|
-
raw Heroicons::Icon.render(
|
8
|
-
name: name,
|
9
|
-
variant: variant,
|
10
|
-
options: options,
|
11
|
-
path_options: path_options
|
12
|
-
)
|
13
|
-
end
|
6
|
+
include Heroicons::Helper
|
14
7
|
end
|
15
8
|
end
|
16
9
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Heroicons
|
2
|
+
module Helper
|
3
|
+
def heroicon(name, variant: Heroicons.configuration.variant, options: {}, path_options: {})
|
4
|
+
raw Heroicons::Icon.render(
|
5
|
+
name: name,
|
6
|
+
variant: variant,
|
7
|
+
options: options,
|
8
|
+
path_options: path_options
|
9
|
+
)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/heroicons/version.rb
CHANGED
data/lib/heroicons.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroicons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarrett Lusso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -1411,6 +1411,7 @@ files:
|
|
1411
1411
|
- lib/heroicons.rb
|
1412
1412
|
- lib/heroicons/configuration.rb
|
1413
1413
|
- lib/heroicons/engine.rb
|
1414
|
+
- lib/heroicons/helper.rb
|
1414
1415
|
- lib/heroicons/icon.rb
|
1415
1416
|
- lib/heroicons/version.rb
|
1416
1417
|
homepage: https://github.com/jclusso/heroicons
|