...
gem install rubycas-client
It can also be installed into a Rails application as a plugin:
script/plugin install http://rubycas-client.googlecode.com/svn/trunk/rubycas-client
Documentation and example usage is available at http://rubycas-client.rubyforge.org/
...