heroicons_helper 0.7.1 → 0.8.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 +2 -0
- 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 +15 -15
- 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: 28720863a41facb4bb2880743d85a24110f57bf4e17ad0b84333e09eddbf1899
|
4
|
+
data.tar.gz: 7e6e0743470659c4c6463c5d10e568ceea9e6d27f8d29dca2d369a86c92e96e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6aa5b6a36a845f2519b53fe14868b1f5f37b2aeeda072d9bc0032f93d03f2168a7d08aec5f7d0c39967e0337ba042ec47e8c69a27869fce2d23060bc11fa531
|
7
|
+
data.tar.gz: 62bff5b69f019356962b10433a443a1748d732e8c5075d2df0939f23552319c89d49a742f957fcbfb67cef346038af646a637888119bc359bf0594c90b7b3253
|
data/.vscode/settings.json
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
)
|