lib/nanoc/cli/commands/compile.rb in nanoc-4.0.0b3 vs lib/nanoc/cli/commands/compile.rb in nanoc-4.0.0b4

- old
+ new

@@ -63,11 +63,10 @@ # @see Listener#start def start require 'tempfile' setup_diffs old_contents = {} - Nanoc::Int::NotificationCenter.on(:will_write_rep) do |rep, snapshot| - path = rep.raw_path(snapshot: snapshot) + Nanoc::Int::NotificationCenter.on(:will_write_rep) do |rep, path| old_contents[rep] = File.file?(path) ? File.read(path) : nil end Nanoc::Int::NotificationCenter.on(:rep_written) do |rep, path, _is_created, _is_modified| unless rep.binary? new_contents = File.file?(path) ? File.read(path) : nil