lib/review/converter.rb in review-4.2.0 vs lib/review/converter.rb in review-5.0.0
- old
+ new
@@ -15,9 +15,9 @@
def convert(file, output_path)
chap_name = File.basename(file, '.*')
chap = @book.chapter(chap_name)
result = @compiler.compile(chap)
- File.open(output_path, 'w') { |f| f.puts result }
+ File.write(output_path, result)
end
end
end