rubycas/rubycas-server — pull request #67 by derfred (2011-10-10 13:23:55+00:00)
Title: Fix Ruby 1.9 problem: NoMethodError - private method `public' called for CASServer::Server:Class: 

Running RubyCAS Server under Ruby 1.9.2 causes the following traceback when accessing a page:

NoMethodError - private method `public' called for CASServer::Server:Class:
/var/lib/gems/1.9.1/gems/rubycas-server-1.0/lib/casserver/server.rb:35:in `static!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:884:in `dispatch!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `block in call!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `block in invoke'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
/var/lib/gems/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/var/lib/gems/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
/var/lib/gems/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
/var/lib/gems/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
/var/lib/gems/1.9.1/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
/var/lib/gems/1.9.1/gems/rack-1.3.4/lib/rack/nulllogger.rb:9:in `call'
/var/lib/gems/1.9.1/gems/rack-1.3.4/lib/rack/head.rb:9:in `call'
/var/lib/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:in `call'
/var/lib/gems/1.9.1/gems/rack-1.3.4/lib/rack/commonlogger.rb:20:in `call'
/var/lib/gems/1.9.1/gems/rack-1.3.4/lib/rack/runtime.rb:17:in `call'
/var/lib/gems/1.9.1/gems/rack-1.3.4/lib/rack/showexceptions.rb:24:in `call'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:76:in `block in pre_process'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:74:in `catch'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:74:in `pre_process'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:57:in `process'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/connection.rb:42:in `receive_data'
/var/lib/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/var/lib/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in `start'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/server.rb:156:in `start'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/controllers/controller.rb:80:in `start'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/runner.rb:177:in `run_command'
/var/lib/gems/1.9.1/gems/thin-1.2.7/lib/thin/runner.rb:143:in `run!'
/var/lib/gems/1.9.1/gems/thin-1.2.7/bin/thin:6:in `'
/usr/bin/thin:19:in `load'
/usr/bin/thin:19:in `

'

This commit fixes that problem. Might also fix Issue #66.