vector2d 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +22 -22
- data/lib/vector2d.rb +2 -2
- data/lib/vector2d/version.rb +1 -1
- data/vector2d.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64e42c247203bc5b07f3e9fc40f469fc37fb7d94
|
4
|
+
data.tar.gz: ca5bfff01c2a6ce977813c9a851d9bdf2b35f2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f0606ffe2aca7dd66e4a66c138b216e6ab80b22ec5c2200e2388eff0bdcc9faaafe0d5e11c2ec0a6e73be7fb058713083e09fd213be71e994665d68d923d14
|
7
|
+
data.tar.gz: 167f1862927310c67ebe1e2fc8cf5799650d37b6cc8645e5ee7f089e006394a6ba04da3dbc5060ebd0a6d1278540a01dc26d02c5dae5fe4612948fb84d6adec0
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vector2d (2.2.
|
5
|
-
contracts
|
4
|
+
vector2d (2.2.1)
|
5
|
+
contracts (~> 0.9)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
codeclimate-test-reporter (0.
|
10
|
+
codeclimate-test-reporter (0.4.7)
|
11
11
|
simplecov (>= 0.7.1, < 1.0.0)
|
12
|
-
contracts (0.
|
12
|
+
contracts (0.9)
|
13
13
|
diff-lcs (1.2.5)
|
14
|
-
docile (1.1.
|
15
|
-
|
16
|
-
rake (10.
|
17
|
-
rspec (3.
|
18
|
-
rspec-core (~> 3.
|
19
|
-
rspec-expectations (~> 3.
|
20
|
-
rspec-mocks (~> 3.
|
21
|
-
rspec-core (3.
|
22
|
-
rspec-support (~> 3.
|
23
|
-
rspec-expectations (3.
|
14
|
+
docile (1.1.5)
|
15
|
+
json (1.8.3)
|
16
|
+
rake (10.4.2)
|
17
|
+
rspec (3.3.0)
|
18
|
+
rspec-core (~> 3.3.0)
|
19
|
+
rspec-expectations (~> 3.3.0)
|
20
|
+
rspec-mocks (~> 3.3.0)
|
21
|
+
rspec-core (3.3.1)
|
22
|
+
rspec-support (~> 3.3.0)
|
23
|
+
rspec-expectations (3.3.0)
|
24
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
-
rspec-support (~> 3.
|
26
|
-
rspec-mocks (3.
|
25
|
+
rspec-support (~> 3.3.0)
|
26
|
+
rspec-mocks (3.3.1)
|
27
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-support (3.
|
30
|
-
simplecov (0.
|
28
|
+
rspec-support (~> 3.3.0)
|
29
|
+
rspec-support (3.3.0)
|
30
|
+
simplecov (0.10.0)
|
31
31
|
docile (~> 1.1.0)
|
32
|
-
|
33
|
-
simplecov-html (~> 0.
|
34
|
-
simplecov-html (0.
|
32
|
+
json (~> 1.8)
|
33
|
+
simplecov-html (~> 0.10.0)
|
34
|
+
simplecov-html (0.10.0)
|
35
35
|
|
36
36
|
PLATFORMS
|
37
37
|
ruby
|
data/lib/vector2d.rb
CHANGED
@@ -41,8 +41,8 @@ class Vector2d
|
|
41
41
|
# Vector2d.parse({x: 150, y: 100})
|
42
42
|
# Vector2d.parse({"x" => 150.0, "y" => 100.0})
|
43
43
|
# Vector2d.parse(Vector2d(150, 100))
|
44
|
-
Contract VectorLike => Vector2d
|
45
|
-
def parse(arg, second_arg=nil)
|
44
|
+
Contract VectorLike, Maybe[Num] => Vector2d
|
45
|
+
def parse(arg, second_arg = nil)
|
46
46
|
if second_arg.nil?
|
47
47
|
parse_single_arg(arg)
|
48
48
|
else
|
data/lib/vector2d/version.rb
CHANGED
data/vector2d.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vector2d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inge Jørgensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: contracts
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '0.9'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.9'
|
55
55
|
description: Vector2d allows for easy handling of two-dimensionals coordinates and
|
56
56
|
vectors
|
57
57
|
email:
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.4.
|
105
|
+
rubygems_version: 2.4.5
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Library for handling two-dimensional vectors
|