polygonfy 0.1.2 → 0.1.3

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: cbaf6e8383637f2c772bd0d0aba8bc499adae7c1
4
- data.tar.gz: 7a04618a3599df193a2b4c6c9b9d8092b0a7dffa
3
+ metadata.gz: 90898057ee33cf3393b81492af4efbf7997684fd
4
+ data.tar.gz: 1ca6af93f2874d593d741874ec71e09b341a2065
5
5
  SHA512:
6
- metadata.gz: f0b42afbf88f58a2f1007346d874d52147b9c69bf1f6336a96acf0a97ca93aff57bc15dd9295fee1fb70a8c7f42e64a867ffcb47a0bb23702c990915790676b4
7
- data.tar.gz: 71fe93ccc90a004b8ea3a017948958432c6f834dfd64efe3a3e164a9afb91409856f25a019516e699c3de3691abc4d24d77be27cf34cdc3cc6b4a2410b73cd44
6
+ metadata.gz: 78e50da7b9970d1c43b707c0ee34376300de9ebef212ef01f5c919cf936671726789e4f587df592411e41fb3479479919690981ae1cd966caa242212223a1075
7
+ data.tar.gz: b0b226be659a2d5be613e8cf313251ea3f684433f972ed16ceb2212495e1c121a977838b37000a0772fd2f00e11bd270a815d298a38116ad58a8b7ab353b940a
@@ -1,3 +1,3 @@
1
1
  module Polygonfy
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/polygonfy.rb CHANGED
@@ -36,7 +36,7 @@ module Polygonfy
36
36
  width = points.map(&:x).max + (2 * MARGIN)
37
37
  height = points.map(&:y).max + (2 * MARGIN)
38
38
 
39
- polygon_points = points.map { |p| "#{p.x},#{p.y}" }.join(' ')
39
+ polygon_points = points.map { |p| "#{p.x + MARGIN},#{p.y + MARGIN}" }.join(' ')
40
40
 
41
41
  builder = Nokogiri::XML::Builder.new do |xml|
42
42
  xml.svg(xmlns: xmlns, width: width, height: height) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygonfy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Magro