gui_geometry 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/gui_geometry.gemspec +1 -1
- data/lib/gui_geometry.rb +3 -3
- data/lib/gui_geometry/point.rb +1 -1
- data/lib/gui_geometry/rectangle.rb +1 -1
- data/lib/gui_geometry/tools.rb +2 -2
- data/lib/gui_geometry/version.rb +2 -2
- data/spec/point_spec.rb +2 -2
- data/spec/rectangle_spec.rb +2 -2
- data/spec/tools_spec.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# GuiGeo
|
2
2
|
|
3
3
|
There are a few good geometry gems already available for Ruby (ruby-geometry and geometry), but I need one which is focused on the needs of creating 2D graphical user interfaces.
|
4
4
|
|
@@ -24,7 +24,7 @@ Rectangles consist of two point objects. One specifies the location of the recta
|
|
24
24
|
|
25
25
|
``` ruby
|
26
26
|
require "gui_geometry"
|
27
|
-
include
|
27
|
+
include GuiGeo
|
28
28
|
|
29
29
|
# create point x == y == 0
|
30
30
|
point
|
@@ -66,7 +66,7 @@ rect point(30,50)
|
|
66
66
|
To get access to min, max, bound, and minmax:
|
67
67
|
|
68
68
|
```
|
69
|
-
include
|
69
|
+
include GuiGeo::Tools
|
70
70
|
|
71
71
|
min(4,5)
|
72
72
|
# => 4
|
data/gui_geometry.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'gui_geometry/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "gui_geometry"
|
8
|
-
gem.version =
|
8
|
+
gem.version = GuiGeo::VERSION
|
9
9
|
gem.authors = ["Shane Brinkman-Davis"]
|
10
10
|
gem.email = ["shanebdavis@gmail.com"]
|
11
11
|
gem.description = %q{2D geometry specificly designed to support graphical user interfaces and bitmaps currently focsued on Point and Rectangle classes}
|
data/lib/gui_geometry.rb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
require File.join(File.dirname(__FILE__),"gui_geometry",file)
|
9
9
|
end
|
10
10
|
|
11
|
-
module
|
12
|
-
def point(*args);
|
13
|
-
def rect(*args);
|
11
|
+
module GuiGeo
|
12
|
+
def point(*args); GuiGeo::Point.new *args end
|
13
|
+
def rect(*args); GuiGeo::Rectangle.new *args end
|
14
14
|
end
|
data/lib/gui_geometry/point.rb
CHANGED
data/lib/gui_geometry/tools.rb
CHANGED
data/lib/gui_geometry/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0
|
1
|
+
module GuiGeo
|
2
|
+
VERSION = "0.1.0"
|
3
3
|
end
|
data/spec/point_spec.rb
CHANGED
data/spec/rectangle_spec.rb
CHANGED
data/spec/tools_spec.rb
CHANGED