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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac5d87867f1aefd58513112eca2bdf6f8e6e54800bedef9d34be407f06f9f36c
4
- data.tar.gz: 51184fcc333b5dfe492a312677338c8035b5a0f5d658bbb7c4c1247388976311
3
+ metadata.gz: 4f7a533a852ffeab28b6df480a60f0fbba66af2584623452b002e9fdbdc00542
4
+ data.tar.gz: 3cf3ee9729eb163022b408ce36c3b9e268d4a9b7ca6584cc817d73310cf898e2
5
5
  SHA512:
6
- metadata.gz: ea63f9c2fb9d2983168f13bb9fc14e86c23c1e142c4a5d1e354a079038b00e82d51c0655d893c7bd913814963b9850b2df81d3627e51909932bdc91b4f9743e9
7
- data.tar.gz: 331963ec48860c5eefb19461232da7628927ea7f7eac29856090559bb6b112f659551f02f9d55c2a6641d779e0adcc6eebc264cbf4143991eda9db506c821a90
6
+ metadata.gz: 1b7debce9144184c4aad46e897fc6749ee91d7ba1e056a21b22fb9855e9fbdb197d866d706cb78c762d010352d3f8c975a6149bdc77ffa1add050495ac52c16b
7
+ data.tar.gz: 8419fa6cfb24a7efbbca607c3917bbf78717025706a492f079fcc423093e74c558f39db11ce3e342c31a7ebcbe6542436fa918f30e7d11ddc6e281f7e43e0bf6
@@ -4,5 +4,11 @@
4
4
  },
5
5
  "[markdown]": {
6
6
  "editor.defaultFormatter": "esbenp.prettier-vscode"
7
+ },
8
+ "[javascript]": {
9
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
10
+ },
11
+ "[json]": {
12
+ "editor.defaultFormatter": "vscode.json-language-features"
7
13
  }
8
14
  }
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
@@ -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.add_runtime_dependency("activesupport", ">= 6")
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:, unsafe: false, **attributes)
10
- attrs = { name: name, variant: variant, unsafe: unsafe }.merge(attributes)
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
  )