Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Convert Ruby 1.8 to Ruby 1.9 hash style
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Apr 16, 2014
1 parent 6597ea0 commit 785cb22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .filesystem/bin/convert_hash1.8_to_hash1.9_in_all_rb_files
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -ex

git grep '[^:]:\([a-zA-Z_]*\)\s*=>' | cut -d: -f1 | grep '\.rb$' | sort | uniq | xargs sed -e 's@\([^:]\):\([a-zA-Z_]*\)\s*=>@\1\2:@g' -i

0 comments on commit 785cb22

Please sign in to comment.