I googled for "Ruby USB" and found this: http://www.a-k-r.org/ruby-usb/