geomotion 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/geomotion/cg_rect.rb +1 -1
- data/lib/geomotion/version.rb +1 -1
- metadata +2 -2
data/lib/geomotion/cg_rect.rb
CHANGED
@@ -102,7 +102,7 @@ class CGRect
|
|
102
102
|
def center(relative = false)
|
103
103
|
offset_x = relative ? self.x : 0
|
104
104
|
offset_y = relative ? self.y : 0
|
105
|
-
CGPoint.new(offset_x + self.width / 2, offset_y
|
105
|
+
CGPoint.new(offset_x + self.width / 2, offset_y + self.height / 2)
|
106
106
|
end
|
107
107
|
|
108
108
|
def round
|
data/lib/geomotion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geomotion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|