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