Rubygem

@trevmex - Apologies for a second pull request; I'm attempting to fix the issue you pointed out in lolindrath's pull request 28.

I've my 'rubygem' branch with that of lolindrath's and corrected the error. Please let me know if I've overlooked anything or if you'd prefer this PR be submitted in a different way.