fluent-icons 1.0.1.167 → 1.0.2.167

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: c3b24a031cb21dade8a20d9f62abfe29a397574c8528e947cc225f98a5c76998
4
- data.tar.gz: 0f82fdefe98f8ccc8e8fafb3d31ac8e98296c10fcb3a1adc99b355a4b47907ae
3
+ metadata.gz: 06f01ce9dd4b5caa2a6f40bf6576d766501383c008a9e415c58a1f486ee61731
4
+ data.tar.gz: 073c4054c91aee822e6fb2864685ed41ad300bc73a57cb869dcddc21c7622b41
5
5
  SHA512:
6
- metadata.gz: 4267ee4274d38cc6ad4196d97ff64df55cb96c905ef109b786d697cccead20d1631f54286568a07b52a7fdf0257725b0f339cc9b48d42bf03ad3ac7948ebd992
7
- data.tar.gz: fcc0cb81f92d22414c60a3b0db28c7689785df39a9fa65c230dd2583bc15515fe7f4f1833c09407212574aaa85b74e79270b3c07d0bc6fa36aa031ab3e4b14b3
6
+ metadata.gz: 651f9fccc1df2fccfe6d8263dd93305837b0d68c8b9d2e138bdd4fada31ab4d05d1e4b48182fc11419838b72d1fe877e878846665a84b3fc3f647d6a764b0b7b
7
+ data.tar.gz: 21e3b3e588c826a319a16bd75e121ae26443ae210fc01fdf4293d73891aeeb910d2c607c366c1e91aa4cf3597774e2af1f2bc130ec570a6e0b318950f0aaaa79
@@ -9,7 +9,9 @@ module FluentIcons
9
9
  @weight = (options.delete(:weight) || 20).to_s
10
10
  @prefix = (options.delete(:prefix) || 'fluent').to_s
11
11
 
12
- if (fluent = get_fluent_path(@symbol, style, weight))[:path].nil?
12
+ fluent = get_fluent_path(@symbol, style, weight)
13
+
14
+ if (fluent = get_fluent_path(@symbol, style, weight))&.dig(:path).nil?
13
15
  @path = "<path d=\"M7 4.5C7 4.67123 6.98278 4.83844 6.94999 5H10C10.5523 5 11 5.44772 11 6V8H10C9.49278 8 9.02965 8.18882 8.67709 8.5C8.61444 8.55529 8.55529 8.61444 8.5 8.67709C8.18882 9.02965 8 9.49278 8 10V11H6C5.44772 11 5 10.5523 5 10V6.94999C4.83844 6.98278 4.67123 7 4.5 7C4.32877 7 4.16155 6.98278 4 6.94999V10C4 11.1046 4.89543 12 6 12H8V14C8 14.5072 8.18882 14.9703 8.5 15.3229C8.68196 15.5291 8.90577 15.6974 9.15812 15.8147C9.0548 15.3934 9 14.9531 9 14.5C9 14.3821 9.00371 14.265 9.01102 14.149C9.00376 14.1004 9 14.0506 9 14V10C9 9.44772 9.44772 9 10 9H14C14.0506 9 14.1004 9.00376 14.149 9.01102C14.265 9.00371 14.3821 9 14.5 9C14.9531 9 15.3934 9.0548 15.8147 9.15812C15.6974 8.90577 15.5291 8.68196 15.3229 8.5C14.9703 8.18882 14.5072 8 14 8H12V6C12 4.89543 11.1046 4 10 4H6.94999C6.98278 4.16155 7 4.32877 7 4.5ZM6 4.5C6 5.32843 5.32843 6 4.5 6C3.67157 6 3 5.32843 3 4.5C3 3.67157 3.67157 3 4.5 3C5.32843 3 6 3.67157 6 4.5ZM17 4.5C17 5.32843 16.3284 6 15.5 6C14.6716 6 14 5.32843 14 4.5C14 3.67157 14.6716 3 15.5 3C16.3284 3 17 3.67157 17 4.5ZM6 15.5C6 16.3284 5.32843 17 4.5 17C3.67157 17 3 16.3284 3 15.5C3 14.6716 3.67157 14 4.5 14C5.32843 14 6 14.6716 6 15.5ZM19 14.5C19 16.9853 16.9853 19 14.5 19C12.0147 19 10 16.9853 10 14.5C10 12.0147 12.0147 10 14.5 10C16.9853 10 19 12.0147 19 14.5ZM16.3536 13.3536C16.5488 13.1583 16.5488 12.8417 16.3536 12.6464C16.1583 12.4512 15.8417 12.4512 15.6464 12.6464L14.5 13.7929L13.3536 12.6464C13.1583 12.4512 12.8417 12.4512 12.6464 12.6464C12.4512 12.8417 12.4512 13.1583 12.6464 13.3536L13.7929 14.5L12.6464 15.6464C12.4512 15.8417 12.4512 16.1583 12.6464 16.3536C12.8417 16.5488 13.1583 16.5488 13.3536 16.3536L14.5 15.2071L15.6464 16.3536C15.8417 16.5488 16.1583 16.5488 16.3536 16.3536C16.5488 16.1583 16.5488 15.8417 16.3536 15.6464L15.2071 14.5L16.3536 13.3536Z\" fill=\"currentColor\" />"
14
16
  else
15
17
  @path = fluent[:path]
@@ -12,10 +12,11 @@ module FluentIcons
12
12
  cache_key = [symbol, options]
13
13
 
14
14
  unless (tag = fluent_helper_cache[cache_key])
15
- fluent_helper_cache[cache_key] = FluentIcons::Fluent.new(symbol, options).to_svg
15
+ icon = FluentIcons::Fluent.new(symbol, options)
16
+ fluent_helper_cache[cache_key] = icon.to_svg
16
17
  end
17
18
 
18
- tag
19
+ tag&.html_safe
19
20
  end
20
- alias_method :fluent_icon, :fluent
21
+ alias :fluent_icon :fluent
21
22
  end
@@ -1,4 +1,4 @@
1
1
  module FluentIcons
2
2
  FLUENT_UI_ICONS_VERSION = '1.1.167'.freeze
3
- VERSION = '1.0.1.167'.freeze
3
+ VERSION = '1.0.2.167'.freeze
4
4
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.167
4
+ version: 1.0.2.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Radulescu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-22 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: railties
14
+ name: actionview
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6'
27
27
  - !ruby/object:Gem::Dependency
28
- name: actionview
28
+ name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="