Sha256: 34096bf735d9184412de931f45a06bd98b94d2c3e26e3017afc938611a8227b4

Contents?: true

Size: 258 Bytes

Versions: 332

Compression:

Stored size: 258 Bytes

Contents

desc 'Make all files use UNIX (\n) line endings'
task :fix_cr_lf do
  files = FileList['**/*']
  files.each do |f|
    next if File.directory?(f) || f =~ /dos/
    s = IO.read(f)
    s.gsub!(/\r?\n/, "\n")
    File.open(f, "w") { |io| io.write(s) }
  end
end

Version data entries

332 entries across 328 versions & 29 rubygems

Version Path
aslakhellesoy-cucumber-0.1.99.21 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.22 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.23 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.3 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.5 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.6 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.7 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.8 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.1.99.9 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.0.1 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.0.2 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.0.3 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.0.4 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.0 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.1 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.2.1 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.2.2 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.2 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.3.1 gem_tasks/fix_cr_lf.rake
aslakhellesoy-cucumber-0.2.3.2 gem_tasks/fix_cr_lf.rake