[CLEANUP] Use the new Ruby 1.9 hash syntax.

Also add missing newlines at the end of Ruby files and drop redundant
curly braces.