User Agent parser (browser/os detector)

Hey there,

Is there a Ruby script or library available to detect browser and
operating system thru the user-agent header string?

rgds
Dema