From 8b9a32ec4bc2f96f3f17a39a928847c29da67c05 Mon Sep 17 00:00:00 2001 From: Daigo Moriwaki Date: Sat, 7 Jan 2012 17:34:31 +0900 Subject: [PATCH] Both Ruby 1.9.3 and 1.8.7 are supported. --- README | 49 ++++++++++++++++++++++++++++++++++++++----------- changelog | 2 ++ 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/README b/README index 1c93640..b746456 100644 --- a/README +++ b/README @@ -1,9 +1,5 @@ -$Id$ - = Shogi-server project -2008-11-30 Daigo Moriwaki - The Shogi-server project develops Shogi-server, a rating tool and so on. == Shogi-server @@ -14,18 +10,17 @@ in order for computer shogi players to play games. === Pre-requires -Ruby 1.9.3:: Ruby 1.9.2 or earlier are not supported. +Ruby 1.9.3 or 1.8.7 -The Ruby community claimed that Ruby 1.8 had no future. - -As of December 2011, Shogi-server runs with Ruby 1.8.7. In future, however, -incompatible changes may be incorporated in Shogi-server. It is -recommended that you soon upgrade to Ruby 1.9.3. +As of January 2012, Shogi-server supports both Ruby 1.9.3 and 1.8.7. In +future, however, it will only work with Ruby 1.9.x. The Ruby community +claimed that Ruby 1.8 had no future. It is recommended that you soon +upgrade to Ruby 1.9.3. For Debian, $ sudo aptitude install ruby1.9.1 -Note that in Debian the latest ruby1.9.1 package comes from Ruby 1.9.3. +Note that the latest ruby1.9.1 package in Debian originates from Ruby 1.9.3. "1.9.1" in the package name is Ruby internal API version, not release version. === Install @@ -40,6 +35,12 @@ The following files are required to run Shogi-server: === Run +Examples: + + $ ./shogi-server hoge 4000 + + $ ruby1.8 ./shogi-server hoge 4000 + $ ruby1.9.1 ./shogi-server --pid-file shogi-server.pid \ --daemon . \ --player-log-dir player-log-dir \ @@ -53,3 +54,29 @@ See documents at the head of each source file. * mk_rate * mk_html * showgame + + +== Tests + +Run the server + + $ ./shogi-server hoge 4000 + +Run test cases + + $ cd test + $ ruby TC_ALL.rb + +Tested: + +- ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] + Finished tests in 83.667928s, 4.2669 tests/s, 11.7249 assertions/s. + 357 tests, 981 assertions, 0 failures, 0 errors, 0 skips + +- ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] + Finished in 69.885457 seconds. + 357 tests, 977 assertions, 0 failures, 0 errors + + +--- +2012-01-07 Daigo Moriwaki diff --git a/changelog b/changelog index c243add..36fd038 100644 --- a/changelog +++ b/changelog @@ -9,6 +9,8 @@ has been fixed. - test/TC_league.rb failed with Ruby 1.8.7. This issue has been fixed. + * README: + - Both Ruby 1.9.3 and 1.8.7 are supported. 2012-01-06 Daigo Moriwaki -- 2.11.0