lib/nanoc/base/compilation/compiler.rb in nanoc-3.3.3 vs lib/nanoc/base/compilation/compiler.rb in nanoc-3.3.4

- old
+ new

@@ -383,17 +383,17 @@ rep.snapshot(:last) end rep.compiled = true compiled_content_cache[rep] = rep.content + + Nanoc::NotificationCenter.post(:visit_ended, rep.item) + Nanoc::NotificationCenter.post(:processing_ended, rep) + Nanoc::NotificationCenter.post(:compilation_ended, rep) rescue => e rep.forget_progress Nanoc::NotificationCenter.post(:compilation_failed, rep, e) raise e - ensure - Nanoc::NotificationCenter.post(:visit_ended, rep.item) - Nanoc::NotificationCenter.post(:processing_ended, rep) - Nanoc::NotificationCenter.post(:compilation_ended, rep) end # Clears the list of dependencies for items that will be recompiled. # # @param [Array<Nanoc::Item>] items The list of items for which to forget