lib/tdiary/server.rb in tdiary-5.0.1 vs lib/tdiary/server.rb in tdiary-5.0.2
- old
+ new
@@ -27,16 +27,16 @@
end
end
def initialize( opts )
@server = WEBrick::HTTPServer.new(
- :Port => opts[:port], BindAddress: opts[:bind],
- :DocumentRoot => TDiary.root,
- :MimeTypes => tdiary_mime_types,
- :Logger => webrick_logger_to( opts[:logger] ),
- :AccessLog => webrick_access_log_to( opts[:access_log] ),
- :ServerType => opts[:daemon] ? WEBrick::Daemon : nil,
- :CGIInterpreter => WEBrick::HTTPServlet::CGIHandler::Ruby
+ Port: opts[:port], BindAddress: opts[:bind],
+ DocumentRoot: TDiary.root,
+ MimeTypes: tdiary_mime_types,
+ Logger: webrick_logger_to( opts[:logger] ),
+ AccessLog: webrick_access_log_to( opts[:access_log] ),
+ ServerType: opts[:daemon] ? WEBrick::Daemon : nil,
+ CGIInterpreter: WEBrick::HTTPServlet::CGIHandler::Ruby
)
@server.logger.level = WEBrick::Log::DEBUG
@server.mount("/", WEBrick::HTTPServlet::CGIHandler, TDiary.root + "/index.rb")
@server.mount("/index.rb", WEBrick::HTTPServlet::CGIHandler, TDiary.root + '/index.rb')
@server.mount("/update.rb", WEBrick::HTTPServlet::CGIHandler, TDiary.root + "/update.rb")