Skip to content

Instantly share code, notes, and snippets.

@subosito
Created February 13, 2012 06:26
Show Gist options
  • Save subosito/1814236 to your computer and use it in GitHub Desktop.
Save subosito/1814236 to your computer and use it in GitHub Desktop.
Convert ruby 1.8 to 1.9 hash syntax
perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb
:%s/:\([^ ]*\)\(\s*\)=>/\1:/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment