classy-yaml 1.6.3 → 1.7.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: cfa2918c280b98d057c1bd925748bdb1ed1465c79aab4a8036d2719b5fc27aa9
4
- data.tar.gz: c369c70305daa789104dc7fc22382fa6a5c0bead389fe8cf9281ed44af2380e5
3
+ metadata.gz: afbd609fcea95d0b745fe2aa147dc38e2f34b22d18fe315ef905d75988d21555
4
+ data.tar.gz: 7862d4e6f955b973052b53ebeeca9fa879101594e47673a8940ea10baaeb4634
5
5
  SHA512:
6
- metadata.gz: 2163cfa1fb3a1ef13fdb2ea5aaaf9f19d7b3455c83ca9371d05d26f108e333182f9fcfc2b4bbccdb8a0cb74171bf87a848385c4d63c78275ba4f33178b63ea4a
7
- data.tar.gz: 2a81a41540499d74bb38d21597f7feb19aaeb6daaf37cf5ae94c097072e748fac2f4b0994ab3f5d3d86fd8e1d5ff141981d819c784016c3b1d4f9f99870ce62e
6
+ metadata.gz: d42aa732b1e4c1feeff22ffc8cb3b0f47ea31a48be7b1bf5b26141e6e8f3a9c9047cd6c9aaba8f302e2eb61a42cc3c0dc50f0e0f8d5b942755207fb842f7545a
7
+ data.tar.gz: cd52524424ae4e255044a54de0f6b94cf76e67dea5ffc823a3829b7b897f6b4ff32d90c576e5d76f3afa90cc8054328e6734916f14ca5a3da980d15dece785d4
@@ -0,0 +1,15 @@
1
+ module Classy
2
+ module Yaml
3
+ module IconHelper
4
+ include Classy::Yaml::Helpers
5
+
6
+ def icon(name, **arguments)
7
+ val = arguments[:class]
8
+ if val.is_a?(Symbol) || val.is_a?(Hash) || val.is_a?(Array)
9
+ arguments[:class] = yass(val)
10
+ end
11
+ super(name, **arguments)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Classy
2
2
  module Yaml
3
- VERSION = "1.6.3"
3
+ VERSION = "1.7.0"
4
4
  end
5
5
  end
data/lib/classy/yaml.rb CHANGED
@@ -93,6 +93,16 @@ module Classy
93
93
  ActiveSupport.on_load(:action_view) do
94
94
  ActionView::Helpers::TagHelper::TagBuilder.prepend(Classy::Yaml::TagHelper)
95
95
  end
96
+
97
+ apply_icon_helper_override
98
+ end
99
+
100
+ def self.apply_icon_helper_override
101
+ return unless defined?(RailsIcons::Helpers::IconHelper)
102
+
103
+ require "classy/yaml/icon_helper"
104
+
105
+ RailsIcons::Helpers::IconHelper.prepend(Classy::Yaml::IconHelper)
96
106
  end
97
107
 
98
108
  def self.load_engine_yamls
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classy-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tonksthebear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-20 00:00:00.000000000 Z
11
+ date: 2026-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -150,6 +150,7 @@ files:
150
150
  - lib/classy/yaml/component_helpers.rb
151
151
  - lib/classy/yaml/engine.rb
152
152
  - lib/classy/yaml/helpers.rb
153
+ - lib/classy/yaml/icon_helper.rb
153
154
  - lib/classy/yaml/invalid_key_error.rb
154
155
  - lib/classy/yaml/tag_helper.rb
155
156
  - lib/classy/yaml/version.rb