esvg 4.6.5 → 4.6.6
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 +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/esvg/symbol.rb +2 -6
- data/lib/esvg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1fd96050bdf56d0142342f8e38822676995708375d778d9b24c09716974bad
|
4
|
+
data.tar.gz: b82301f64fc222ef379f051fd69df9adce549efa25560fc9735313c0f617f641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83d6383ac2a2c9644f0d0df4033bfd91820f0171300201bc0b6c1b73db37c56ab0cb4399dc9da34fa94c25edd5322d3cbb14a7d9fac3092169ea979701f95992
|
7
|
+
data.tar.gz: 2e159b4d5b176ce5d8204ce13a9959369242e47e839463d909ee740be1a85823aceba2f13a8bdca615d815062344edeb6aa8ccfd00f9e0e851f60e60eaa49b32
|
data/CHANGELOG.md
CHANGED
data/lib/esvg/symbol.rb
CHANGED
@@ -59,12 +59,8 @@ module Esvg
|
|
59
59
|
|
60
60
|
# Scale width based on propotion to height
|
61
61
|
def scale_width( h )
|
62
|
-
|
63
|
-
|
64
|
-
"#{( s[:size] / height * width ).round(2)}#{s[:unit]}"
|
65
|
-
rescue StandardError
|
66
|
-
binding.pry
|
67
|
-
end
|
62
|
+
s = split_unit( h )
|
63
|
+
"#{( s[:size] / height * width ).round(2)}#{s[:unit]}"
|
68
64
|
end
|
69
65
|
|
70
66
|
# Scale height based on propotion to width
|
data/lib/esvg/version.rb
CHANGED