desc “Convert all old hash syntax to new hash syntax”

namespace :new_hash_syntax do

task :convert do

  # find all ruby files in the project and change the syntax
  system("find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \;")

end

end