Add "rake whitespace" task

This commit is contained in:
Bryan Helmkamp 2009-04-07 20:29:59 -04:00
parent b69b4acec4
commit f3f81dabdc

View File

@ -148,4 +148,9 @@ end
task :default => :spec
task :precommit => ["spec", "spec:jruby", "spec:integration"]
task :precommit => ["spec", "spec:jruby", "spec:integration"]
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
end