Convert to rubygem

I tried to add the minimum possible to publish this code on rubygems.  You'll want to review the license.