svg_drawer 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 79996165279d088f2e412c952599a1f4425e6022
4
- data.tar.gz: 72e4bce3f625e41bf91d581ab1b17f529f7f8619
3
+ metadata.gz: 2f0dea008c28aa454fd56e928243d4fd0c29416e
4
+ data.tar.gz: 2e5c8ada45634e66bbb397c573dd962e6d32777e
5
5
  SHA512:
6
- metadata.gz: 64e21f2a34481ceb931564a69b13c910fcda76de467e9f1507e8d472e9e3e51c0b20a953e4d10b1c38bf8ea485fe9c10bb1de7daf1ca7c07fb6c9d576777d63c
7
- data.tar.gz: 545bf250522002f54b193fdc1ce20776f1287c30bacf5d52c488e5627f06b1f82076d6c37d5bbfaa136c48c4dd4c259433b8c2d3b8db7908674c8409ccb68485
6
+ metadata.gz: bfec3b7b141046aa6d9fd92062a66f1422bf71e28e31fe86a31fc2d3b113c773e9769f05af23018796bc74c16bb8b84b14b5a3fde96327a634226920ced62283
7
+ data.tar.gz: 352534a521f5eef69c88a26a4a3cd5fe830d2bcc999f868d0af6f3859fad15ea4d178ddecef8241f4fd698331a869bce2d014cd4169b179d370eb86b06fc66a6
@@ -165,7 +165,7 @@ module SvgDrawer
165
165
  end
166
166
 
167
167
  def cap_size
168
- param(:size).to_d / 2
168
+ %w[round square].include?(param(:linecap)) ? param(:size).to_d / 2 : 0
169
169
  end
170
170
  end
171
171
  end
@@ -53,7 +53,7 @@ module SvgDrawer
53
53
  style[:'font-weight'] = param(:font_style).include?('bold') ? 'bold' : param(:font_weight)
54
54
  style[:'font-style'] = 'italic' if param(:font_style).include?('italic')
55
55
  style[:'font-size'] = param(:font_size).is_a?(Numeric) ?
56
- "#{param(:font_size)}pt" :
56
+ "#{param(:font_size)}px" :
57
57
  param(:font_size)
58
58
 
59
59
  svg_params = { x: 0, y: 0, style: style }
@@ -1,3 +1,3 @@
1
1
  module SvgDrawer
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg_drawer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simeon Manolov