Ruby implementation.
Fix missing require
Credit myself
Merge pull request #8 from petemounce/master

ruby version