Created
May 25, 2015 11:26
-
-
Save rxqd/6d7f021122ea99d014d9 to your computer and use it in GitHub Desktop.
Convert ruby 1.8 hashes to 1.9 format for all files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment