ruby port of the sosumi php-lib (http://github.com/tylerhall/sosumi)