phosphor_icons 0.3.0 → 0.4.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: 7c8180d026cf26cafca6e51f0e3bcc0ba59e29e766f41fa834c5231ebd6bbe70
4
- data.tar.gz: 600147895d61c593990214f25a8af6e0d432a9b0a71857388ac5a87bc6b689f5
3
+ metadata.gz: a75a0433e6b9c6f64407caca946309ec5a3ffac07d273fe1e39020cf179202d0
4
+ data.tar.gz: 6b128d41cbad4c99b0e649705c0f224034fbbde718b2a3b72b85f8b5b6852fb9
5
5
  SHA512:
6
- metadata.gz: 4d3b6fa323531dc01692250db257c2fad143d065cf7fb621ccc0e15e45b9d0767fe443105d838c86fb3451e50e5d67ac84ad9c0843a49ef675198adcf602b837
7
- data.tar.gz: b4a663991c0d8fdc83641ea313be72c3bc612ca50dad88e4d718001e7278131004b2843b1dc34f3889214e7cbf0fc7d1d9ba459bac533518987410a9d31de32c
6
+ metadata.gz: 98494d7a287955d4ae877f34aabd891e7c3fad6d18c4d1ceff2d3a36108dc2fa10b7c39339e6caccab0da88994cb4c5f3d1cab46b61ea71936a726eb174286b9
7
+ data.tar.gz: b977853c0c041e7a977cb36a62e2342ab0c5b60f22d4eb502e8ce5dc5ad31e0c22d4103882c502f8a57b9b01567c3aa2bed99a2c908ca4854cc4b1681e03d6a7
@@ -17,7 +17,7 @@ module PhosphorIcons
17
17
  @width = phosphor_icon["width"]
18
18
  @height = phosphor_icon["height"]
19
19
  @options = {
20
- class: "phosphor-icon #{options[:class]}".strip,
20
+ class: "phosphor-icon #{extract_class(options[:class])}".strip,
21
21
  viewBox: viewbox,
22
22
  xmlns: "http://www.w3.org/2000/svg",
23
23
  fill: "currentColor",
@@ -45,6 +45,12 @@ module PhosphorIcons
45
45
  attrs.strip
46
46
  end
47
47
 
48
+ def extract_class(option)
49
+ return option unless option.is_a? Array
50
+
51
+ option.join(' ')
52
+ end
53
+
48
54
  def viewbox
49
55
  "0 0 256 256"
50
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PhosphorIcons
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phosphor_icons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maful Prayoga
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: bigdecimal
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: ox
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +86,6 @@ licenses:
73
86
  - MIT
74
87
  metadata:
75
88
  allowed_push_host: https://rubygems.org
76
- post_install_message:
77
89
  rdoc_options: []
78
90
  require_paths:
79
91
  - lib
@@ -88,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  requirements: []
91
- rubygems_version: 3.4.19
92
- signing_key:
103
+ rubygems_version: 4.0.20
93
104
  specification_version: 4
94
105
  summary: Phosphor Icons for Ruby and Rails
95
106
  test_files: []