rubicons 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c34ce514f974fb47c85b16c62244d28b9701aa83a72e6e069f4e6a8e98a90e43
4
- data.tar.gz: 9e50504a467d470257f09408ed6ad0a1979c16003568879a5e170ce52f4b8752
3
+ metadata.gz: '0397031d2f6c8cc5d66e9301f036e1778281109b9a69632d462ce55857c8ff5e'
4
+ data.tar.gz: d6c9b14b23715f34986ce01b364ee7f03dc26db322ab21b7b78ae291dab51bc0
5
5
  SHA512:
6
- metadata.gz: c82a98f111d8525de52b22d1f8c99b580d57f22957a9c06668ae68d0a4f53f89fbf2f3c76cc34a11d990a614057c1425322aedd5b9c1fe72600abeedc5a056fc
7
- data.tar.gz: e8f4b0e7e6bd5e6615899cb141f27adf599d4d1aee606463895f0304071defdea476d70c24f52852ee7af6fcb14a0d35005f477bb4515c81fedc3c6fbe9a5bbe
6
+ metadata.gz: 63e55351941a5a37a0dfbac93e8a37eae0394cc32e6799da269fbc731f2409a9121e14376103eb73aa4ac5ffb262868056715ca8d6d2ee521060ae5843da806e
7
+ data.tar.gz: f6bf432b158d1eb9e3081022edc1c75b037ec68c4bbd25ec2ce86f0eba98ba05e9b1828f7851bc34a651e52d82babd263a21769ad79d02a6b7a27f41e3aa2a3b
@@ -24,13 +24,19 @@ module Rubicons
24
24
  # @option options [String] :class CSS classes to add
25
25
  # @option options [Hash] :size_map custom size mapping
26
26
  # @return [String] rendered SVG
27
- def render_icon(name, icons_path, **options)
28
- render_icon!(name, icons_path, **options)
27
+ def render_icon(name, icons_path, icon_klass, **options)
28
+ if block_given?
29
+ render_icon!(name, icons_path, icon_klass, **options) do |svg_element|
30
+ yield svg_element
31
+ end
32
+ else
33
+ render_icon!(name, icons_path, icon_klass, **options)
34
+ end
29
35
  rescue
30
36
  ''
31
37
  end
32
38
 
33
- def render_icon!(name, icons_path, **options)
39
+ def render_icon!(name, icons_path, icon_klass, **options)
34
40
  icon_path = File.join(icons_path, "#{name}.svg")
35
41
  raise ArgumentError, "Icon '#{name}' not found" unless File.exist?(icon_path)
36
42
 
@@ -44,9 +50,12 @@ module Rubicons
44
50
 
45
51
  svg_element['width'] = svg_size
46
52
  svg_element['height'] = svg_size
47
- svg_element['stroke'] = 'currentColor'
48
- svg_element['fill'] = 'none'
49
- svg_element['viewBox'] = "0 0 #{svg_size} #{svg_size}"
53
+ svg_element['stroke'] = icon_klass.stroke_color
54
+ svg_element['fill'] = icon_klass.fill_color
55
+
56
+ if block_given?
57
+ yield svg_element
58
+ end
50
59
 
51
60
  apply_options_to_svg(svg_element, options)
52
61
 
@@ -23,11 +23,19 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
+ end
32
+
33
+ def fill_color
34
+ 'currentColor'
35
+ end
36
+
37
+ def stroke_color
38
+ 'none'
31
39
  end
32
40
 
33
41
  def available_icons
@@ -23,11 +23,19 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
+ end
32
+
33
+ def fill_color
34
+ 'currentColor'
35
+ end
36
+
37
+ def stroke_color
38
+ 'none'
31
39
  end
32
40
 
33
41
  def available_icons
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'none'
39
+ end
40
+
41
+ def stroke_color
42
+ 'currentColor'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,30 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options) do |svg_element|
27
+ svg_element.css('path').each { |path| path['stroke'] = 'currentColor' } if name.to_s.include?('outline')
28
+ svg_element.css('path').each { |path| path['fill'] = 'currentColor' } if name.to_s.include?('solid')
29
+ end
27
30
  end
28
31
 
29
32
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
33
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options) do |svg_element|
34
+ svg_element.css('path').each { |path| path['stroke'] = 'currentColor' } if name.to_s.include?('outline')
35
+ svg_element.css('path').each { |path| path['fill'] = 'currentColor' } if name.to_s.include?('solid')
36
+ end
31
37
  end
32
38
 
33
39
  def available_icons
34
40
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
41
  end
42
+
43
+ def fill_color
44
+ 'none'
45
+ end
46
+
47
+ def stroke_color
48
+ 'none'
49
+ end
36
50
  end
37
51
  end
