User_agent_detector is a project mainly written in Ruby, it's free.
User Agent Detector Ruby code
404: Not Found