aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 14:59:06 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 14:59:06 -0400
commit2753d8f5768ce0b5f91a96cf81c6ba1d747aeea9 (patch)
tree422a5e40fc2816c31aceea87fdc2734b1aa4bc85 /Rakefile
parent4e3c9a01307339916f6b947d24f19b0f442afd78 (diff)
downloadrails-2753d8f5768ce0b5f91a96cf81c6ba1d747aeea9.tar.gz
rails-2753d8f5768ce0b5f91a96cf81c6ba1d747aeea9.tar.bz2
rails-2753d8f5768ce0b5f91a96cf81c6ba1d747aeea9.zip
Add rake whitespace
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 9292ac2533..545993653e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -28,4 +28,9 @@ desc "Run specs with mysql and sqlite3 database adapters (default)"
task :spec => ["spec:sqlite3", "spec:mysql"]
desc "Default task is to run specs"
-task :default => :spec \ No newline at end of file
+task :default => :spec
+
+desc 'Removes trailing whitespace'
+task :whitespace do
+ sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
+end