From: ueno Date: Thu, 11 Aug 2005 04:00:41 +0000 (+0000) Subject: * server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/. X-Git-Tag: channel-coding-branchpoint~168 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=9b28ef0699da7499add7c9914a6ef4391e759748;p=elisp%2Friece.git * server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/. * riece-ruby.el (riece-ruby-server-program): Follow the filename change. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0c498b8..68beb49 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,6 @@ 2005-08-11 Daiki Ueno - * server.rb: Renamed from rubyserv.rb. + * server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/. * riece-ruby.el (riece-ruby-server-program): Follow the filename change. diff --git a/lisp/server.rb b/lisp/server.rb index cc29694..bedca01 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -2,8 +2,8 @@ require 'thread' -class RubyServ - module C +class Server + module B end def initialize @@ -73,7 +73,7 @@ class RubyServ Thread.current[:rubyserv_name] = name begin Thread.current[:rubyserv_error] = false - Thread.current[:rubyserv_response] = eval(r, C.module_eval('binding()')) + Thread.current[:rubyserv_response] = eval(r, B.module_eval('binding()')) rescue Exception => e Thread.current[:rubyserv_error] = true Thread.current[:rubyserv_response] = e @@ -145,8 +145,8 @@ class RubyServ end if $0 == __FILE__ - serv = RubyServ.new + server = Server.new while gets - serv.dispatch($_) + server.dispatch($_) end end