basicons 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/basicons/basicon.rb +3 -3
- data/lib/basicons/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4317dc2b0ca155bcf56df5a880671797227047b9a98724055b81020a4197005
|
4
|
+
data.tar.gz: edbb025d188fafb1fbd28544e3524dbf8f86e0b745c5b578451d6dcb285785a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4970bbc6a983d3518846be9f62389b8c5a70d97d27c9ab0b61f77d6d0febf4aadabfc914f50896899054a9d9444700d5637827b3adb9e9b797be1797c4ff815b
|
7
|
+
data.tar.gz: 2e32747044ff27e880dc13e7dac92f56341d20726496de5890c53d3c77bc0b7474608c380ed2afbdd85b89739ded7aa6e8657910d7832a9f8f7e3435d78f35ab
|
data/lib/basicons/basicon.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Basicons
|
2
2
|
class Basicon
|
3
|
-
|
4
|
-
attr_reader :
|
3
|
+
attr_reader :data, :size
|
4
|
+
attr_reader :symbol, :options
|
5
5
|
|
6
6
|
def initialize(symbol, options = {})
|
7
7
|
@symbol = symbol.to_s
|
@@ -40,7 +40,7 @@ module Basicons
|
|
40
40
|
def svg_size
|
41
41
|
return @size unless @size.nil?
|
42
42
|
@size = @options[:size].to_i
|
43
|
-
@size =
|
43
|
+
@size = 16 if @size.zero?
|
44
44
|
@size
|
45
45
|
end
|
46
46
|
|
data/lib/basicons/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basicons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Basicons Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|