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
cucumber-2.99.0 gem_tasks/fix_cr_lf.rake
mobiusloop-0.1.5 gem_tasks/fix_cr_lf.rake
cucumber-2.4.0 gem_tasks/fix_cr_lf.rake
mobiusloop-0.1.3 gem_tasks/fix_cr_lf.rake
mobiusloop-0.1.2 gem_tasks/fix_cr_lf.rake
cucumber-2.3.3 gem_tasks/fix_cr_lf.rake
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/gem_tasks/fix_cr_lf.rake
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/gem_tasks/fix_cr_lf.rake
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/gem_tasks/fix_cr_lf.rake
cucumber-2.3.2 gem_tasks/fix_cr_lf.rake
cucumber-2.3.1 gem_tasks/fix_cr_lf.rake
cucumber-2.3.0 gem_tasks/fix_cr_lf.rake
cucumber-2.2.0 gem_tasks/fix_cr_lf.rake
cucumber-2.1.0 gem_tasks/fix_cr_lf.rake
cucumber-2.0.2 gem_tasks/fix_cr_lf.rake
cucumber-2.0.1 gem_tasks/fix_cr_lf.rake
cucumber-1.3.20 gem_tasks/fix_cr_lf.rake
cucumber-2.0.0 gem_tasks/fix_cr_lf.rake
cucumber-2.0.0.rc.5 gem_tasks/fix_cr_lf.rake
cucumber-1.3.19 gem_tasks/fix_cr_lf.rake