jekyll-heroicons 0.4.1 → 0.4.2

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: 1dae35ec57464428cb9ef7b5a914489ed06fa4f0f0be2ad43bacfd4845447b34
4
- data.tar.gz: d577ef931e1ea5cae714f6a185f1666d870617e8eeceb8cdc43c6d07c9105b33
3
+ metadata.gz: aaacd8df25bd57a8be6b0dd2ae3b3f7aa50370507c64f792b93422d15dd99c02
4
+ data.tar.gz: 888790e9235e7cf2a779df4236938a65f04806e5c2bf469351257061438bb72d
5
5
  SHA512:
6
- metadata.gz: 22753cd62b78f18d50b0619a5adb8de03d1a636129c3eba68d9bc8f857cc1770b54d114b1617de71e835b0df38024b2054c9857ce8bf170dd4adc341b6739dfd
7
- data.tar.gz: 4bd29bcfc2442e0828a717e2430b8f9b915d0420a6ca8fbfda41231b8fa328fb5275f752a113c204c173b230652cd4d41d79972b9e2f4b36612ad78ca1687984
6
+ metadata.gz: e89e45a4c265c9362dc1dc92878977b7af18ffb398941bd173b2cf1d61004ca0aeb34289f44bbb295cc562b19f69481443e6309e52cc394194c59210f62e1732
7
+ data.tar.gz: f415b568b48d2a0936b7e5d2d4cd366cc60f56b5d3073433eae4e760f3c24c3d1bfc3be19ff5b3e94fe3ca773940392c5523668465a375d677a501f1aab5bbae
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Jekyll-Heroicons
2
2
 
3
+ ## 0.4.2
4
+ ### Fixed
5
+ - "variant" method will not error out if configuration is missing, will use DEFAULT_VARIANT instead.
6
+
3
7
  ## 0.4.1
8
+ ### Changed
4
9
  - Don't reload configuration on every change
5
10
  - Improve comments and code around picking default variants.
6
11
 
@@ -5,6 +5,6 @@ module Liquid; class Tag; end; end
5
5
 
6
6
  module Jekyll
7
7
  class Heroicons < Liquid::Tag
8
- VERSION = "0.4.1"
8
+ VERSION = "0.4.2"
9
9
  end
10
10
  end
@@ -63,13 +63,7 @@ module Jekyll
63
63
 
64
64
  # This method checks if heroicons liquid tag has a variant specified. If not, it check default variant in the config file. If both of those are not defined, it falls back to the default variant.
65
65
  def variant(markup)
66
- if @options.key?(:variant)
67
- @options[:variant]
68
- elsif config["variant"]
69
- config["variant"]
70
- else
71
- DEFAULT_VARIANT
72
- end
66
+ @options&.dig(:variant) || config&.dig("variant") || DEFAULT_VARIANT
73
67
  end
74
68
 
75
69
  def prepend_default_classes
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-heroicons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav (Stas) Katkov
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
10
+ date: 2025-02-10 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -1348,7 +1347,6 @@ licenses:
1348
1347
  metadata:
1349
1348
  homepage_uri: https://github.com/skatkov/jekyll-heroicons
1350
1349
  source_code_uri: https://github.com/skatkov/jekyll-heroicons
1351
- post_install_message:
1352
1350
  rdoc_options: []
1353
1351
  require_paths:
1354
1352
  - lib
@@ -1363,8 +1361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1363
1361
  - !ruby/object:Gem::Version
1364
1362
  version: '0'
1365
1363
  requirements: []
1366
- rubygems_version: 3.5.11
1367
- signing_key:
1364
+ rubygems_version: 3.6.3
1368
1365
  specification_version: 4
1369
1366
  summary: Jekyll liquid tags for Heroicons.
1370
1367
  test_files: []