| 1 |
|
| 2 |
= For users |
| 3 |
|
| 4 |
== Debian GNU/Linux Users |
| 5 |
|
| 6 |
=== Requirement |
| 7 |
|
| 8 |
The following packages are required if you are using Debian unstable. |
| 9 |
The required minimum version number shown below is not sure but I |
| 10 |
recommend them to make it sure that Edmaru runs correctly. |
| 11 |
|
| 12 |
- ruby [>= 1.8] |
| 13 |
- libncurses-ruby [>= 1.1-1] (for console) |
| 14 |
- libgtk2-ruby [>= 0.15.0-1.1] (for GUI by Gtk+2) |
| 15 |
|
| 16 |
=== How to launch |
| 17 |
|
| 18 |
Go to the root directory of Edmaru source tree and run edmaru.rb (Ruby |
| 19 |
script) like: |
| 20 |
|
| 21 |
$ cd edmaru |
| 22 |
$ ./edmaru.rb |
| 23 |
|
| 24 |
The above example launch Edmaru with the character based UI. If you |
| 25 |
want to use it with Gtk+2 based UI, specify "gtk" as the first |
| 26 |
argument of edmaru.rb like: |
| 27 |
|
| 28 |
$ ./edmaru.rb gtk |
| 29 |
|
| 30 |
== How to launch |
| 31 |
|
| 32 |
= For developers |
| 33 |
|
| 34 |
== Development documentation |
| 35 |
|
| 36 |
If you want to improve Edmaru, it is a nice idea to see class |
| 37 |
specification. Edmaru source codes are designed to generate "rdoc" |
| 38 |
documentations, therefore, first you should run the following command |
| 39 |
at the root directory of Edmaru source tree: |
| 40 |
|
| 41 |
$ rdoc |
| 42 |
|
| 43 |
Then, you can find class specification documents in "doc" directory |
| 44 |
and open "doc/index.html" by your favorite Web browser to see them. |
| 45 |
|
| 46 |
== About character encodings |
| 47 |
|
| 48 |
All source files in Edmaru source tree must be encoded by UTF-8. |
| 49 |
|
| 50 |
== How to run all unit test suites |
| 51 |
|
| 52 |
Edmaru uses Test::Unit so just run the test codes like: |
| 53 |
|
| 54 |
$ ruby test.rb |
| 55 |
|
| 56 |
== How to write a new test suite |
| 57 |
|
| 58 |
1. Create a new test suite codes by Test::Unit. |
| 59 |
2. Save the source codes as "test/test_*.rb" |
| 60 |
3. Append a new line to "test.rb" like |
| 61 |
require "test/test_*.rb" |