lib/ykutils/fileoputils.rb in ykutils-0.1.4 vs lib/ykutils/fileoputils.rb in ykutils-0.1.6

- old
+ new

@@ -152,11 +152,11 @@ def write_file_with_template(input_file_path, output_file) ary = [] begin File.open(input_file_path, "r") do |file| - while line = file.gets + while (line = file.gets) line.chomp! ary << file_content_process(line) end end rescue StandardError => e @@ -192,10 +192,10 @@ from_path = File.join(from_path_1, from_path_2) to_path = File.join(to_path_1, to_path_2) ary = [] begin File.open(from_path, "r") do |file| - while line = file.gets + while (line = file.gets) line.chomp! ary << file_content_process(line) end end rescue StandardError => e