lib/nanoc3/base/item_rep.rb in nanoc3-3.1.7 vs lib/nanoc3/base/item_rep.rb in nanoc3-3.1.8

- old
+ new

@@ -457,9 +457,10 @@ def generate_diff if @old_content.nil? || self.raw_path.nil? || !@item.site.config[:enable_output_diff] @diff = nil else + require 'thread' @diff_thread = Thread.new do @diff = diff_strings(@old_content, @content[:last]) sleep 2 @diff_thread = nil end