raven.rb is a Ruby library implimented by Thomas Counsell ( firstname.lastname@example.org) that allows a Ruby CGI program to protect itself using Raven. It is currently a beta release.
I also have ruby scripts to authenticate via raven using a webrick server and for ruby on rails applications. Contact tamc2 if you need them (I will clean them up and post them at some point).
Furthermore, I have various ruby on rails sites working with Raven. Contact tamc2 if you would like to see the code.
Ruby on Rails
There is an OmniAuth strategy written by Charlie Jonas (email@example.com) for authenticating against Raven available on RubyGems under the name
omniauth-ucam-raven. The code and documentation are available on Github.
This is primarily intended for use with the Ruby on Rails framework, however it should also work well for Sinatra applications and anything which utilises Rack middleware.