Merge branch 'ticket/unstable/262-line-endings' into unstable

This commit is contained in:
Eric Davis 2011-05-29 12:00:33 -07:00
commit 96298eac64
36 changed files with 9639 additions and 9625 deletions

14
lib/tasks/code.rake Normal file
View File

@ -0,0 +1,14 @@
namespace :code do
desc "Fix line endings of all source files"
task :fix_line_endings do
unless `which fromdos`.present?
raise "fromdos command not found"
end
Dir['**/**{.rb,.html.erb,.rhtml,.rjs,.rsb,.plain.erb,.rxml,.yml,.rake,.eml}'].each do |file_name|
next if file_name.include?("vendor")
system("fromdos #{file_name}")
end
end
end