Last active
December 27, 2015 00:49
-
-
Save AlexanderEkdahl/7240643 to your computer and use it in GitHub Desktop.
Converts all code from Ruby 1.8 hash style to 1.9 style. Copied from http://effectif.com/ruby/update-your-project-for-ruby-19-hash-syntax for safekeeping. Original author [@GrahamAshton](https://twitter.com/grahamashton)
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