Removed trailing whitespace using:
find . -type f -name '*.rb' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
as per first answer at
http://stackoverflow.com/questions/10711051/trailing-whitespace-elimination-script-for-multiple-files.
Merge pull request #19 from keithrbennett/remove-trailing-whitespace

Removed trailing whitespace from all *.rb files