gui_geometry 0.0.6 → 0.1.0

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.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GuiGeometry
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 GuiGeometry
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 GuiGeometry::Tools
69
+ include GuiGeo::Tools
70
70
 
71
71
  min(4,5)
72
72
  # => 4
@@ -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 = GuiGeometry::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}
@@ -8,7 +8,7 @@
8
8
  require File.join(File.dirname(__FILE__),"gui_geometry",file)
9
9
  end
10
10
 
11
- module GuiGeometry
12
- def point(*args); GuiGeometry::Point.new *args end
13
- def rect(*args); GuiGeometry::Rectangle.new *args end
11
+ module GuiGeo
12
+ def point(*args); GuiGeo::Point.new *args end
13
+ def rect(*args); GuiGeo::Rectangle.new *args end
14
14
  end
@@ -1,4 +1,4 @@
1
- module GuiGeometry
1
+ module GuiGeo
2
2
  class Point < Struct.new(:x, :y)
3
3
  include Tools
4
4
 
@@ -1,4 +1,4 @@
1
- module GuiGeometry
1
+ module GuiGeo
2
2
  class Rectangle < Struct.new(:loc, :size)
3
3
  include Tools
4
4
 
@@ -1,6 +1,6 @@
1
- module GuiGeometry
1
+ module GuiGeo
2
2
  module Tools
3
- include ::GuiGeometry
3
+ include ::GuiGeo
4
4
  def min(a,b) a < b ? a : b; end
5
5
  def max(a,b) a > b ? a : b; end
6
6
  def minmax(a,b)
@@ -1,3 +1,3 @@
1
- module GuiGeometry
2
- VERSION = "0.0.6"
1
+ module GuiGeo
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- module GuiGeometry
3
+ module GuiGeo
4
4
  describe "Point" do
5
- include ::GuiGeometry
5
+ include ::GuiGeo
6
6
 
7
7
  it "init" do
8
8
  point.should == point(0,0)
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- module GuiGeometry
3
+ module GuiGeo
4
4
  describe "Rectangle" do
5
- include ::GuiGeometry
5
+ include ::GuiGeo
6
6
 
7
7
  it "defaults" do
8
8
  rect.should == rect(0,0,0,0)
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- module GuiGeometry
3
+ module GuiGeo
4
4
  describe "Tools" do
5
5
  include Tools
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gui_geometry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: