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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 608a89c3b63fc76ccae7161345696b3a88bfefca866d4fb5eb6db9bd55a13b28
4
- data.tar.gz: 2f3eeaa3fc192e75601c91d2158b0f08cc447868f7a1becf7691fb2d47c107c2
3
+ metadata.gz: 0c99d3d7cf35f8a2638dd1644e929829ebb9630d0c3690f9c524fe262cfc2502
4
+ data.tar.gz: c27feb212a32c118e5ef4ed0a3768bec866ac1b55af24ce6f177ad56571a8505
5
5
  SHA512:
6
- metadata.gz: 5a0a53fc22b492bb06a50c44d49a6d475d26e06a95cc2b7d1f35089321905296e01dce2f734f1c41580fc5737ad2743b341a24b7654d7c568a42d2eeb6a422dc
7
- data.tar.gz: 76ab6206aec99cd8c78c12748233a520d75f9d647c296be1281fb1c14577f6317e8d8110467aade75e3b781197699e7b4e94ba7ade3ee042840677da3b80ea3c
6
+ metadata.gz: e45ce5aaff2bb28c1d93f11cb2cbd678de2f94f602d81263773866b15ec6b0a60adb7c6fe0f08c0287831eb1483d5604f3c606d0b3e61c551f5056b831bb9964
7
+ data.tar.gz: 0c0c2112320a9acec1bf5ea7680547d614c6a79f2a5f4f8502c52ec76df2a213db5c3ce8283fe7ca7cb25c776f2c215d57f1469a3b3dde116ec7cde3dfb69d39
@@ -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
- def heroicon(name, variant: Heroicons.configuration.variant, options: {}, path_options: {})
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
@@ -1,3 +1,3 @@
1
1
  module Heroicons
2
- VERSION = "2.1.1"
2
+ VERSION = "2.2.0"
3
3
  end
data/lib/heroicons.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "heroicons/engine"
2
2
  require "heroicons/icon"
3
3
  require "heroicons/configuration"
4
+ require "heroicons/helper"
4
5
 
5
6
  module Heroicons
6
7
  def self.root
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.1.1
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-04-10 00:00:00.000000000 Z
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