simple-polygons 0.0.0.pre3 → 0.0.0.pre4
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/lib/simple-polygons.rb +2 -15
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c1fc760bdbd5ef67e229e89049cc31f9925d52f
|
4
|
+
data.tar.gz: 5094dede9fb56b1e141fffc5a650ae51c726659c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d755b0db5fcc42dce43fe95d29d5f9e58bbad984c1b759bd52e28bf907bb4dd72042ef66d9737e346e7c0911e123adfec1186b05e748ecb8888be389e2a6285c
|
7
|
+
data.tar.gz: 82a2f0feb9999bf6f627650df8c62d6523171e28ccb6b7d25ce685f0953aa84c4ac6c07fbe45c60dbb21ae81aa78dea4b0957cb7e2561f7aa63d2c67f341e07b
|
data/lib/simple-polygons.rb
CHANGED
@@ -1,22 +1,9 @@
|
|
1
|
+
require ( 'locationclass' )
|
2
|
+
|
1
3
|
module SimplePolygons
|
2
4
|
class InvalidLocationArrayError < StandardError
|
3
5
|
|
4
6
|
end
|
5
|
-
|
6
|
-
class Location
|
7
|
-
attr_accessor ( :x )
|
8
|
-
attr_accessor ( :y )
|
9
|
-
|
10
|
-
def initialize(x, y)
|
11
|
-
@x = x
|
12
|
-
@y = y
|
13
|
-
end
|
14
|
-
|
15
|
-
def move(x, y)
|
16
|
-
@x += x
|
17
|
-
@y += y
|
18
|
-
end
|
19
|
-
end
|
20
7
|
|
21
8
|
class Polygon
|
22
9
|
attr_accessor ( :points )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-polygons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.pre4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SugarRush
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1'
|
27
27
|
description: "A gem that has several classes representing 2D polygons. The first full
|
28
28
|
release will be out by \n October 20."
|
29
29
|
email:
|