• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisãoa6cb7fddeb7af543c81366849090dbf7ceca4e73 (tree)
Hora2015-12-13 21:30:38
AutorDaigo Moriwaki <daigo@debi...>
CommiterDaigo Moriwaki

Mensagem de Log

Merge branch 'wdoor-stable'

Mudança Sumário

Diff

--- a/changelog
+++ b/changelog
@@ -43,6 +43,12 @@
4343 http://www.sgtpepper.net/hyspro/diary/20150214.html.
4444 - Added a companion R script: histogram.R
4545
46+2015-02-01 Daigo Moriwaki <daigo at debian dot org>
47+
48+ * [shogi-server]
49+ - shogi_server/login.rb: When players are logged in, log their
50+ player_id if they have it.
51+
4652 2015-01-20 Daigo Moriwaki <daigo at debian dot org>
4753
4854 * [mk_rate]
--- a/shogi_server/login.rb
+++ b/shogi_server/login.rb
@@ -109,7 +109,8 @@ class Login
109109
110110 def process
111111 @player.write_safe(sprintf("LOGIN:%s OK\n", @player.name))
112- log_message(sprintf("user %s run in %s mode", @player.name, @player.protocol))
112+ log_message("user %s run in %s mode" % [(@player.rated? ? @player.player_id : @player.name),
113+ @player.protocol])
113114 end
114115
115116 def incorrect_duplicated_player(str)
--- a/test/TC_fork.rb
+++ b/test/TC_fork.rb
@@ -118,8 +118,9 @@ class TestFork < BaseClient
118118
119119 result, result2 = handshake do
120120 source_game = parse_game_name(@admin)
121+ sleep 0.2
121122 @admin.puts "%%FORK #{source_game}" # nil for new_buoy_game name
122- sleep 1
123+ sleep 1.2
123124 assert /##\[FORK\]: new buoy game name: buoy_TestFork_1-1500-0/ =~ @admin.message
124125 end
125126
--- a/test/baseclient.rb
+++ b/test/baseclient.rb
@@ -190,7 +190,7 @@ class BaseClient < Test::Unit::TestCase
190190 @p1.login
191191 sleep 0.1
192192 @p2.login
193- sleep 0.1
193+ sleep 0.5
194194 @p1.game
195195 sleep 0.1
196196 @p2.game