projects
/
riece
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/.
[riece]
/
lisp
/
server.rb
diff --git
a/lisp/server.rb
b/lisp/server.rb
index
cc29694
..
bedca01
100644
(file)
--- a/
lisp/server.rb
+++ b/
lisp/server.rb
@@
-2,8
+2,8
@@
require 'thread'
require 'thread'
-class
RubyServ
- module
C
+class
Server
+ module
B
end
def initialize
end
def initialize
@@
-73,7
+73,7
@@
class RubyServ
Thread.current[:rubyserv_name] = name
begin
Thread.current[:rubyserv_error] = false
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
rescue Exception => e
Thread.current[:rubyserv_error] = true
Thread.current[:rubyserv_response] = e
@@
-145,8
+145,8
@@
class RubyServ
end
if $0 == __FILE__
end
if $0 == __FILE__
- serv
= RubyServ
.new
+ serv
er = Server
.new
while gets
while gets
- serv.dispatch($_)
+ serv
er
.dispatch($_)
end
end
end
end