dynpet-commit Mailing List for Dynpet (Page 2)
Status: Pre-Alpha
Brought to you by:
kiba_ruby
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(16) |
May
(68) |
Jun
(68) |
Jul
(80) |
Aug
(101) |
Sep
(81) |
Oct
(88) |
Nov
(31) |
Dec
(142) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(146) |
Feb
(68) |
Mar
(77) |
Apr
(156) |
May
(150) |
Jun
(59) |
Jul
(5) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <kib...@us...> - 2007-06-02 21:46:25
|
Revision: 1352
http://svn.sourceforge.net/dynpet/?rev=1352&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:46:24 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
update sample textest.rb and update CHANGES
Modified Paths:
--------------
trunk/rbgooey/CHANGES
trunk/rbgooey/samples/textest.rb
Modified: trunk/rbgooey/CHANGES
===================================================================
--- trunk/rbgooey/CHANGES 2007-06-02 21:30:57 UTC (rev 1351)
+++ trunk/rbgooey/CHANGES 2007-06-02 21:46:24 UTC (rev 1352)
@@ -4,4 +4,5 @@
-Description: Bugfix release with a new minor feature
+You can now configure basic setting such as screen size, show cursor or not, and various other items.
+Fix issues with installing the gem(If any).
-+Fix hardcoded path for mouse image loading.
\ No newline at end of file
++Remove hardcoded path for mouse image loading and thus removing the need to place an image in test directory.
++Remove the need to load an image for a mouse in order to use it without crashing the program.
\ No newline at end of file
Modified: trunk/rbgooey/samples/textest.rb
===================================================================
--- trunk/rbgooey/samples/textest.rb 2007-06-02 21:30:57 UTC (rev 1351)
+++ trunk/rbgooey/samples/textest.rb 2007-06-02 21:46:24 UTC (rev 1352)
@@ -23,14 +23,13 @@
include Rubygame
TTF.setup()
-class Setup
+class Starting
def initialize
@display = Display.new
@display.setup(800,600,true)
@display.color([100 , 100 ,100],[20 , 20 ,20])
@data = UiData.new(@display)
@data.text.setup("test/freesansbold.ttf",12)
- @data.mouse.setup("test/mouse.png")
@clock = Rubygame::Clock.new
@clock.target_frametime= 40
@q = Rubygame::EventQueue.new()
@@ -67,6 +66,6 @@
end
end
-action = Setup.new
+action = Starting.new
action.message()
action.action()
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:31:01
|
Revision: 1351
http://svn.sourceforge.net/dynpet/?rev=1351&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:30:57 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
fix problems with having the need to load an image for a mouse.
Modified Paths:
--------------
trunk/rbgooey/lib/mouse.rb
trunk/rbgooey/test/test_mouse_init.rb
trunk/rbgooey/test/test_setup_read.rb
Modified: trunk/rbgooey/lib/mouse.rb
===================================================================
--- trunk/rbgooey/lib/mouse.rb 2007-06-02 21:25:22 UTC (rev 1350)
+++ trunk/rbgooey/lib/mouse.rb 2007-06-02 21:30:57 UTC (rev 1351)
@@ -27,6 +27,7 @@
def initialize
super
@pos = [0,0]
+ @rect = Rubygame::Rect.new(0,0,1,1)
end
def setup name
@image , @rect = load(name)
Modified: trunk/rbgooey/test/test_mouse_init.rb
===================================================================
--- trunk/rbgooey/test/test_mouse_init.rb 2007-06-02 21:25:22 UTC (rev 1350)
+++ trunk/rbgooey/test/test_mouse_init.rb 2007-06-02 21:30:57 UTC (rev 1351)
@@ -24,10 +24,14 @@
@display.setup(800,600,true)
@display.color([100 , 100 ,100],[20 , 20 ,20])
@data = UiData.new(@display)
- @data.mouse.setup("test/mouse.png")
end
def test_initialization
assert @data.mouse.pos == [0,0]
+ assert @data.mouse.rect == Rect.new(0,0,1,1)
+ end
+ def test_load_image
+ @data.mouse.setup("test/mouse.png")
+ assert @data.mouse.pos == [0,0]
assert @data.mouse.rect == Rect.new(0,0,10,10)
end
end
\ No newline at end of file
Modified: trunk/rbgooey/test/test_setup_read.rb
===================================================================
--- trunk/rbgooey/test/test_setup_read.rb 2007-06-02 21:25:22 UTC (rev 1350)
+++ trunk/rbgooey/test/test_setup_read.rb 2007-06-02 21:30:57 UTC (rev 1351)
@@ -104,7 +104,7 @@
assert data.display.flags[2] & Rubygame::FULLSCREEN
assert data.text.font == "test/freesansbold.ttf"
assert data.text.size == 13
- assert data.mouse.rect == nil
+ assert data.mouse.rect == Rect.new(0,0,1,1)
Rubygame.quit()
end
end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:25:23
|
Revision: 1350
http://svn.sourceforge.net/dynpet/?rev=1350&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:25:22 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
update documentation in UiData, update CHANGES file
Modified Paths:
--------------
trunk/rbgooey/CHANGES
trunk/rbgooey/lib/uidata.rb
Modified: trunk/rbgooey/CHANGES
===================================================================
--- trunk/rbgooey/CHANGES 2007-06-02 21:18:18 UTC (rev 1349)
+++ trunk/rbgooey/CHANGES 2007-06-02 21:25:22 UTC (rev 1350)
@@ -1,4 +1,7 @@
CHANGES for rbgooey
Release 0.0.1+SVN
--Description: There are no release yet.
\ No newline at end of file
+-Description: Bugfix release with a new minor feature
++You can now configure basic setting such as screen size, show cursor or not, and various other items.
++Fix issues with installing the gem(If any).
++Fix hardcoded path for mouse image loading.
\ No newline at end of file
Modified: trunk/rbgooey/lib/uidata.rb
===================================================================
--- trunk/rbgooey/lib/uidata.rb 2007-06-02 21:18:18 UTC (rev 1349)
+++ trunk/rbgooey/lib/uidata.rb 2007-06-02 21:25:22 UTC (rev 1350)
@@ -22,6 +22,7 @@
class UiData
attr_accessor :display , :name , :rect , :string , :text , :status , :action , :collide , :mouse , :type , :setup
+ #display can be the name of yaml file you wanted to load or the Display class.
def initialize display
@display = display
@name = {}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:18:27
|
Revision: 1349
http://svn.sourceforge.net/dynpet/?rev=1349&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:18:18 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
reduce code bloat
Modified Paths:
--------------
trunk/rbgooey/lib/setup.rb
trunk/rbgooey/lib/uidata.rb
trunk/rbgooey/test/test_uidata_init.rb
Modified: trunk/rbgooey/lib/setup.rb
===================================================================
--- trunk/rbgooey/lib/setup.rb 2007-06-02 21:11:05 UTC (rev 1348)
+++ trunk/rbgooey/lib/setup.rb 2007-06-02 21:18:18 UTC (rev 1349)
@@ -28,6 +28,7 @@
if @ui.display.class != Display
set()
end
+ @check = Check.new(@ui.display)
end
def set
@data = @file.yaml_read(@ui.display)
Modified: trunk/rbgooey/lib/uidata.rb
===================================================================
--- trunk/rbgooey/lib/uidata.rb 2007-06-02 21:11:05 UTC (rev 1348)
+++ trunk/rbgooey/lib/uidata.rb 2007-06-02 21:18:18 UTC (rev 1349)
@@ -21,15 +21,9 @@
#FUNCTION OF THIS PART: This class deal with GUI elements
class UiData
- attr_accessor :display , :check , :name , :rect , :string , :text , :status , :action , :collide , :mouse , :type , :setup
+ attr_accessor :display , :name , :rect , :string , :text , :status , :action , :collide , :mouse , :type , :setup
def initialize display
@display = display
- if display.class == Display
- @check = Check.new(@display)
- if @check.n != []
- return
- end
- end
@name = {}
@rect = []
@string = []
Modified: trunk/rbgooey/test/test_uidata_init.rb
===================================================================
--- trunk/rbgooey/test/test_uidata_init.rb 2007-06-02 21:11:05 UTC (rev 1348)
+++ trunk/rbgooey/test/test_uidata_init.rb 2007-06-02 21:18:18 UTC (rev 1349)
@@ -27,7 +27,6 @@
@display.color([100 , 100 ,100],[20 , 20 ,20])
data = UiData.new(@display)
assert data.display.class == Display
- assert data.check.class == Check
assert data.name == {}
assert data.rect == []
assert data.string == []
@@ -37,24 +36,4 @@
assert data.type.class == Type
assert data.setup.class == Setup
end
- def test_missing_all
- data = UiData.new(@display)
- assert data.name == nil
- assert data.rect == nil
- assert data.string == nil
- end
- def test_missing_screen
- @display.color([100 , 100 ,100],[20 , 20 ,20])
- data = UiData.new(@display)
- assert data.name == nil
- assert data.rect == nil
- assert data.string == nil
- end
- def test_missing_color
- @display.setup(800,600,true)
- data = UiData.new(@display)
- assert data.name == nil
- assert data.rect == nil
- assert data.string == nil
- end
end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:11:10
|
Revision: 1348
http://svn.sourceforge.net/dynpet/?rev=1348&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:11:05 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
move all the dynpet HTML contents into dynpet
Added Paths:
-----------
www/dynpet/download.html
www/dynpet/dynpet-0.0.7.png
www/dynpet/index.html
www/dynpet/roadmap.html
www/dynpet/screenshot.hmtl
www/dynpet/style.css
www/dynpet/user.html
Removed Paths:
-------------
www/download.html
www/dynpet-0.0.7.png
www/index.html
www/roadmap.html
www/screenshot.html
www/style.css
www/user.html
Deleted: www/download.html
===================================================================
--- www/download.html 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/download.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,29 +0,0 @@
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title>Dynpet Project - Download
-</title>
-</head>
-<body>
-<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
-<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
-<h5>Last updated Janurary 8, 2007</h5>
-<h1>Download</h1>
-<p>We provide only the source files. There is two option, one is called window source, which provided the Rubygame DLL and other DLL. The other is just plain source.</p>
-<h2>Download</h2>
-<p><a href="https://sourceforge.net/project/showfiles.php?group_id=165302">Dynpet Download Sourceforge.net Page</a></p>
-<h3>Dependency</h3>
-<p>Ruby interpreter is required, if you do not have it, please visit <a href="http://www.ruby-lang.org">www.ruby-lang.org</a></p>
-<p>If you have source, you will need to download additional dependency called Rubygame, visit <a href="http://rubygame.infogami.com/install">Rubygame wiki's download information site</a> if you do not have the dependency installed.</p>
-<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-xhtml11"
- alt="Valid XHTML 1.1" height="31" width="88" /></a>
- </p>
-</body>
-</html>
\ No newline at end of file
Copied: www/dynpet/download.html (from rev 1335, www/download.html)
===================================================================
--- www/dynpet/download.html (rev 0)
+++ www/dynpet/download.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,29 @@
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title>Dynpet Project - Download
+</title>
+</head>
+<body>
+<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
+<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
+<h5>Last updated Janurary 8, 2007</h5>
+<h1>Download</h1>
+<p>We provide only the source files. There is two option, one is called window source, which provided the Rubygame DLL and other DLL. The other is just plain source.</p>
+<h2>Download</h2>
+<p><a href="https://sourceforge.net/project/showfiles.php?group_id=165302">Dynpet Download Sourceforge.net Page</a></p>
+<h3>Dependency</h3>
+<p>Ruby interpreter is required, if you do not have it, please visit <a href="http://www.ruby-lang.org">www.ruby-lang.org</a></p>
+<p>If you have source, you will need to download additional dependency called Rubygame, visit <a href="http://rubygame.infogami.com/install">Rubygame wiki's download information site</a> if you do not have the dependency installed.</p>
+<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
+ <p>
+ <a href="http://validator.w3.org/check?uri=referer"><img
+ src="http://www.w3.org/Icons/valid-xhtml11"
+ alt="Valid XHTML 1.1" height="31" width="88" /></a>
+ </p>
+</body>
+</html>
\ No newline at end of file
Copied: www/dynpet/dynpet-0.0.7.png (from rev 1335, www/dynpet-0.0.7.png)
===================================================================
(Binary files differ)
Copied: www/dynpet/index.html (from rev 1335, www/index.html)
===================================================================
--- www/dynpet/index.html (rev 0)
+++ www/dynpet/index.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title> Project Rbgooey: home
+</title>
+</head>
+<body>
+<h5><b>This page is last updated May 30, 2007.</b></h5>
+
+<h1 class = "center">Rbgooey</h1>
+<p><a href="index.html">| Home | </a>
+</p>
+<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
+<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
+<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
+<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
+<h2>Features</h2>
+<p>Some of the current notable features are....</p>
+<ul>
+<li>Grouping of texts via UiData#declare(name of your choice)</li>
+<li>A way to type</li>
+</ul>
+<h2>Download and Install</h2>
+<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a></p>
+</body>
+</html>
\ No newline at end of file
Copied: www/dynpet/roadmap.html (from rev 1335, www/roadmap.html)
===================================================================
--- www/dynpet/roadmap.html (rev 0)
+++ www/dynpet/roadmap.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title>Dynpet Project - Roadmap
+</title>
+</head>
+<body>
+<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
+<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
+<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
+<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
+<h1 class = "center" >Roadmap</h1>
+<p>This document show what we plan for the next version of Dynpet. The versioning scheme of dynpet is simple. We simply increased it in the 0.0.x place until it reach 9. After that, we simply increased it in the second place
+at 0.x.x and so on. Example 0.0.9 -> 0.1.0. Whenever, we finished a version, we will update this page for the next version of Dynpet's goal.</p>
+
+<p>Following Dynpet 0.0.7, we decided that instead of doing many major updates in one version together, we decided to let new version appears with a major feature or enhancement.</p>
+<h2>0.0.8</h2>
+<p>In 0.0.8, the rbgooey library will come with a UI part for building Dynpet's interface. Some Dynpet's UI code will merged with the rbgooey library. Expect to see much better interface in 0.0.8.</p>
+<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
+ <p>
+ <a href="http://validator.w3.org/check?uri=referer"><img
+ src="http://www.w3.org/Icons/valid-xhtml11"
+ alt="Valid XHTML 1.1" height="31" width="88" /></a>
+ </p>
+</body>
+</html>
\ No newline at end of file
Copied: www/dynpet/screenshot.hmtl (from rev 1335, www/screenshot.html)
===================================================================
--- www/dynpet/screenshot.hmtl (rev 0)
+++ www/dynpet/screenshot.hmtl 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title>Dynpet Project - Screenshot
+</title>
+</head>
+<body>
+<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
+<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
+<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
+<h2>Screenshot</h2>
+<h3>Dynpet 0.0.7</h3>
+<p><img src="Dynpet-0.0.7.png" alt="dynpet-0.0.7.png" /></p>
+<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
+ <p>
+ <a href="http://validator.w3.org/check?uri=referer"><img
+ src="http://www.w3.org/Icons/valid-xhtml11"
+ alt="Valid XHTML 1.1" height="31" width="88" /></a>
+ </p>
+ </body>
+</html>
Copied: www/dynpet/style.css (from rev 1335, www/style.css)
===================================================================
--- www/dynpet/style.css (rev 0)
+++ www/dynpet/style.css 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,26 @@
+P {
+ font-family : Arial, Helvetica, sans-serif;
+ font-size : 12px;
+}
+a:link
+{
+ text-decoration: none;
+}
+a:visited
+{
+ color: red;
+ text-decoration: none;
+}
+a:hover
+{
+ text-decoration: underline;
+ color: orange;
+}
+li
+{
+ font-size: 14px;
+}
+h1.center
+{
+ text-align: center;
+}
\ No newline at end of file
Copied: www/dynpet/user.html (from rev 1335, www/user.html)
===================================================================
--- www/dynpet/user.html (rev 0)
+++ www/dynpet/user.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -0,0 +1,24 @@
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title>Dynpet Project - Manual
+</title>
+</head>
+<body>
+<h5><b>Last updated: Janurary 8, 2007</b></h5>
+<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
+<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
+<h2>Notice...</h2>
+<p>Currently, this document is not completed. This is because we didn't document the gameplay machanic when we're programming the game. So it would be a lot of work to complete it. Content updates are expected every week or so.</p>
+<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
+ <p>
+ <a href="http://validator.w3.org/check?uri=referer"><img
+ src="http://www.w3.org/Icons/valid-xhtml11"
+ alt="Valid XHTML 1.1" height="31" width="88" /></a>
+ </p>
+</body>
+</html>
\ No newline at end of file
Deleted: www/dynpet-0.0.7.png
===================================================================
(Binary files differ)
Deleted: www/index.html
===================================================================
--- www/index.html 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/index.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,29 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title> Project Rbgooey: home
-</title>
-</head>
-<body>
-<h5><b>This page is last updated May 30, 2007.</b></h5>
-
-<h1 class = "center">Rbgooey</h1>
-<p><a href="index.html">| Home | </a>
-</p>
-<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
-<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
-<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
-<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
-<h2>Features</h2>
-<p>Some of the current notable features are....</p>
-<ul>
-<li>Grouping of texts via UiData#declare(name of your choice)</li>
-<li>A way to type</li>
-</ul>
-<h2>Download and Install</h2>
-<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a></p>
-</body>
-</html>
\ No newline at end of file
Deleted: www/roadmap.html
===================================================================
--- www/roadmap.html 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/roadmap.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,29 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title>Dynpet Project - Roadmap
-</title>
-</head>
-<body>
-<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
-<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
-<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
-<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
-<h1 class = "center" >Roadmap</h1>
-<p>This document show what we plan for the next version of Dynpet. The versioning scheme of dynpet is simple. We simply increased it in the 0.0.x place until it reach 9. After that, we simply increased it in the second place
-at 0.x.x and so on. Example 0.0.9 -> 0.1.0. Whenever, we finished a version, we will update this page for the next version of Dynpet's goal.</p>
-
-<p>Following Dynpet 0.0.7, we decided that instead of doing many major updates in one version together, we decided to let new version appears with a major feature or enhancement.</p>
-<h2>0.0.8</h2>
-<p>In 0.0.8, the rbgooey library will come with a UI part for building Dynpet's interface. Some Dynpet's UI code will merged with the rbgooey library. Expect to see much better interface in 0.0.8.</p>
-<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-xhtml11"
- alt="Valid XHTML 1.1" height="31" width="88" /></a>
- </p>
-</body>
-</html>
\ No newline at end of file
Deleted: www/screenshot.html
===================================================================
--- www/screenshot.html 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/screenshot.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,24 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title>Dynpet Project - Screenshot
-</title>
-</head>
-<body>
-<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
-<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
-<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
-<h2>Screenshot</h2>
-<h3>Dynpet 0.0.7</h3>
-<p><img src="Dynpet-0.0.7.png" alt="dynpet-0.0.7.png" /></p>
-<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-xhtml11"
- alt="Valid XHTML 1.1" height="31" width="88" /></a>
- </p>
- </body>
-</html>
Deleted: www/style.css
===================================================================
--- www/style.css 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/style.css 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,26 +0,0 @@
-P {
- font-family : Arial, Helvetica, sans-serif;
- font-size : 12px;
-}
-a:link
-{
- text-decoration: none;
-}
-a:visited
-{
- color: red;
- text-decoration: none;
-}
-a:hover
-{
- text-decoration: underline;
- color: orange;
-}
-li
-{
- font-size: 14px;
-}
-h1.center
-{
- text-align: center;
-}
\ No newline at end of file
Deleted: www/user.html
===================================================================
--- www/user.html 2007-06-02 21:08:18 UTC (rev 1347)
+++ www/user.html 2007-06-02 21:11:05 UTC (rev 1348)
@@ -1,24 +0,0 @@
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title>Dynpet Project - Manual
-</title>
-</head>
-<body>
-<h5><b>Last updated: Janurary 8, 2007</b></h5>
-<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
-<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a></p>
-<h2>Notice...</h2>
-<p>Currently, this document is not completed. This is because we didn't document the gameplay machanic when we're programming the game. So it would be a lot of work to complete it. Content updates are expected every week or so.</p>
-<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-xhtml11"
- alt="Valid XHTML 1.1" height="31" width="88" /></a>
- </p>
-</body>
-</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:08:36
|
Revision: 1347
http://svn.sourceforge.net/dynpet/?rev=1347&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:08:18 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
make a directory to put dynpet's HTML contents in.
Added Paths:
-----------
www/dynpet/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 21:02:17
|
Revision: 1346
http://svn.sourceforge.net/dynpet/?rev=1346&view=rev
Author: kiba_ruby
Date: 2007-06-02 14:02:16 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
fix textest.rb sample
Modified Paths:
--------------
trunk/rbgooey/samples/textest.rb
Modified: trunk/rbgooey/samples/textest.rb
===================================================================
--- trunk/rbgooey/samples/textest.rb 2007-06-02 20:59:21 UTC (rev 1345)
+++ trunk/rbgooey/samples/textest.rb 2007-06-02 21:02:16 UTC (rev 1346)
@@ -30,6 +30,7 @@
@display.color([100 , 100 ,100],[20 , 20 ,20])
@data = UiData.new(@display)
@data.text.setup("test/freesansbold.ttf",12)
+ @data.mouse.setup("test/mouse.png")
@clock = Rubygame::Clock.new
@clock.target_frametime= 40
@q = Rubygame::EventQueue.new()
@@ -60,8 +61,6 @@
end
@data.mouse.tell(ev)
end
- @data.mouse.draw(@display.screen)
- @data.mouse.undraw(@display.screen,@background)
@data.mouse.update()
@display.screen.flip()
end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:59:49
|
Revision: 1345
http://svn.sourceforge.net/dynpet/?rev=1345&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:59:21 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add the CHANGES file
Added Paths:
-----------
trunk/rbgooey/CHANGES
Added: trunk/rbgooey/CHANGES
===================================================================
--- trunk/rbgooey/CHANGES (rev 0)
+++ trunk/rbgooey/CHANGES 2007-06-02 20:59:21 UTC (rev 1345)
@@ -0,0 +1,4 @@
+CHANGES for rbgooey
+
+Release 0.0.1+SVN
+-Description: There are no release yet.
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:55:12
|
Revision: 1344
http://svn.sourceforge.net/dynpet/?rev=1344&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:54:54 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add the correct sample
Added Paths:
-----------
trunk/rbgooey/samples/textest.rb
Added: trunk/rbgooey/samples/textest.rb
===================================================================
--- trunk/rbgooey/samples/textest.rb (rev 0)
+++ trunk/rbgooey/samples/textest.rb 2007-06-02 20:54:54 UTC (rev 1344)
@@ -0,0 +1,73 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#Sample: demonstrating various usage of the text portion of the library.
+require"rubygems"
+require"rubygame"
+require"rbgooey"
+include Rubygame
+TTF.setup()
+
+class Setup
+ def initialize
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @clock = Rubygame::Clock.new
+ @clock.target_frametime= 40
+ @q = Rubygame::EventQueue.new()
+ @background = @background = Rubygame::Surface.new(@display.screen.size)
+ end
+ def message
+ @data.declare(:hello)
+ @data.text.add("WELCOME!",0,0)
+ @data.text.add("testing!",0,0)
+ @data.text.add("WAA! WAA!",30,30)
+ @data.text.add("Press me!",100,100)
+ @data.text.active() { success() }
+ end
+ def success
+ @data.text.add("If you press the buttion, this message appear!",200,200)
+ end
+ def action
+ loop do
+ @clock.tick
+ @q.each do |ev|
+ case ev
+ when Rubygame::QuitEvent
+ Rubygame.quit()
+ return
+
+ when Rubygame::MouseDownEvent
+ @data.collide.check()
+ end
+ @data.mouse.tell(ev)
+ end
+ @data.mouse.draw(@display.screen)
+ @data.mouse.undraw(@display.screen,@background)
+ @data.mouse.update()
+ @display.screen.flip()
+ end
+ end
+end
+
+action = Setup.new
+action.message()
+action.action()
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:53:44
|
Revision: 1343
http://svn.sourceforge.net/dynpet/?rev=1343&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:53:37 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
delete this directory for real
Removed Paths:
-------------
branches/rbgooey/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:50:15
|
Revision: 1342
http://svn.sourceforge.net/dynpet/?rev=1342&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:50:11 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
remove a sample that was not supposed to be there
Removed Paths:
-------------
trunk/rbgooey/samples/randomtxt.rb
Deleted: trunk/rbgooey/samples/randomtxt.rb
===================================================================
--- trunk/rbgooey/samples/randomtxt.rb 2007-06-02 20:43:11 UTC (rev 1341)
+++ trunk/rbgooey/samples/randomtxt.rb 2007-06-02 20:50:11 UTC (rev 1342)
@@ -1,77 +0,0 @@
-require"rubygems"
-require"rubygame"
-require"rbgooey"
-include Rubygame
-TTF.setup()
-
-class Timer
- def initialize seconds , &action
- @interval = seconds
- @action = action
- end
- def check
- t = Time.now.tv_sec
- if t >= @fire_at
- @action.call
- @fire_at = t + @interval
- end
- end
- def start
- @fire_at = Time.now.tv_sec + @interval
- end
-end
-
-class RandomText
- def initialize
- @display = Display.new
- @display.setup(800,600,true)
- @display.color([100 , 100 ,100],[20 , 20 ,20])
- @background = Rubygame::Surface.new(@display.screen.size)
- @data = UiData.new(@display)
- @data.text.setup("freesansbold.ttf",12)
- @data.text.render.surface(@background)
- @clock = Rubygame::Clock.new
- @clock.target_frametime= 40
- @q = Rubygame::EventQueue.new()
- @data.declare(:hello)
- @random = Timer.new(1) { random() }
- @delete = Timer.new(10) { delete() }
- @random.start()
- @delete.start()
- end
- #http://snippets.dzone.com/posts/show/2111
- def String.random_alphanumeric(size=16)
- s = ""
- size.times { s << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr }
- s
- end
- def random
- 5.times do
- string = String.random_alphanumeric(5)
- @data.text.add(string,rand(801),rand(601))
- end
- end
- def delete
- @data.clear()
- @data.declare(:hello)
- @data.text.render.undraw()
- end
- def action
- loop do
- @clock.tick
- @random.check()
- @delete.check()
- @q.each do |ev|
- case ev
- when Rubygame::QuitEvent
- Rubygame.quit()
- return
- end
- end
- @display.screen.flip()
- end
- end
-end
-
-action = RandomText.new
-action.action()
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:43:13
|
Revision: 1341
http://svn.sourceforge.net/dynpet/?rev=1341&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:43:11 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
finish move of the branch of rbgooey to trunk/rbgooey; add input.rb
Added Paths:
-----------
trunk/rbgooey/samples/input.rb
Added: trunk/rbgooey/samples/input.rb
===================================================================
--- trunk/rbgooey/samples/input.rb (rev 0)
+++ trunk/rbgooey/samples/input.rb 2007-06-02 20:43:11 UTC (rev 1341)
@@ -0,0 +1,68 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#Sample: demonstrating various usage of the text portion of the library.
+require"rubygems"
+require"rubygame"
+require"rbgooey"
+include Rubygame
+TTF.setup()
+
+class Input
+ def initialize
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @clock = Rubygame::Clock.new
+ @clock.target_frametime= 40
+ @q = Rubygame::EventQueue.new()
+ @background = @background = Rubygame::Surface.new(@display.screen.size)
+ end
+ def message
+ @data.declare(:hello)
+ @data.type.position(100,100)
+ @data.text.render.surface(@background)
+ end
+ def action
+ loop do
+ @clock.tick
+ @q.each do |ev|
+ case ev
+ when Rubygame::QuitEvent
+ Rubygame.quit()
+ return
+ when Rubygame::KeyDownEvent
+ case ev.key
+ when Rubygame::K_TAB
+ @data.type.switch()
+ end
+ end
+ @data.type.active(ev)
+ end
+ @data.text.render.undraw
+ @data.text.render.draw(:hello)
+ @display.screen.flip()
+ end
+ end
+end
+
+action = Input.new
+action.message()
+action.action()
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:37:09
|
Revision: 1340
http://svn.sourceforge.net/dynpet/?rev=1340&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:37:08 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
remove the test directory
Removed Paths:
-------------
branches/rbgooey/test/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:35:48
|
Revision: 1339
http://svn.sourceforge.net/dynpet/?rev=1339&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:35:47 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add missing files
Added Paths:
-----------
trunk/rbgooey/test/freesansbold.ttf
trunk/rbgooey/test/mouse.png
trunk/rbgooey/test/nomouse.yml
Added: trunk/rbgooey/test/freesansbold.ttf
===================================================================
(Binary files differ)
Property changes on: trunk/rbgooey/test/freesansbold.ttf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/rbgooey/test/mouse.png
===================================================================
(Binary files differ)
Property changes on: trunk/rbgooey/test/mouse.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/rbgooey/test/nomouse.yml
===================================================================
--- trunk/rbgooey/test/nomouse.yml (rev 0)
+++ trunk/rbgooey/test/nomouse.yml 2007-06-02 20:35:47 UTC (rev 1339)
@@ -0,0 +1,16 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+bg:
+- 20
+- 20
+- 20
+flags:
+- 1
+font: test/freesansbold.ttf
+size: 13
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:33:37
|
Revision: 1338
http://svn.sourceforge.net/dynpet/?rev=1338&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:33:34 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add all the missing tests
Added Paths:
-----------
trunk/rbgooey/lib/typelowercase.rb
trunk/rbgooey/test/test_check_init.rb
trunk/rbgooey/test/test_check_results.rb
trunk/rbgooey/test/test_display_color.rb
trunk/rbgooey/test/test_display_screen.rb
trunk/rbgooey/test/test_rectcollide_collide.rb
trunk/rbgooey/test/test_rectcollide_init.rb
trunk/rbgooey/test/test_text_strings.rb
trunk/rbgooey/test/test_textrender_init.rb
trunk/rbgooey/test/test_textrender_render.rb
trunk/rbgooey/test/test_type_activemode.rb
trunk/rbgooey/test/test_type_init.rb
trunk/rbgooey/test/test_type_lowercase.rb
trunk/rbgooey/test/test_type_lowerspecial.rb
trunk/rbgooey/test/test_type_output.rb
trunk/rbgooey/test/test_type_specialcommands.rb
trunk/rbgooey/test/test_type_switch.rb
trunk/rbgooey/test/test_uidata_groups.rb
Added: trunk/rbgooey/lib/typelowercase.rb
===================================================================
--- trunk/rbgooey/lib/typelowercase.rb (rev 0)
+++ trunk/rbgooey/lib/typelowercase.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,86 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class is responsible for lowercase typing.
+
+class Lowercase
+ def initialize t
+ @t = t
+ end
+ def action ev
+ case ev
+ when Rubygame::KeyDownEvent
+ case ev.key
+ when Rubygame::K_A
+ @t.type("a")
+ when Rubygame::K_B
+ @t.type("b")
+ when Rubygame::K_C
+ @t.type("c")
+ when Rubygame::K_D
+ @t.type("d")
+ when Rubygame::K_E
+ @t.type("e")
+ when Rubygame::K_F
+ @t.type("f")
+ when Rubygame::K_G
+ @t.type("g")
+ when Rubygame::K_H
+ @t.type("h")
+ when Rubygame::K_I
+ @t.type("i")
+ when Rubygame::K_J
+ @t.type("j")
+ when Rubygame::K_K
+ @t.type("k")
+ when Rubygame::K_L
+ @t.type("l")
+ when Rubygame::K_M
+ @t.type("m")
+ when Rubygame::K_N
+ @t.type("n")
+ when Rubygame::K_O
+ @t.type("o")
+ when Rubygame::K_P
+ @t.type("p")
+ when Rubygame::K_Q
+ @t.type("q")
+ when Rubygame::K_R
+ @t.type("r")
+ when Rubygame::K_S
+ @t.type("s")
+ when Rubygame::K_T
+ @t.type("t")
+ when Rubygame::K_U
+ @t.type("u")
+ when Rubygame::K_V
+ @t.type("v")
+ when Rubygame::K_W
+ @t.type("w")
+ when Rubygame::K_X
+ @t.type("x")
+ when Rubygame::K_Y
+ @t.type("y")
+ when Rubygame::K_Z
+ @t.type("z")
+ end
+ end
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_check_init.rb
===================================================================
--- trunk/rbgooey/test/test_check_init.rb (rev 0)
+++ trunk/rbgooey/test/test_check_init.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,32 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Check class behaviors
+
+class CheckInitialization < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @check = Check.new(@display)
+ end
+ def test_initialize
+ assert @check.display.class == Display
+ assert @check.n == []
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_check_results.rb
===================================================================
--- trunk/rbgooey/test/test_check_results.rb (rev 0)
+++ trunk/rbgooey/test/test_check_results.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,39 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test various Check results
+
+class CheckResults < Test::Unit::TestCase
+ def test_both_missing
+ display = Display.new
+ check = Check.new(display)
+ assert check.n == [1,2]
+ end
+ def test_colors_missing
+ display = Display.new
+ display.setup(800,600,true)
+ check = Check.new(display)
+ assert check.n = [2]
+ end
+ def test_screen_missing
+ display = Display.new
+ display.color([100 , 100 ,100],[20 , 20 ,20])
+ check = Check.new(display)
+ assert check.n = [1]
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_display_color.rb
===================================================================
--- trunk/rbgooey/test/test_display_color.rb (rev 0)
+++ trunk/rbgooey/test/test_display_color.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,30 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test color setup of Display class
+
+class DisplayColorsTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ end
+ def test_color
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ assert @display.fg == [100 , 100 ,100]
+ assert @display.bg == [20 , 20 , 20]
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_display_screen.rb
===================================================================
--- trunk/rbgooey/test/test_display_screen.rb (rev 0)
+++ trunk/rbgooey/test/test_display_screen.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,36 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test display screen initialization of Display class
+
+class DisplayScreenTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ end
+ def test_screen
+ @display.setup(800,600, true)
+ assert @display.screen.size ==[800,600]
+ assert @display.screen.flags[0] & Rubygame::HWSURFACE
+ assert @display.screen.flags[1] & Rubygame::DOUBLEBUF
+ assert @display.cursor == true
+ end
+ def test_cursor_false
+ @display.setup(800,600, false)
+ assert @display.cursor == false
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_rectcollide_collide.rb
===================================================================
--- trunk/rbgooey/test/test_rectcollide_collide.rb (rev 0)
+++ trunk/rbgooey/test/test_rectcollide_collide.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,56 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initalization of RectCollide class
+
+class RectCollideCollideTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.mouse.setup("test/mouse.png")
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_collide
+ @data.declare(:world)
+ @data.text.add("collide!",50,50)
+ @data.text.active() { puts"Wee!"}
+ @data.mouse.pos = [51,50]
+ @data.mouse.update()
+ check = @data.collide.check()
+ assert check != false
+ end
+ def test_collide_no_match
+ @data.declare(:world)
+ @data.text.add("collide!",50,50)
+ @data.text.active() { puts"Wee!"}
+ @data.mouse.update()
+ check = @data.collide.check()
+ assert check == false
+ end
+ def test_collide_actionable
+ @data.declare(:MMM)
+ @data.text.add("MAGICAL!",100,100)
+ @data.text.active() { @match = true }
+ @data.mouse.pos = [100,100]
+ @data.mouse.update()
+ @data.collide.check()
+ assert @match == true
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_rectcollide_init.rb
===================================================================
--- trunk/rbgooey/test/test_rectcollide_init.rb (rev 0)
+++ trunk/rbgooey/test/test_rectcollide_init.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,31 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initalization of RectCollide class
+
+class RectCollideInitializationTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ end
+ def test_initialization
+ @data.collide.ui.class == UiData
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_text_strings.rb
===================================================================
--- trunk/rbgooey/test/test_text_strings.rb (rev 0)
+++ trunk/rbgooey/test/test_text_strings.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,48 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test strings management system
+
+class TextManageTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_add
+ @data.declare(:hello)
+ @data.text.add("Wikitikitavi",0,0)
+ assert @data.string[@data.name[@data.status][0][0]] == "Wikitikitavi"
+ assert @data.name[:hello][1][0].class == Rect
+ end
+ def test_active_flip
+ @data.declare(:hello)
+ @data.text.add("Wikitikitavi",0,0)
+ @data.text.active() { @change = "hello"}
+ @data.action.last.call()
+ assert @change == "hello"
+ assert @data.string[@data.name[@data.status][0][0]] == "Wikitikitavi"
+ assert @data.name[:hello][1][0] == 0
+ assert @data.rect.last.class == Rect
+ verify = @data.rect.last
+ assert verify[0] == 0
+ assert verify[1] == 0
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_textrender_init.rb
===================================================================
--- trunk/rbgooey/test/test_textrender_init.rb (rev 0)
+++ trunk/rbgooey/test/test_textrender_init.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,31 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initalization of TextRender
+
+class TextRenderInitializationTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ end
+ def test_initialization
+ @data.text.render.ui.class == UiData
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_textrender_render.rb
===================================================================
--- trunk/rbgooey/test/test_textrender_render.rb (rev 0)
+++ trunk/rbgooey/test/test_textrender_render.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,37 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test rendering of TextRender
+
+class TextRenderingTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_render
+ @data.declare(:you)
+ @data.text.add("I wonder why",0,0)
+ @data.text.add("Why you wonder?",20,20)
+ rect = @data.name[:you][1][1]
+ assert rect[0] == 20
+ assert rect[1] == 20
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_activemode.rb
===================================================================
--- trunk/rbgooey/test/test_type_activemode.rb (rev 0)
+++ trunk/rbgooey/test/test_type_activemode.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,40 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test active mode of Type class
+
+class TypeActiveModeTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_type_mode_active
+ @data.type.switch()
+ q = Rubygame::EventQueue.new()
+ @data.type.active(q)
+ assert @data.type.string == ""
+ end
+ def test_type_mode_inactive
+ q = Rubygame::EventQueue.new()
+ @data.type.active(q)
+ assert @data.type.string == nil
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_init.rb
===================================================================
--- trunk/rbgooey/test/test_type_init.rb (rev 0)
+++ trunk/rbgooey/test/test_type_init.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,36 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initalization of Type class
+
+class TypeInitializationTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_initialize
+ assert @data.type.ui.class == UiData
+ assert @data.type.state == false
+ assert @data.type.lower.class == Lowercase
+ assert @data.type.special.class == LowerSpecial
+ assert @data.type.command.class == SpecialCommands
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_lowercase.rb
===================================================================
--- trunk/rbgooey/test/test_type_lowercase.rb (rev 0)
+++ trunk/rbgooey/test/test_type_lowercase.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,216 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test active mode of Type class
+
+class TypeLowerCaseTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @data.type.position(0,0)
+ @data.type.switch()
+ @data.declare(:weee!)
+ @q = Rubygame::EventQueue.new
+
+ end
+ def test_event_a
+ @q.push(KeyDownEvent.new("a", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "a"
+ end
+ def test_event_b
+ @q.push(KeyDownEvent.new("b", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "b"
+ end
+ def test_event_c
+ @q.push(KeyDownEvent.new("c", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "c"
+ end
+ def test_event_d
+ @q.push(KeyDownEvent.new("d", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "d"
+ end
+ def test_event_e
+ @q.push(KeyDownEvent.new("e", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "e"
+ end
+ def test_event_f
+ @q.push(KeyDownEvent.new("f",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "f"
+ end
+ def test_event_g
+ @q.push(KeyDownEvent.new("g",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "g"
+ end
+ def test_event_h
+ @q.push(KeyDownEvent.new("h",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "h"
+ end
+ def test_event_i
+ @q.push(KeyDownEvent.new("i",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "i"
+ end
+ def test_event_j
+ @q.push(KeyDownEvent.new("j",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "j"
+ end
+ def test_event_k
+ @q.push(KeyDownEvent.new("k",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "k"
+ end
+ def test_event_l
+ @q.push(KeyDownEvent.new("l",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "l"
+ end
+ def test_event_m
+ @q.push(KeyDownEvent.new("m",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "m"
+ end
+ def test_event_n
+ @q.push(KeyDownEvent.new("n",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "n"
+ end
+ def test_event_o
+ @q.push(KeyDownEvent.new("o",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "o"
+ end
+ def test_event_p
+ @q.push(KeyDownEvent.new("p",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "p"
+ end
+ def test_event_q
+ @q.push(KeyDownEvent.new("q",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "q"
+ end
+ def test_event_r
+ @q.push(KeyDownEvent.new("r",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "r"
+ end
+ def test_event_s
+ @q.push(KeyDownEvent.new("s",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "s"
+ end
+ def test_event_t
+ @q.push(KeyDownEvent.new("t",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "t"
+ end
+ def test_event_u
+ @q.push(KeyDownEvent.new("u",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "u"
+ end
+ def test_event_v
+ @q.push(KeyDownEvent.new("v",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "v"
+ end
+ def test_event_w
+ @q.push(KeyDownEvent.new("w",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "w"
+ end
+ def test_event_x
+ @q.push(KeyDownEvent.new("x",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "x"
+ end
+ def test_event_y
+ @q.push(KeyDownEvent.new("y",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "y"
+ end
+ def test_event_z
+ @q.push(KeyDownEvent.new("z",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "z"
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_lowerspecial.rb
===================================================================
--- trunk/rbgooey/test/test_type_lowerspecial.rb (rev 0)
+++ trunk/rbgooey/test/test_type_lowerspecial.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,132 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test active mode of Type class
+
+class TypeLowerSpecialTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @data.type.position(0,0)
+ @data.type.switch()
+ @data.declare(:testing)
+ @q = Rubygame::EventQueue.new
+
+ end
+ def test_event_0
+ @q.push(KeyDownEvent.new("0", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "0"
+ end
+ def test_event_1
+ @q.push(KeyDownEvent.new("1", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "1"
+ end
+ def test_event_2
+ @q.push(KeyDownEvent.new("2", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "2"
+ end
+ def test_event_3
+ @q.push(KeyDownEvent.new("3", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "3"
+ end
+ def test_event_4
+ @q.push(KeyDownEvent.new("4", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "4"
+ end
+ def test_event_5
+ @q.push(KeyDownEvent.new("5",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "5"
+ end
+ def test_event_6
+ @q.push(KeyDownEvent.new("6",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "6"
+ end
+ def test_event_7
+ @q.push(KeyDownEvent.new("7",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "7"
+ end
+ def test_event_8
+ @q.push(KeyDownEvent.new("8",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "8"
+ end
+ #def test_event_9
+ # @q.push(KeyDownEvent.new("9",[]))
+ # @q.each do |ev|
+ # @data.type.active(ev)
+ # end
+ # assert @data.type.string == "asdf"
+ #end
+ #def test_event_slash
+ # @q.push(KeyDownEvent.new("/",[]))
+ # @q.each do |ev|
+ # @data.type.active(ev)
+ # end
+ # assert @data.type.string == "/"
+ #end
+ def test_event_quote
+ @q.push(KeyDownEvent.new("'",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "'"
+ end
+ def test_event_period
+ @q.push(KeyDownEvent.new(".",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "."
+ end
+ def test_event_space
+ @q.push(KeyDownEvent.new(" ",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == " "
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_output.rb
===================================================================
--- trunk/rbgooey/test/test_type_output.rb (rev 0)
+++ trunk/rbgooey/test/test_type_output.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,47 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test active mode of Type class
+
+class TypeTypingOutputTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @data.type.position(0,0)
+ @data.type.switch()
+ @data.declare(:WAR!)
+ @q = Rubygame::EventQueue.new
+
+ end
+ def test_event_add_more_then_1
+ @q.push(KeyDownEvent.new("a", []))
+ @q.push(KeyDownEvent.new("a", []))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "aa"
+ assert @data.string.last == "aa"
+ assert @data.string.length == 1
+ rect = @data.name[@data.status][1][0]
+ assert @data.name[@data.status][1].length == 1
+ assert rect[1] == 0
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_specialcommands.rb
===================================================================
--- trunk/rbgooey/test/test_type_specialcommands.rb (rev 0)
+++ trunk/rbgooey/test/test_type_specialcommands.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,58 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test active mode of Type class
+
+class TypeSpecialCommandsTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ @data.type.position(0,0)
+ @data.type.switch()
+ @data.declare(:weee!)
+ @q = Rubygame::EventQueue.new
+ @q.push(KeyDownEvent.new("a", []))
+ @q.push(KeyDownEvent.new("a", []))
+ end
+ def test_event_backspace
+ @q.push(KeyDownEvent.new("\b",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == "a"
+ end
+ def test_event_backspace_total
+ @q.push(KeyDownEvent.new("\b",[]))
+ @q.push(KeyDownEvent.new("\b",[]))
+ @q.each do |ev|
+ @data.type.active(ev)
+ end
+ assert @data.type.string == ""
+ assert @data.string.length == 0
+ end
+ #def test_event_backspace_total
+ # @q.push(KeyDownEvent.new("\n",[]))
+ # @q.each do |ev|
+ # @data.type.active(ev)
+ # end
+ # assert @data.type.state == false
+ #end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_type_switch.rb
===================================================================
--- trunk/rbgooey/test/test_type_switch.rb (rev 0)
+++ trunk/rbgooey/test/test_type_switch.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,43 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test switch mode of Type class
+
+class TypeSwitchModeTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_state_switch
+ @data.type.switch()
+ assert @data.type.state == true
+ end
+ def test_state_switch_false
+ @data.type.switch()
+ @data.type.switch()
+ assert @data.type.state == false
+ end
+ def test_position
+ @data.type.position(123,123)
+ assert @data.type.x == 123
+ assert @data.type.y == 123
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_uidata_groups.rb
===================================================================
--- trunk/rbgooey/test/test_uidata_groups.rb (rev 0)
+++ trunk/rbgooey/test/test_uidata_groups.rb 2007-06-02 20:33:34 UTC (rev 1338)
@@ -0,0 +1,50 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Data class initialization
+
+class UiDataGroupingTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.text.setup("test/freesansbold.ttf",12)
+ end
+ def test_name
+ @data.declare(:testing)
+ assert @data.status == :testing
+ assert @data.name[:testing][0] == []
+ assert @data.name[:testing][1] == []
+ assert @data.name[:testing][2] == []
+ end
+ def test_clear
+ @data.declare(:wahlah)
+ @data.text.add("hello",12,12)
+ @data.text.active() { t = 1 }
+ assert @data.status == :wahlah
+ assert @data.string.length == 1
+ assert @data.rect.length == 1
+ assert @data.action.length == 1
+ @data.clear()
+ assert @data.status == nil
+ assert @data.string.length == 0
+ assert @data.rect.length == 0
+ assert @data.action.length == 0
+ end
+end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 20:01:45
|
Revision: 1337
http://svn.sourceforge.net/dynpet/?rev=1337&view=rev
Author: kiba_ruby
Date: 2007-06-02 13:01:44 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
delete rbgooey/lib
Removed Paths:
-------------
branches/rbgooey/lib/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:59:55
|
Revision: 1336
http://svn.sourceforge.net/dynpet/?rev=1336&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:59:50 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add all the lib part from the rbgooey branch
Added Paths:
-----------
trunk/rbgooey/lib/check.rb
trunk/rbgooey/lib/rectcollide.rb
trunk/rbgooey/lib/type.rb
trunk/rbgooey/lib/typelowerspecial.rb
trunk/rbgooey/lib/typespecialcommands.rb
Added: trunk/rbgooey/lib/check.rb
===================================================================
--- trunk/rbgooey/lib/check.rb (rev 0)
+++ trunk/rbgooey/lib/check.rb 2007-06-02 19:59:50 UTC (rev 1336)
@@ -0,0 +1,48 @@
+#Copyright (C) 2006-2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: Load all the part of the library
+
+class Check
+ attr_accessor :display , :n
+ def initialize display
+ @display = display
+ @fg = @display.fg
+ @bg = @display.bg
+ @screen = @display.screen
+ check()
+ end
+ def check
+ @n = []
+ if @screen == nil
+ puts"You forgot to Display#setup"
+ n << 1
+ end
+ if @fg == nil || @bg == nil
+ puts"You forgot to Display#color"
+ n << 2
+ end
+ if @n == []
+ return true
+ else
+ return @n
+ end
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/rectcollide.rb
===================================================================
--- trunk/rbgooey/lib/rectcollide.rb (rev 0)
+++ trunk/rbgooey/lib/rectcollide.rb 2007-06-02 19:59:50 UTC (rev 1336)
@@ -0,0 +1,42 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: Deal with collision detection algorithm.
+
+class RectCollide
+ attr_accessor :ui
+ def initialize ui
+ @ui = ui
+ end
+ def check
+ @count = 0
+ @ui.rect.each do |rect|
+ if @ui.mouse.rect.collide_rect?(rect)
+ action()
+ return @count
+ end
+ @count += 1
+ end
+ return false
+ end
+ def action
+ @ui.action[@count].call()
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/type.rb
===================================================================
--- trunk/rbgooey/lib/type.rb (rev 0)
+++ trunk/rbgooey/lib/type.rb 2007-06-02 19:59:50 UTC (rev 1336)
@@ -0,0 +1,98 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class deal with Typing operations.
+
+class Type
+ attr_accessor :ui , :state , :string , :lower , :special , :command,:x , :y
+ def initialize ui
+ @ui = ui
+ @state = false
+ @lower = Lowercase.new(self)
+ @special = LowerSpecial.new(self)
+ @command = SpecialCommands.new(self)
+ end
+ #check the length of @ui.string
+ def length
+ @n = @ui.string.length + 1
+ end
+ #switch the state from false to true and vice versa
+ def switch
+ if @state == false
+ @state = true
+ length()
+ else
+ @state = false
+ end
+ end
+ #delete something
+ def delete
+ if @ui.string.length == @n
+ @string.chop!
+ @ui.string[@n - 2] = @string
+ if @string == ""
+ @ui.name[@ui.status][0].pop()
+ @ui.text.render.reset()
+ @ui.rect.pop()
+ @ui.string.pop()
+ end
+ end
+ end
+ #rendering the typing
+ def render
+ if @string == ""
+ return
+ end
+ if @ui.string.length != @n
+ @ui.text.add(@string,@x,@y)
+ elsif @ui.string.length == @n
+ @ui.string[@n - 2] = @string
+ @ui.text.render.reset()
+ @ui.text.render.render(@x,@y)
+ end
+ end
+ #type a specific letter
+ def type letter
+ if @string == ""
+ @string = letter
+ else
+ @string << letter
+ end
+ render()
+ end
+ #set up the position of where the typing will occur
+ def position x , y
+ if @state == false
+ @x = x
+ @y = y
+ end
+ end
+ #typing beings when state is true
+ def active ev
+ if @state == true
+ if @string == nil
+ @string = ""
+ end
+ @lower.action(ev)
+ @special.action(ev)
+ @command.action(ev)
+ end
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/typelowerspecial.rb
===================================================================
--- trunk/rbgooey/lib/typelowerspecial.rb (rev 0)
+++ trunk/rbgooey/lib/typelowerspecial.rb 2007-06-02 19:59:50 UTC (rev 1336)
@@ -0,0 +1,64 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class is responsible for lowercase typing.
+
+class LowerSpecial
+ def initialize t
+ @t = t
+ end
+ def action ev
+ case ev
+ when Rubygame::KeyDownEvent
+ case ev.key
+ when Rubygame::K_0
+ @t.type("0")
+ when Rubygame::K_1
+ @t.type("1")
+ when Rubygame::K_2
+ @t.type("2")
+ when Rubygame::K_3
+ @t.type("3")
+ when Rubygame::K_4
+ @t.type("4")
+ when Rubygame::K_5
+ @t.type("5")
+ when Rubygame::K_6
+ @t.type("6")
+ when Rubygame::K_7
+ @t.type("7")
+ when Rubygame::K_8
+ @t.type("8")
+ when Rubygame::K_9
+ @t.type("9")
+ when Rubygame::K_SLASH
+ @t.type("/")
+ when Rubygame::K_MINUS
+ @t.type("-")
+ when Rubygame::K_QUOTE
+ @t.type("\'")
+ when Rubygame::K_PERIOD
+ @t.type(".")
+ when Rubygame::K_SPACE
+ @t.type(" ")
+ end
+ end
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/typespecialcommands.rb
===================================================================
--- trunk/rbgooey/lib/typespecialcommands.rb (rev 0)
+++ trunk/rbgooey/lib/typespecialcommands.rb 2007-06-02 19:59:50 UTC (rev 1336)
@@ -0,0 +1,38 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class is responsible for lowercase typing.
+
+class SpecialCommands
+ def initialize t
+ @t = t
+ end
+ def action ev
+ case ev
+ when Rubygame::KeyDownEvent
+ case ev.key
+ when Rubygame::K_BACKSPACE
+ @t.delete()
+ when Rubygame::K_RETURN
+ @t.state = false
+ end
+ end
+ end
+end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:40:15
|
Revision: 1335
http://svn.sourceforge.net/dynpet/?rev=1335&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:40:11 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
move html document of rbgooey branch to www
Modified Paths:
--------------
www/index.html
Added Paths:
-----------
www/rbgooey/
www/rbgooey/html/
www/rbgooey/index.html
Removed Paths:
-------------
branches/rbgooey/html/
www/rbgooey/html/index.html
www/rbgooey/html/style.css
www/rbgooey/index.html
Modified: www/index.html
===================================================================
--- www/index.html 2007-06-02 19:34:49 UTC (rev 1334)
+++ www/index.html 2007-06-02 19:40:11 UTC (rev 1335)
@@ -4,32 +4,26 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css"></link>
<style type="text/css"></style>
-<title>Dynpet Project - Home
+<title> Project Rbgooey: home
</title>
</head>
<body>
-<h5><b>This page is last updated Janurary 8, 2007.</b></h5>
+<h5><b>This page is last updated May 30, 2007.</b></h5>
-<h1 class = "center">Dynpet</h1>
-<p><a href="index.html">| Home | </a><a href="download.html">| Download | </a><a href="user.html">| User | </a>
-<a href="http://www.sourceforge.net/projects/dynpet">| Sourceforge Project Page |</a>
+<h1 class = "center">Rbgooey</h1>
+<p><a href="index.html">| Home | </a>
</p>
-
-<p>Dynpet is a Free/Open Source software game programmed in Ruby and licensed under the GPL. The objective of the game is to take care of a virtual pet, similiar to the Tamagotchi. It is developed by Han Dao.</p>
-<p>See <a href="download.html">download</a> page for information on downloading the game and <a href="screenshot.html">screenshot</a> page for screenshots.</p>
-<h2>Help and Community</h2>
-<p>You can join the player community at the <a href="irc://irc.freenode.net/#dynpet">Dynpet</a> channel located on the Freenode network. or for people who want to help develop the game, see the <a href="https://lists.sourceforge.net/lists/listinfo/dynpet-developer">developer mailing list.</a></p>
-<h2>Version and Status</h2>
-<p>The latest version of Dynpet is 0.0.7 as of Janurary 8, 2007. The status of Dynpet is pre-alpha, and is experimental in term of gameplay. The reason for this experimental status is the attempt to reach what the developers deem "fun", but also cool. If you have ideas, join the developer mailing list.</p>
-<h2>News</h2>
-<p>Janurary 8, 2007: Site updated and Dynpet 0.0.7 released. Many contents of this site are revamped, and much of it is deleted. Dynpet 0.0.7 is the second rewrite of the game. The changes are enormous. The size of this release drawf all of older versions. It is now a graphical game, with entirely different gameplay(although incomplete).</p>
-<h2>Contact</h2>
-<p>You can contact the author at wikipediankiba AT gmail.com. Website issues, compliants, flames, feedbacks, suggestions, fan mails, game bugs report are welcomed.</p>
-<p><a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=165302&type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></p>
- <p>
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-xhtml11"
- alt="Valid XHTML 1.1" height="31" width="88" /></a>
- </p>
+<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
+<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
+<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
+<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
+<h2>Features</h2>
+<p>Some of the current notable features are....</p>
+<ul>
+<li>Grouping of texts via UiData#declare(name of your choice)</li>
+<li>A way to type</li>
+</ul>
+<h2>Download and Install</h2>
+<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a></p>
</body>
</html>
\ No newline at end of file
Copied: www/rbgooey (from rev 1307, branches/rbgooey/html)
Copied: www/rbgooey/html (from rev 1334, branches/rbgooey/html)
Deleted: www/rbgooey/html/index.html
===================================================================
--- branches/rbgooey/html/index.html 2007-06-02 19:34:49 UTC (rev 1334)
+++ www/rbgooey/html/index.html 2007-06-02 19:40:11 UTC (rev 1335)
@@ -1,32 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title> Project Rbgooey: home
-</title>
-</head>
-<body>
-<h5><b>This page is last updated May 30, 2007.</b></h5>
-
-<h1 class = "center">Rbgooey</h1>
-<p><a href="index.html">| Home | </a>
-</p>
-<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
-<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
-<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
-<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
-<h2>Features</h2>
-<p>Some of the current notable features are....</p>
-<ul>
-<li>Grouping of texts via UiData#declare(name of your choice)</li>
-<li>A way to type</li>
-</ul>
-<h2>Download and Install</h2>
-<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a>.</p>
-<h2>My Blog</h2>
-<p>This is my RSS html feed for my game development blog below. You can visit the <a href="http://libertygaming.blogspot.com">blog</a> right now if you wanted to.</p>
-<script src="http://feeds.feedburner.com/LibertyGaming?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/LibertyGaming"></a><br/>Powered by FeedBurner</p> </noscript>
-</body>
-</html>
\ No newline at end of file
Deleted: www/rbgooey/html/style.css
===================================================================
--- branches/rbgooey/html/style.css 2007-06-02 19:34:49 UTC (rev 1334)
+++ www/rbgooey/html/style.css 2007-06-02 19:40:11 UTC (rev 1335)
@@ -1,26 +0,0 @@
-P {
- font-family : Arial, Helvetica, sans-serif;
- font-size : 12px;
-}
-a:link
-{
- text-decoration: none;
-}
-a:visited
-{
- color: red;
- text-decoration: none;
-}
-a:hover
-{
- text-decoration: underline;
- color: orange;
-}
-li
-{
- font-size: 14px;
-}
-h1.center
-{
- text-align: center;
-}
\ No newline at end of file
Deleted: www/rbgooey/index.html
===================================================================
--- branches/rbgooey/html/index.html 2007-05-31 11:17:43 UTC (rev 1307)
+++ www/rbgooey/index.html 2007-06-02 19:40:11 UTC (rev 1335)
@@ -1,30 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<link href="style.css" rel="stylesheet" type="text/css"></link>
-<style type="text/css"></style>
-<title> Project Rbgooey: home
-</title>
-</head>
-<body>
-<h5><b>This page is last updated May 30, 2007.</b></h5>
-
-<h1 class = "center">Rbgooey</h1>
-<p><a href="index.html">| Home | </a>
-</p>
-<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
-<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
-<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
-<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
-<h2>Features</h2>
-<p>Some of the current notable features are....</p>
-<ul>
-<li>Grouping of texts via UiData#declare(name of your choice)</li>
-<li>A way to type</li>
-</ul>
-<h2>Download and Install</h2>
-<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a></p>
-
-</body>
-</html>
\ No newline at end of file
Copied: www/rbgooey/index.html (from rev 1310, branches/rbgooey/html/index.html)
===================================================================
--- www/rbgooey/index.html (rev 0)
+++ www/rbgooey/index.html 2007-06-02 19:40:11 UTC (rev 1335)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link href="style.css" rel="stylesheet" type="text/css"></link>
+<style type="text/css"></style>
+<title> Project Rbgooey: home
+</title>
+</head>
+<body>
+<h5><b>This page is last updated May 30, 2007.</b></h5>
+
+<h1 class = "center">Rbgooey</h1>
+<p><a href="index.html">| Home | </a>
+</p>
+<p>Rbgooey is an alternate GUI library for <a href="http://www.rubygame.sourceforge.net">Rubygame</a> users and the first GUI library to be released for Rubygame. It is alternative because somewhere down the road, Rubygame developers will release their own GUI api. Rbgooey is licensed under the GPL, so any rubygame applications that used rbgooey must also be under the GPL.</p>
+<p>Rbgooey is a result of months of developments, spawling features after another, and then eventually it is rewritten into what it is today. The developer of rbgooey took these experience of writing a GUI library and aims to write a better version of rbgooey. Only a week later after the project started, the functional subset of text library is finished, ready to be released. However, unlike the old codebase, it isn't battle tested. Over the next few months, the developer will use it in applications and refines it features and API.</p>
+<p>Current version 0.0.1 is alpha release. It may be lacking in documentation, ease of uses, and sucks in other department</p>
+<p>If you have any questions, compliants, and other feedback, please contract the author at wikipediankiba____AT____gmail.com</p>
+<h2>Features</h2>
+<p>Some of the current notable features are....</p>
+<ul>
+<li>Grouping of texts via UiData#declare(name of your choice)</li>
+<li>A way to type</li>
+</ul>
+<h2>Download and Install</h2>
+<p>If you're a rubygame user, you should have Rubygame installed. If you did not, get it at <a href="http://rubygame.sourceforge.net">Rubygame</a> website. Make sure that you have rubygems installed too. Once you download the package, you should be to install via Rakefile. Get the file at <a href="http://rubyforge.org/projects/rbgooey">Rubyforge project page</a>.</p>
+<h2>My Blog</h2>
+<p>This is my RSS html feed for my game development blog below. You can visit the <a href="http://libertygaming.blogspot.com">blog</a> right now if you wanted to.</p>
+<script src="http://feeds.feedburner.com/LibertyGaming?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/LibertyGaming"></a><br/>Powered by FeedBurner</p> </noscript>
+</body>
+</html>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:34:52
|
Revision: 1334
http://svn.sourceforge.net/dynpet/?rev=1334&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:34:49 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
begin the removal of branch rbgooey
Removed Paths:
-------------
branches/rbgooey/GPL
branches/rbgooey/README
branches/rbgooey/Rakefile
branches/rbgooey/rbgooey.gemspec
branches/rbgooey/svn.rb
Deleted: branches/rbgooey/GPL
===================================================================
--- branches/rbgooey/GPL 2007-06-02 19:32:53 UTC (rev 1333)
+++ branches/rbgooey/GPL 2007-06-02 19:34:49 UTC (rev 1334)
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
\ No newline at end of file
Deleted: branches/rbgooey/README
===================================================================
--- branches/rbgooey/README 2007-06-02 19:32:53 UTC (rev 1333)
+++ branches/rbgooey/README 2007-06-02 19:34:49 UTC (rev 1334)
@@ -1,34 +0,0 @@
-rbgooey:
-
-Rbgooey is an alternative GUI library for Rubygame users. This is version 0.0.1. Its current main features are handling of texts and typing output.
-
-Copyright (C) 2007 Han Dao (wik...@gm...) and contributors(if any).
-
-See website for more information on this library. You can access the web site at http://rbgooey.rubyforge.org
-
-==INSTALLATION==
-
-You should have Rubygame installed, along with Ruby, as well as Rubygems and rake to install the library.
-Extract the library and enter the direction and type "rake build" to install the program. Documentation are in the code's comments and how to use it are in the samples directory.
-
-==Using the library==
-
-Documentation is sparse right now as of this release. Check http://rbgooey.rubyforge.org for documentation update.
-
-==LICENSE==
-
-The rbgooey source code is copyright (C) 2007 Han Dao and contributors if any.
-
-Rbgooey is free software; you can redistribute it and/or modify it
-under the terms of the GNU General Public License as published by the
-Free Software Foundation; either version 2 of the License, or (at your
-option) any later version.
-
-Rbgooey is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Dynpet; if not, write to the Free Software Foundation,
-Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\ No newline at end of file
Deleted: branches/rbgooey/Rakefile
===================================================================
--- branches/rbgooey/Rakefile 2007-06-02 19:32:53 UTC (rev 1333)
+++ branches/rbgooey/Rakefile 2007-06-02 19:34:49 UTC (rev 1334)
@@ -1,52 +0,0 @@
-#Copyright (C) 2007 by Han Dao
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-#You can contract the author at wik...@gm...
-
-#PROJECT: Rakefile for Dynpet
-#DESCRIPTION: Automated build system
-#FUNCTION OF THIS PART: Command automation..
-
-#require files
-require"rcov/rcovtask"
-require"svn.rb"
-#Rules for all tasks.
-task :ci => [:rcov,:svn]
-
-#Tasks for running tests
-Rcov::RcovTask.new do |t|
- t.test_files = FileList['test/test.rb']
- t.rcov_opts << '-x /usr/local/lib/site_ruby/1.8/'
- t.output_dir = "coverage/rbgooey"
- t.verbose = true
-end
-
-#Install rbgooey
-task :build do
- sh "gem build rbgooey.gemspec"
- sh "sudo gem install rbgooey-0.0.1 --local"
-end
-
-#Commit task
-task :ci do
- sh "svn ci"
-end
-
-#Various svn functions. Currently only automatic .rb addition.
-task :svn do
- ci = Commit.new
- ci.add
-end
\ No newline at end of file
Deleted: branches/rbgooey/rbgooey.gemspec
===================================================================
--- branches/rbgooey/rbgooey.gemspec 2007-06-02 19:32:53 UTC (rev 1333)
+++ branches/rbgooey/rbgooey.gemspec 2007-06-02 19:34:49 UTC (rev 1334)
@@ -1,41 +0,0 @@
-#Copyright (C) 2007 by Han Dao
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-#You can contract the author at wik...@gm...
-
-#PROJECT: Rbgooey
-#DESCRIPTION: A GUI library for the rubygame library.
-#FUNCTION OF THIS PART: Gem specification for building gems file.
-require 'rubygems'
-Gem::manage_gems
-require 'rake/gempackagetask'
-spec = Gem::Specification.new do |s|
- s.name = "rbgooey"
- s.version = "0.0.1"
- s.author = "Han Dao"
- s.email = "wik...@gm..."
- s.homepage = "http://rbgooey.rubyforge.org"
- s.platform = Gem::Platform::RUBY
- s.summary = "GUI library for the Rubygame library"
- s.files = FileList["lib/*.rb"].to_a
- s.require_path = ["lib"]
- s.autorequire = "rbgooey.rb"
- s.has_rdoc = false
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = true
-end
Deleted: branches/rbgooey/svn.rb
===================================================================
--- branches/rbgooey/svn.rb 2007-06-02 19:32:53 UTC (rev 1333)
+++ branches/rbgooey/svn.rb 2007-06-02 19:34:49 UTC (rev 1334)
@@ -1,40 +0,0 @@
-#Copyright (C) 2007 by Han Dao
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-#You can contract the author at wik...@gm...
-
-#PROJECT: Dynpet commit script
-#DESCRIPTION: Automated commit system
-#FUNCTION OF THIS PART: add all missing .rb file and then commit
-class Commit
- def initialize
- @items = []
- @contents = []
- end
- def add
- puts"Commiting is now commencing."
- `svn st`.each do |s|
- item , content = s.split(' ',2)
- @items << item
- @contents << content
- end
- @items.zip(@contents).each do |i , c|
- if i == '?' && c[/\.rb$/] || c[/\.xml$/]
- puts `svn add #{c}`
- end
- end
- end
-end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:32:57
|
Revision: 1333
http://svn.sourceforge.net/dynpet/?rev=1333&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:32:53 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
moving files from rbgooey branches to the new trunk directory
Added Paths:
-----------
trunk/rbgooey/GPL
trunk/rbgooey/README
trunk/rbgooey/Rakefile
trunk/rbgooey/rbgooey.gemspec
trunk/rbgooey/svn.rb
Added: trunk/rbgooey/GPL
===================================================================
--- trunk/rbgooey/GPL (rev 0)
+++ trunk/rbgooey/GPL 2007-06-02 19:32:53 UTC (rev 1333)
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
\ No newline at end of file
Added: trunk/rbgooey/README
===================================================================
--- trunk/rbgooey/README (rev 0)
+++ trunk/rbgooey/README 2007-06-02 19:32:53 UTC (rev 1333)
@@ -0,0 +1,34 @@
+rbgooey:
+
+Rbgooey is an alternative GUI library for Rubygame users. This is version 0.0.1. Its current main features are handling of texts and typing output.
+
+Copyright (C) 2007 Han Dao (wik...@gm...) and contributors(if any).
+
+See website for more information on this library. You can access the web site at http://rbgooey.rubyforge.org
+
+==INSTALLATION==
+
+You should have Rubygame installed, along with Ruby, as well as Rubygems and rake to install the library.
+Extract the library and enter the direction and type "rake build" to install the program. Documentation are in the code's comments and how to use it are in the samples directory.
+
+==Using the library==
+
+Documentation is sparse right now as of this release. Check http://rbgooey.rubyforge.org for documentation update.
+
+==LICENSE==
+
+The rbgooey source code is copyright (C) 2007 Han Dao and contributors if any.
+
+Rbgooey is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+Rbgooey is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Dynpet; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\ No newline at end of file
Added: trunk/rbgooey/Rakefile
===================================================================
--- trunk/rbgooey/Rakefile (rev 0)
+++ trunk/rbgooey/Rakefile 2007-06-02 19:32:53 UTC (rev 1333)
@@ -0,0 +1,52 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rakefile for Dynpet
+#DESCRIPTION: Automated build system
+#FUNCTION OF THIS PART: Command automation..
+
+#require files
+require"rcov/rcovtask"
+require"svn.rb"
+#Rules for all tasks.
+task :ci => [:rcov,:svn]
+
+#Tasks for running tests
+Rcov::RcovTask.new do |t|
+ t.test_files = FileList['test/test.rb']
+ t.rcov_opts << '-x /usr/local/lib/site_ruby/1.8/'
+ t.output_dir = "coverage/rbgooey"
+ t.verbose = true
+end
+
+#Install rbgooey
+task :build do
+ sh "gem build rbgooey.gemspec"
+ sh "sudo gem install rbgooey-0.0.1 --local"
+end
+
+#Commit task
+task :ci do
+ sh "svn ci"
+end
+
+#Various svn functions. Currently only automatic .rb addition.
+task :svn do
+ ci = Commit.new
+ ci.add
+end
\ No newline at end of file
Added: trunk/rbgooey/rbgooey.gemspec
===================================================================
--- trunk/rbgooey/rbgooey.gemspec (rev 0)
+++ trunk/rbgooey/rbgooey.gemspec 2007-06-02 19:32:53 UTC (rev 1333)
@@ -0,0 +1,41 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: Gem specification for building gems file.
+require 'rubygems'
+Gem::manage_gems
+require 'rake/gempackagetask'
+spec = Gem::Specification.new do |s|
+ s.name = "rbgooey"
+ s.version = "0.0.1"
+ s.author = "Han Dao"
+ s.email = "wik...@gm..."
+ s.homepage = "http://rbgooey.rubyforge.org"
+ s.platform = Gem::Platform::RUBY
+ s.summary = "GUI library for the Rubygame library"
+ s.files = FileList["lib/*.rb"].to_a
+ s.require_path = ["lib"]
+ s.autorequire = "rbgooey.rb"
+ s.has_rdoc = false
+end
+
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.need_tar = true
+end
Added: trunk/rbgooey/svn.rb
===================================================================
--- trunk/rbgooey/svn.rb (rev 0)
+++ trunk/rbgooey/svn.rb 2007-06-02 19:32:53 UTC (rev 1333)
@@ -0,0 +1,40 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Dynpet commit script
+#DESCRIPTION: Automated commit system
+#FUNCTION OF THIS PART: add all missing .rb file and then commit
+class Commit
+ def initialize
+ @items = []
+ @contents = []
+ end
+ def add
+ puts"Commiting is now commencing."
+ `svn st`.each do |s|
+ item , content = s.split(' ',2)
+ @items << item
+ @contents << content
+ end
+ @items.zip(@contents).each do |i , c|
+ if i == '?' && c[/\.rb$/] || c[/\.xml$/]
+ puts `svn add #{c}`
+ end
+ end
+ end
+end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:27:24
|
Revision: 1332
http://svn.sourceforge.net/dynpet/?rev=1332&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:27:22 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
move surviving files of the original dynpet program into a new directory into dynpet
Added Paths:
-----------
trunk/dynpet/CREDITS
trunk/dynpet/GPL
Removed Paths:
-------------
trunk/CREDITS
trunk/GPL
Deleted: trunk/CREDITS
===================================================================
--- trunk/CREDITS 2007-06-02 19:25:53 UTC (rev 1331)
+++ trunk/CREDITS 2007-06-02 19:27:22 UTC (rev 1332)
@@ -1,10 +0,0 @@
-The Dynpet project would like to thanks the following people
-for contributions to the game.
-
-==Development==
-Han "Kiba" Dao (lead developer and dictator)
-
-==Special Thanks==
-I like to thanks all those who have encourage and support the Dynpet project.
-I also like to thanks the numberous people who help me with coding occassionally.
-And also people who I may forgot to list in the development team.
\ No newline at end of file
Deleted: trunk/GPL
===================================================================
--- trunk/GPL 2007-06-02 19:25:53 UTC (rev 1331)
+++ trunk/GPL 2007-06-02 19:27:22 UTC (rev 1332)
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
\ No newline at end of file
Copied: trunk/dynpet/CREDITS (from rev 1313, trunk/CREDITS)
===================================================================
--- trunk/dynpet/CREDITS (rev 0)
+++ trunk/dynpet/CREDITS 2007-06-02 19:27:22 UTC (rev 1332)
@@ -0,0 +1,10 @@
+The Dynpet project would like to thanks the following people
+for contributions to the game.
+
+==Development==
+Han "Kiba" Dao (lead developer and dictator)
+
+==Special Thanks==
+I like to thanks all those who have encourage and support the Dynpet project.
+I also like to thanks the numberous people who help me with coding occassionally.
+And also people who I may forgot to list in the development team.
\ No newline at end of file
Copied: trunk/dynpet/GPL (from rev 1290, trunk/GPL)
===================================================================
--- trunk/dynpet/GPL (rev 0)
+++ trunk/dynpet/GPL 2007-06-02 19:27:22 UTC (rev 1332)
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:25:56
|
Revision: 1331
http://svn.sourceforge.net/dynpet/?rev=1331&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:25:53 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
make a new directory for dynpet
Added Paths:
-----------
trunk/dynpet/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:25:10
|
Revision: 1330
http://svn.sourceforge.net/dynpet/?rev=1330&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:25:08 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
delete unneccessary/outdated items
Removed Paths:
-------------
trunk/Rakefile
trunk/svn.rb
trunk/test/
Deleted: trunk/Rakefile
===================================================================
--- trunk/Rakefile 2007-06-02 19:22:22 UTC (rev 1329)
+++ trunk/Rakefile 2007-06-02 19:25:08 UTC (rev 1330)
@@ -1,73 +0,0 @@
-#Copyright (C) 2007 by Han Dao
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-#You can contract the author at wik...@gm...
-
-#PROJECT: Rakefile for Dynpet
-#DESCRIPTION: Automated build system
-#FUNCTION OF THIS PART: Command automation..
-
-#require files
-require"rcov/rcovtask"
-require"svn.rb"
-#Rules for all tasks.
-task :run => [:build,:game]
-task :ci => [:build,:rcov,:app,:svn]
-
-#Tasks for running tests
-Rcov::RcovTask.new do |t|
- t.test_files = FileList['rbgooey/test/test.rb']
- t.rcov_opts << '-x /usr/local/lib/site_ruby/1.8/'
- t.output_dir = "coverage/rbgooey"
- t.verbose = true
-end
-
-Rcov::RcovTask.new(:app) do |t|
- t.test_files = FileList['test/test.rb']
- t.rcov_opts << '-x /usr/local/lib/site_ruby/1.8/'
- t.output_dir = "coverage/dynpet"
- t.verbose = true
-end
-
-task :gui do
- ruby "rbgooey/test/test.rb -v"
-end
-
-task :game do
- ruby "test/test.rb"
-end
-
-#Commit task
-task :ci do
- sh "svn ci"
-end
-
-#Various svn functions. Currently only automatic .rb addition.
-task :svn do
- ci = Commit.new
- ci.add
-end
-
-#Build and install gems task
-task :build do
- sh "gem build rbgooey.gemspec"
- sh "sudo gem install rbGooey-0.0.1 --local"
-end
-
-#Build gem, run tests, run dynpet.rb
-task :run do
- sh "ruby dynpet.rb"
-end
\ No newline at end of file
Deleted: trunk/svn.rb
===================================================================
--- trunk/svn.rb 2007-06-02 19:22:22 UTC (rev 1329)
+++ trunk/svn.rb 2007-06-02 19:25:08 UTC (rev 1330)
@@ -1,40 +0,0 @@
-#Copyright (C) 2007 by Han Dao
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-#You can contract the author at wik...@gm...
-
-#PROJECT: Dynpet commit script
-#DESCRIPTION: Automated commit system
-#FUNCTION OF THIS PART: add all missing .rb file and then commit
-class Commit
- def initialize
- @items = []
- @contents = []
- end
- def add
- puts"Commiting is now commencing."
- `svn st`.each do |s|
- item , content = s.split(' ',2)
- @items << item
- @contents << content
- end
- @items.zip(@contents).each do |i , c|
- if i == '?' && c[/\.rb$/] || c[/\.xml$/]
- puts `svn add #{c}`
- end
- end
- end
-end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:22:26
|
Revision: 1329
http://svn.sourceforge.net/dynpet/?rev=1329&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:22:22 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
add files from the rbgooey branch
Added Paths:
-----------
trunk/rbgooey/lib/
trunk/rbgooey/lib/display.rb
trunk/rbgooey/lib/files.rb
trunk/rbgooey/lib/mouse.rb
trunk/rbgooey/lib/rbgooey.rb
trunk/rbgooey/lib/setup.rb
trunk/rbgooey/lib/text.rb
trunk/rbgooey/lib/textrender.rb
trunk/rbgooey/lib/uidata.rb
trunk/rbgooey/samples/
trunk/rbgooey/samples/randomtxt.rb
trunk/rbgooey/test/
trunk/rbgooey/test/nobg.yml
trunk/rbgooey/test/nocolor.yml
trunk/rbgooey/test/nofg.yml
trunk/rbgooey/test/noflags.yml
trunk/rbgooey/test/nofont.yml
trunk/rbgooey/test/nosize.yml
trunk/rbgooey/test/setup.yml
trunk/rbgooey/test/test.rb
trunk/rbgooey/test/test_display_flags.rb
trunk/rbgooey/test/test_display_init.rb
trunk/rbgooey/test/test_mouse_init.rb
trunk/rbgooey/test/test_setup_init.rb
trunk/rbgooey/test/test_setup_read.rb
trunk/rbgooey/test/test_text_init.rb
trunk/rbgooey/test/test_uidata_init.rb
Added: trunk/rbgooey/lib/display.rb
===================================================================
--- trunk/rbgooey/lib/display.rb (rev 0)
+++ trunk/rbgooey/lib/display.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,53 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class contain basic display screen setting as well as colors.
+
+class Display
+ attr_accessor :x , :y , :cursor , :flags , :screen , :fg , :bg
+ def initialize
+ @flags = [Rubygame::HWSURFACE, Rubygame::DOUBLEBUF]
+ end
+ #set up the screen
+ def setup x , y , cursor
+ @x = x
+ @y = y
+ @cursor = cursor
+ screenmode()
+ end
+ #Make the display screen.
+ def screenmode
+ @screen = Rubygame::Screen.new([@x,@y],0, @flags)
+ @screen.show_cursor = @cursor
+ end
+ #set up the color
+ def color fg , bg
+ @fg = fg
+ @bg = bg
+ end
+ #add a certain flag
+ def addflag n
+ case n
+ when 1
+ @flags << Rubygame::FULLSCREEN
+ end
+ screenmode()
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/files.rb
===================================================================
--- trunk/rbgooey/lib/files.rb (rev 0)
+++ trunk/rbgooey/lib/files.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,34 @@
+#Copyright (C) 2006-2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: rbgooey
+#DESCRIPTION: A GUI library for the Rubygame library
+#FUNCTION OF THIS PART: Yaml file loading system.
+
+class FileSys
+ #Read the file
+ def yaml_read filename
+ yaml_string = File.read filename; YAML:: load yaml_string
+ end
+ #Write to the file
+ def yaml_write object , filename
+ File.open filename , 'w' do |f|
+ f.write(object.to_yaml)
+ end
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/mouse.rb
===================================================================
--- trunk/rbgooey/lib/mouse.rb (rev 0)
+++ trunk/rbgooey/lib/mouse.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,52 @@
+#Copyright (C) 2006-2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This is class Mouse that deal with mouse related functions.
+
+class Mouse
+ attr_accessor :image , :rect , :pos
+ include Rubygame::Sprites::Sprite
+ #The mouse take an image instead of a plain back cursor
+ def initialize
+ super
+ @pos = [0,0]
+ end
+ def setup name
+ @image , @rect = load(name)
+ end
+ def load name
+ image = Rubygame::Surface.load_image(name)
+ return image, Rubygame::Rect.new(0,0,*image.size)
+ end
+ #Move the mouse
+ def tell tell
+ case tell
+ when Rubygame::MouseMotionEvent
+ @pos = tell.pos
+ end
+ end
+ #Update's mouse rect
+ def update
+ @rect.midtop = @pos
+ end
+ def undraw(dest, background)
+ background.blit(dest,@rect,@rect)
+ end
+end
Added: trunk/rbgooey/lib/rbgooey.rb
===================================================================
--- trunk/rbgooey/lib/rbgooey.rb (rev 0)
+++ trunk/rbgooey/lib/rbgooey.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,36 @@
+#Copyright (C) 2006-2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: Load all the parts of the library
+
+require"rubygems"
+require"check.rb"
+require"display.rb"
+require"files.rb"
+require"mouse.rb"
+require"rectcollide.rb"
+require"setup.rb"
+require"text.rb"
+require"textrender.rb"
+require"type.rb"
+require"typelowercase.rb"
+require"typelowerspecial.rb"
+require"typespecialcommands.rb"
+require"uidata.rb"
\ No newline at end of file
Added: trunk/rbgooey/lib/setup.rb
===================================================================
--- trunk/rbgooey/lib/setup.rb (rev 0)
+++ trunk/rbgooey/lib/setup.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,63 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: rbgooey
+#DESCRIPTION: A GUI library for the Rubygame library
+#FUNCTION OF THIS PART: Setup everything needed for UiData using a yaml file
+
+class Setup
+ attr_accessor :file, :ui
+ def initialize ui
+ @ui = ui
+ @file = FileSys.new
+ if @ui.display.class != Display
+ set()
+ end
+ end
+ def set
+ @data = @file.yaml_read(@ui.display)
+ @ui.display = Display.new
+ @ui.display.setup(@data['x'],@data['y'],@data['cursor'])
+ if @data['fg'] != nil && @data['bg'] != nil
+ color()
+ end
+ if @data['flags'] != nil
+ flags()
+ end
+ if @data['font'] != nil && @data['size'] != nil
+ text()
+ end
+ if @data['mouse'] != nil
+ mouse()
+ end
+ end
+ def color
+ @ui.display.color([@data['fg'][0],@data['fg'][1],@data['fg'][2]],[@data['bg'][0],@data['bg'][1],@data['bg'][2]])
+ end
+ def flags
+ @data['flags'].each do |t|
+ @ui.display.addflag(t)
+ end
+ end
+ def text
+ @ui.text.setup(@data['font'],@data['size'])
+ end
+ def mouse
+ @ui.mouse.setup(@data['mouse'])
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/text.rb
===================================================================
--- trunk/rbgooey/lib/text.rb (rev 0)
+++ trunk/rbgooey/lib/text.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,47 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: Rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class deal with text manpluication
+
+class Text
+ attr_accessor :ui , :render , :font , :size
+ def initialize ui
+ @ui = ui
+ @render = TextRender.new(@ui)
+ end
+ #Add a piece of text along with the location
+ def add string , x , y
+ @ui.string << string
+ @ui.name[@ui.status][0] << @ui.string.length - 1
+ @render.render(x,y)
+ end
+ #Text class required a font name to load and the normal size
+ def setup font , size
+ @font = font
+ @size = size
+ end
+ #Assign certain code when a specific string collide.
+ def active &action
+ @ui.action << action
+ @ui.name[@ui.status][2] << @ui.action.length - 1
+ @ui.rect << @ui.name[@ui.status][1].last
+ @ui.name[@ui.status][1][-1] = @ui.rect.length - 1
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/textrender.rb
===================================================================
--- trunk/rbgooey/lib/textrender.rb (rev 0)
+++ trunk/rbgooey/lib/textrender.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,77 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: Class TextRender render texts.
+
+class TextRender
+ attr_accessor :ui
+ def initialize ui
+ @ui = ui
+ @y_value = 0
+ @x = nil
+ @y = nil
+ end
+ def compare x , y
+ if @x == nil || @y == nil
+ @x = x
+ @y = y
+ return
+ end
+ unless @y == y && @x == x
+ @y_value = 0
+ end
+ end
+ def reset
+ @y_value -= @skip
+ @ui.name[@ui.status][1].pop()
+ end
+ #Render the last string
+ def render x , y , size = @ui.text.size
+ compare(x,y)
+ default = nil
+ @font = TTF.new("#{@ui.text.font}",size)
+ @skip = @font.line_skip()
+ render = @font.render("#{@ui.string.last}",true,@ui.display.fg,@ui.display.bg)
+ render.blit(@ui.display.screen,[x,y+=@y_value])
+ @ui.name[@ui.status][1] << Rect.new(x,y,*render.size)
+ @y_value+= @skip
+ end
+ #Draw a certain group of texts
+ def draw name
+ @ui.name[name][0].zip(@ui.name[name][1]).each do |string,rect|
+ if rect.length == 1
+ rect = @rect[rect]
+ end
+ string = @ui.string[string]
+ if string != nil
+ render = @font.render("#{string}",true,@ui.display.fg,@ui.display.bg)
+ render.blit(@ui.display.screen,[rect[0],rect[1]])
+ end
+ end
+ end
+ #Assign a background surface for redraw
+ def surface background
+ @background = background
+ end
+ #Undraw a certain group
+ def undraw
+ @background.blit(@ui.display.screen,[0,0])
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/lib/uidata.rb
===================================================================
--- trunk/rbgooey/lib/uidata.rb (rev 0)
+++ trunk/rbgooey/lib/uidata.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,56 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#You can contract the author at wik...@gm...
+
+#PROJECT: rbgooey
+#DESCRIPTION: A GUI library for the rubygame library.
+#FUNCTION OF THIS PART: This class deal with GUI elements
+
+class UiData
+ attr_accessor :display , :check , :name , :rect , :string , :text , :status , :action , :collide , :mouse , :type , :setup
+ def initialize display
+ @display = display
+ if display.class == Display
+ @check = Check.new(@display)
+ if @check.n != []
+ return
+ end
+ end
+ @name = {}
+ @rect = []
+ @string = []
+ @action = []
+ @text = Text.new(self)
+ @collide = RectCollide.new(self)
+ @mouse = Mouse.new()
+ @type = Type.new(self)
+ @setup = Setup.new(self)
+ end
+ #Make a group of UI items to associate with
+ def declare name
+ @status = name
+ @name[name] = [[],[],[]]
+ end
+ #Clear everything
+ def clear
+ @name = {}
+ @status = nil
+ @rect.clear()
+ @string.clear()
+ @action.clear()
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/samples/randomtxt.rb
===================================================================
--- trunk/rbgooey/samples/randomtxt.rb (rev 0)
+++ trunk/rbgooey/samples/randomtxt.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,77 @@
+require"rubygems"
+require"rubygame"
+require"rbgooey"
+include Rubygame
+TTF.setup()
+
+class Timer
+ def initialize seconds , &action
+ @interval = seconds
+ @action = action
+ end
+ def check
+ t = Time.now.tv_sec
+ if t >= @fire_at
+ @action.call
+ @fire_at = t + @interval
+ end
+ end
+ def start
+ @fire_at = Time.now.tv_sec + @interval
+ end
+end
+
+class RandomText
+ def initialize
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @background = Rubygame::Surface.new(@display.screen.size)
+ @data = UiData.new(@display)
+ @data.text.setup("freesansbold.ttf",12)
+ @data.text.render.surface(@background)
+ @clock = Rubygame::Clock.new
+ @clock.target_frametime= 40
+ @q = Rubygame::EventQueue.new()
+ @data.declare(:hello)
+ @random = Timer.new(1) { random() }
+ @delete = Timer.new(10) { delete() }
+ @random.start()
+ @delete.start()
+ end
+ #http://snippets.dzone.com/posts/show/2111
+ def String.random_alphanumeric(size=16)
+ s = ""
+ size.times { s << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr }
+ s
+ end
+ def random
+ 5.times do
+ string = String.random_alphanumeric(5)
+ @data.text.add(string,rand(801),rand(601))
+ end
+ end
+ def delete
+ @data.clear()
+ @data.declare(:hello)
+ @data.text.render.undraw()
+ end
+ def action
+ loop do
+ @clock.tick
+ @random.check()
+ @delete.check()
+ @q.each do |ev|
+ case ev
+ when Rubygame::QuitEvent
+ Rubygame.quit()
+ return
+ end
+ end
+ @display.screen.flip()
+ end
+ end
+end
+
+action = RandomText.new
+action.action()
\ No newline at end of file
Added: trunk/rbgooey/test/nobg.yml
===================================================================
--- trunk/rbgooey/test/nobg.yml (rev 0)
+++ trunk/rbgooey/test/nobg.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,13 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+flags:
+- 1
+font: test/freesansbold.ttf
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/nocolor.yml
===================================================================
--- trunk/rbgooey/test/nocolor.yml (rev 0)
+++ trunk/rbgooey/test/nocolor.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,9 @@
+---
+x: 800
+y: 600
+cursor: true
+flags:
+- 1
+font: test/freesansbold.ttf
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/nofg.yml
===================================================================
--- trunk/rbgooey/test/nofg.yml (rev 0)
+++ trunk/rbgooey/test/nofg.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,13 @@
+---
+x: 800
+y: 600
+cursor: true
+bg:
+- 20
+- 20
+- 20
+flags:
+- 1
+font: test/freesansbold.ttf
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/noflags.yml
===================================================================
--- trunk/rbgooey/test/noflags.yml (rev 0)
+++ trunk/rbgooey/test/noflags.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,15 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+bg:
+- 20
+- 20
+- 20
+font: test/freesansbold.ttf
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/nofont.yml
===================================================================
--- trunk/rbgooey/test/nofont.yml (rev 0)
+++ trunk/rbgooey/test/nofont.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,16 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+bg:
+- 20
+- 20
+- 20
+flags:
+- 1
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/nosize.yml
===================================================================
--- trunk/rbgooey/test/nosize.yml (rev 0)
+++ trunk/rbgooey/test/nosize.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,16 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+bg:
+- 20
+- 20
+- 20
+flags:
+- 1
+font: test/freesansbold.ttf
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/setup.yml
===================================================================
--- trunk/rbgooey/test/setup.yml (rev 0)
+++ trunk/rbgooey/test/setup.yml 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,17 @@
+---
+x: 800
+y: 600
+cursor: true
+fg:
+- 100
+- 100
+- 100
+bg:
+- 20
+- 20
+- 20
+flags:
+- 1
+font: test/freesansbold.ttf
+size: 13
+mouse: test/mouse.png
\ No newline at end of file
Added: trunk/rbgooey/test/test.rb
===================================================================
--- trunk/rbgooey/test/test.rb (rev 0)
+++ trunk/rbgooey/test/test.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,66 @@
+#Copyright (C) 2007 by Han Dao
+#This is an example program that demostrate the widget system
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: initialize test suite
+
+#external libraries
+require"rubygame"
+require"rubygems"
+require"test/unit"
+#application code to be tested
+require"lib/check.rb"
+require"lib/display.rb"
+require"lib/files.rb"
+require"lib/mouse.rb"
+require"lib/rectcollide.rb"
+require"lib/setup.rb"
+require"lib/text.rb"
+require"lib/textrender.rb"
+require"lib/type.rb"
+require"lib/typelowercase.rb"
+require"lib/typelowerspecial.rb"
+require"lib/typespecialcommands.rb"
+require"lib/uidata.rb"
+#Test require section
+require"test/test_check_init.rb"
+require"test/test_check_results.rb"
+require"test/test_display_color.rb"
+require"test/test_display_flags.rb"
+require"test/test_display_init.rb"
+require"test/test_display_screen.rb"
+require"test/test_mouse_init.rb"
+require"test/test_rectcollide_init.rb"
+require"test/test_rectcollide_collide.rb"
+require"test/test_setup_init.rb"
+require"test/test_setup_read.rb"
+require"test/test_text_init.rb"
+require"test/test_text_strings.rb"
+require"test/test_textrender_init.rb"
+require"test/test_textrender_render.rb"
+require"test/test_type_activemode.rb"
+require"test/test_type_init.rb"
+require"test/test_type_lowercase.rb"
+require"test/test_type_lowerspecial.rb"
+require"test/test_type_specialcommands.rb"
+require"test/test_type_switch.rb"
+require"test/test_type_output.rb"
+require"test/test_uidata_groups.rb"
+require"test/test_uidata_init.rb"
+include Rubygame
+TTF.setup
\ No newline at end of file
Added: trunk/rbgooey/test/test_display_flags.rb
===================================================================
--- trunk/rbgooey/test/test_display_flags.rb (rev 0)
+++ trunk/rbgooey/test/test_display_flags.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,31 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test flags addition of Display class
+
+class DisplayFlagsTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ end
+ def test_flags_add
+ @display.setup(800,600,true)
+ @display.addflag(1)
+ assert @display.screen.flags[2] & Rubygame::FULLSCREEN
+ Rubygame.quit()
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_display_init.rb
===================================================================
--- trunk/rbgooey/test/test_display_init.rb (rev 0)
+++ trunk/rbgooey/test/test_display_init.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,28 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initialization of Display class
+
+class DisplayInitializeTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ end
+ def test_initialize
+ assert @display.flags == [Rubygame::HWSURFACE,Rubygame::DOUBLEBUF]
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_mouse_init.rb
===================================================================
--- trunk/rbgooey/test/test_mouse_init.rb (rev 0)
+++ trunk/rbgooey/test/test_mouse_init.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,33 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test initalization of Mouse class
+
+class MouseInitializationTest < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ @data.mouse.setup("test/mouse.png")
+ end
+ def test_initialization
+ assert @data.mouse.pos == [0,0]
+ assert @data.mouse.rect == Rect.new(0,0,10,10)
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_setup_init.rb
===================================================================
--- trunk/rbgooey/test/test_setup_init.rb (rev 0)
+++ trunk/rbgooey/test/test_setup_init.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,29 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Setup initialization
+
+class SetupInitialization < Test::Unit::TestCase
+ def setup
+ @data = UiData.new("test/setup.yml")
+ end
+ def test_initialize
+ assert @data.setup.class == Setup
+ assert @data.setup.file.class == FileSys
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_setup_read.rb
===================================================================
--- trunk/rbgooey/test/test_setup_read.rb (rev 0)
+++ trunk/rbgooey/test/test_setup_read.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,110 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Setup initialization
+
+class SetupRead < Test::Unit::TestCase
+ def test_setup_yml
+ data = UiData.new("test/setup.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == [100,100,100]
+ assert data.display.bg == [20,20,20]
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_nocolor
+ data = UiData.new("test/nocolor.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == nil
+ assert data.display.bg == nil
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_fg
+ data = UiData.new("test/nofg.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == nil
+ assert data.display.bg == nil
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_bg
+ data = UiData.new("test/nobg.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == nil
+ assert data.display.bg == nil
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_flags
+ data = UiData.new("test/noflags.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == [100,100,100]
+ assert data.display.bg == [20,20,20]
+ assert data.display.flags == [Rubygame::HWSURFACE,Rubygame::DOUBLEBUF]
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_font
+ data = UiData.new("test/nofont.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == [100,100,100]
+ assert data.display.bg == [20,20,20]
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == nil
+ assert data.text.size == nil
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_size
+ data = UiData.new("test/nofont.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == [100,100,100]
+ assert data.display.bg == [20,20,20]
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == nil
+ assert data.text.size == nil
+ assert data.mouse.rect == Rect.new(0,0,10,10)
+ Rubygame.quit()
+ end
+ def test_setup_no_mouse
+ data = UiData.new("test/nomouse.yml")
+ assert data.display.screen.size == [800,600]
+ assert data.display.fg == [100,100,100]
+ assert data.display.bg == [20,20,20]
+ assert data.display.flags[2] & Rubygame::FULLSCREEN
+ assert data.text.font == "test/freesansbold.ttf"
+ assert data.text.size == 13
+ assert data.mouse.rect == nil
+ Rubygame.quit()
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_text_init.rb
===================================================================
--- trunk/rbgooey/test/test_text_init.rb (rev 0)
+++ trunk/rbgooey/test/test_text_init.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,36 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Text initialization
+
+class TextInitialization < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ @data = UiData.new(@display)
+ end
+ def test_initialize
+ text = @data.text
+ assert text.ui.class == UiData
+ assert text.render.class == TextRender
+ text.setup("test/freesansbold.ttf",12)
+ assert text.size == 12
+ assert text.font == "test/freesansbold.ttf"
+ end
+end
\ No newline at end of file
Added: trunk/rbgooey/test/test_uidata_init.rb
===================================================================
--- trunk/rbgooey/test/test_uidata_init.rb (rev 0)
+++ trunk/rbgooey/test/test_uidata_init.rb 2007-06-02 19:22:22 UTC (rev 1329)
@@ -0,0 +1,60 @@
+#Copyright (C) 2007 by Han Dao
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#PROJECT: RbGooey test suite
+#DESCRIPTION: A test suite for rbgooey GUI library
+#FUNCTION OF THIS PART: test Data class initialization
+
+class UiDataInitialization < Test::Unit::TestCase
+ def setup
+ @display = Display.new
+ end
+ def test_initialize
+ @display.setup(800,600,true)
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ data = UiData.new(@display)
+ assert data.display.class == Display
+ assert data.check.class == Check
+ assert data.name == {}
+ assert data.rect == []
+ assert data.string == []
+ assert data.text.class == Text
+ assert data.collide.class == RectCollide
+ assert data.mouse.class == Mouse
+ assert data.type.class == Type
+ assert data.setup.class == Setup
+ end
+ def test_missing_all
+ data = UiData.new(@display)
+ assert data.name == nil
+ assert data.rect == nil
+ assert data.string == nil
+ end
+ def test_missing_screen
+ @display.color([100 , 100 ,100],[20 , 20 ,20])
+ data = UiData.new(@display)
+ assert data.name == nil
+ assert data.rect == nil
+ assert data.string == nil
+ end
+ def test_missing_color
+ @display.setup(800,600,true)
+ data = UiData.new(@display)
+ assert data.name == nil
+ assert data.rect == nil
+ assert data.string == nil
+ end
+end
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <kib...@us...> - 2007-06-02 19:01:56
|
Revision: 1328
http://svn.sourceforge.net/dynpet/?rev=1328&view=rev
Author: kiba_ruby
Date: 2007-06-02 12:01:55 -0700 (Sat, 02 Jun 2007)
Log Message:
-----------
delete everything in rbgooey
Removed Paths:
-------------
trunk/rbgooey/lib/
trunk/rbgooey/samples/
trunk/rbgooey/test/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|