heroicons_helper 0.7.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vscode/settings.json +6 -0
- data/CHANGELOG.md +17 -0
- data/heroicons_helper.gemspec +1 -1
- data/lib/heroicons_helper/cache.rb +2 -9
- data/lib/heroicons_helper/data.json +1 -1
- data/lib/heroicons_helper/icon.rb +22 -51
- data/lib/heroicons_helper/version.rb +1 -1
- data/lib/heroicons_helper.rb +4 -4
- data/package-lock.json +111 -39
- data/script/update_heroicons +22 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7a533a852ffeab28b6df480a60f0fbba66af2584623452b002e9fdbdc00542
|
4
|
+
data.tar.gz: 3cf3ee9729eb163022b408ce36c3b9e268d4a9b7ca6584cc817d73310cf898e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b7debce9144184c4aad46e897fc6749ee91d7ba1e056a21b22fb9855e9fbdb197d866d706cb78c762d010352d3f8c975a6149bdc77ffa1add050495ac52c16b
|
7
|
+
data.tar.gz: 8419fa6cfb24a7efbbca607c3917bbf78717025706a492f079fcc423093e74c558f39db11ce3e342c31a7ebcbe6542436fa918f30e7d11ddc6e281f7e43e0bf6
|
data/.vscode/settings.json
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# [v0.9.0] - 03-09-2024
|
2
|
+
## What's Changed
|
3
|
+
* Update heroicons by @gjtorikian in https://github.com/gjtorikian/heroicons_helper/pull/4
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/gjtorikian/heroicons_helper/compare/v0.8.0...v0.9.0
|
7
|
+
## [v0.8.0] - 05-04-2024
|
8
|
+
## What's Changed
|
9
|
+
* Bump the github-actions group with 1 update by @dependabot in https://github.com/gjtorikian/heroicons_helper/pull/2
|
10
|
+
* V1 by @gjtorikian in https://github.com/gjtorikian/heroicons_helper/pull/3
|
11
|
+
|
12
|
+
## New Contributors
|
13
|
+
* @dependabot made their first contribution in https://github.com/gjtorikian/heroicons_helper/pull/2
|
14
|
+
|
15
|
+
**Full Changelog**: https://github.com/gjtorikian/heroicons_helper/compare/v0.7.1...v0.8.0
|
16
|
+
## [v0.7.1] - 14-08-2023
|
17
|
+
null
|
1
18
|
## [Unreleased]
|
2
19
|
|
3
20
|
## [0.1.0] - 2022-06-08
|
data/heroicons_helper.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
-
spec.
|
35
|
+
spec.add_dependency("activesupport", ">= 6")
|
36
36
|
|
37
37
|
# Uncomment to register a new dependency of your gem
|
38
38
|
# spec.add_dependency "example-gem", "~> 1.0"
|
@@ -6,14 +6,8 @@ module HeroiconsHelper
|
|
6
6
|
LOOKUP = {}
|
7
7
|
|
8
8
|
class << self
|
9
|
-
def get_key(name:, variant:,
|
10
|
-
attrs = { name: name, variant: variant
|
11
|
-
if unsafe
|
12
|
-
attrs[:unsafe] = true
|
13
|
-
else
|
14
|
-
attrs.delete(:unsafe)
|
15
|
-
attrs[:safe] = true
|
16
|
-
end
|
9
|
+
def get_key(name:, variant:, **attributes)
|
10
|
+
attrs = { name: name, variant: variant }.merge(attributes)
|
17
11
|
|
18
12
|
attrs.compact!
|
19
13
|
attrs.hash
|
@@ -59,7 +53,6 @@ module HeroiconsHelper
|
|
59
53
|
cache_key = HeroiconsHelper::Cache.get_key(
|
60
54
|
name: icon["name"],
|
61
55
|
variant: icon["variant"],
|
62
|
-
unsafe: icon["unsafe"] || false,
|
63
56
|
height: height,
|
64
57
|
width: width,
|
65
58
|
)
|