Permalink
Browse files

Add rake whitespace

  • Loading branch information...
1 parent 4e3c9a0 commit 2753d8f5768ce0b5f91a96cf81c6ba1d747aeea9 @brynary brynary committed May 17, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
@@ -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
+task :default => :spec
+
+desc 'Removes trailing whitespace'
+task :whitespace do
+ sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
+end

0 comments on commit 2753d8f

Please sign in to comment.