38
52
  end
@@ -23,16 +23,34 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options) do |svg_element|
27
+ next unless name.to_s.include?('outline')
28
+
29
+ svg_element['stroke'] = 'currentColor'
30
+ svg_element['fill'] = 'none'
31
+ end
27
32
  end
28
33
 
29
34
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
35
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options) do |svg_element|
36
+ next unless name.to_s.include?('outline')
37
+
38
+ svg_element['stroke'] = 'currentColor'
39
+ svg_element['stroke'] = 'currentColor'
40
+ end
31
41
  end
32
42
 
33
43
  def available_icons
34
44
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
45
  end
46
+
47
+ def fill_color
48
+ 'currentColor'
49
+ end
50
+
51
+ def stroke_color
52
+ 'none'
53
+ end
36
54
  end
37
55
  end
38
56
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -22,16 +22,24 @@ module Rubicons
22
22
  end
23
23
 
24
24
  def icon(name, **options)
25
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
25
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
26
26
  end
27
27
 
28
28
  def icon!(name, **options)
29
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
29
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
30
30
  end
31
31
 
32
32
  def available_icons
33
33
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
34
34
  end
35
+
36
+ def fill_color
37
+ 'none'
38
+ end
39
+
40
+ def stroke_color
41
+ 'currentColor'
42
+ end
35
43
  end
36
44
  end
37
45
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -22,16 +22,24 @@ module Rubicons
22
22
  end
23
23
 
24
24
  def icon(name, **options)
25
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
25
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
26
26
  end
27
27
 
28
28
  def icon!(name, **options)
29
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
29
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
30
30
  end
31
31
 
32
32
  def available_icons
33
33
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
34
34
  end
35
+
36
+ def fill_color
37
+ 'currentColor'
38
+ end
39
+
40
+ def stroke_color
41
+ 'none'
42
+ end
35
43
  end
36
44
  end
37
45
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -23,16 +23,34 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options) do |svg_element|
27
+ if name.to_s.include?('filled')
28
+ svg_element['fill'] = 'currentColor'
29
+ svg_element['stroke'] = 'none'
30
+ end
31
+ end
27
32
  end
28
33
 
29
34
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
35
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options) do |svg_element|
36
+ if name.to_s.include?('filled')
37
+ svg_element['fill'] = 'currentColor'
38
+ svg_element['stroke'] = 'none'
39
+ end
40
+ end
31
41
  end
32
42
 
33
43
  def available_icons
34
44
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
45
  end
46
+
47
+ def fill_color
48
+ 'none'
49
+ end
50
+
51
+ def stroke_color
52
+ 'currentColor'
53
+ end
36
54
  end
37
55
  end
38
56
  end
@@ -20,16 +20,28 @@ module Rubicons
20
20
  end
21
21
 
22
22
  def icon(name, **options)
23
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
23
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options) do |svg_element|
24
+ svg_element.css('path').each { |path| path['fill'] = 'currentColor' }
25
+ end
24
26
  end
25
27
 
26
28
  def icon!(name, **options)
27
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
29
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options) do |svg_element|
30
+ svg_element.css('path').each { |path| path['fill'] = 'currentColor' }
31
+ end
28
32
  end
29
33
 
30
34
  def available_icons
31
35
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
32
36
  end
37
+
38
+ def fill_color
39
+ 'none'
40
+ end
41
+
42
+ def stroke_color
43
+ 'none'
44
+ end
33
45
  end
34
46
  end
35
47
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubicons
4
- VERSION = '0.9.0'
4
+ VERSION = '0.11.0'
5
5
  end
@@ -23,16 +23,24 @@ module Rubicons
23
23
  end
24
24
 
25
25
  def icon(name, **options)
26
- BaseIconSet.render_icon(name, ICONS_PATH, **options)
26
+ BaseIconSet.render_icon(name, ICONS_PATH, self, **options)
27
27
  end
28
28
 
29
29
  def icon!(name, **options)
30
- BaseIconSet.render_icon!(name, ICONS_PATH, **options)
30
+ BaseIconSet.render_icon!(name, ICONS_PATH, self, **options)
31
31
  end
32
32
 
33
33
  def available_icons
34
34
  @available_icons ||= BaseIconSet.available_icons(ICONS_PATH)
35
35
  end
36
+
37
+ def fill_color
38
+ 'currentColor'
39
+ end
40
+
41
+ def stroke_color
42
+ 'none'
43
+ end
36
44
  end
37
45
  end
38
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubicons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - insomnius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-10 00:00:00.000000000 Z
11
+ date: 2025-07-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rubicons is a pure Ruby icon toolkit inspired by react-icons, offering
14
14
  a simple and consistent way to include SVG-based icons in your Ruby applications