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 +4 -4
- data/lib/classy/yaml/icon_helper.rb +15 -0
- data/lib/classy/yaml/version.rb +1 -1
- data/lib/classy/yaml.rb +10 -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: afbd609fcea95d0b745fe2aa147dc38e2f34b22d18fe315ef905d75988d21555
|
|
4
|
+
data.tar.gz: 7862d4e6f955b973052b53ebeeca9fa879101594e47673a8940ea10baaeb4634
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/classy/yaml/version.rb
CHANGED
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.
|
|
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:
|
|
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
|