syntax_fix gem goes through all files and directories and change the old Ruby 1.8 syntax to a new one.
What we've got so far:
- change hash style from ':key => "value"' to 'key: "value"'
gem install syntax_fix
Put this line in your Gemfile:
syntax_fix command will check and rewrite all files with the new syntax (including nested files and directories)
--help - output all the possible arguments that you can pass from a command line
--verbose - be verbose about the actions
-p [PATH] or
--path [PATH] - specify the relative path to start actions from