lib/nanoc/base/views/item_rep_view.rb in nanoc-4.1.6 vs lib/nanoc/base/views/item_rep_view.rb in nanoc-4.2.0b1

- old
+ new

@@ -34,13 +34,11 @@ # will be the content compiled right before the first layout call (if # any). # # @return [String] The content at the given snapshot. def compiled_content(snapshot: nil) - Nanoc::Int::NotificationCenter.post(:visit_started, unwrap.item) - Nanoc::Int::NotificationCenter.post(:visit_ended, unwrap.item) - + @context.dependency_tracker.bounce(unwrap.item) @item_rep.compiled_content(snapshot: snapshot) end # Returns the item rep’s path, as used when being linked to. It starts # with a slash and it is relative to the output directory. It does not @@ -50,13 +48,11 @@ # @param [Symbol] snapshot The snapshot for which the path should be # returned. # # @return [String] The item rep’s path. def path(snapshot: :last) - Nanoc::Int::NotificationCenter.post(:visit_started, unwrap.item) - Nanoc::Int::NotificationCenter.post(:visit_ended, unwrap.item) - + @context.dependency_tracker.bounce(unwrap.item) @item_rep.path(snapshot: snapshot) end # Returns the item that this item rep belongs to. # @@ -65,12 +61,10 @@ Nanoc::ItemWithRepsView.new(@item_rep.item, @context) end # @api private def raw_path(snapshot: :last) - Nanoc::Int::NotificationCenter.post(:visit_started, unwrap.item) - Nanoc::Int::NotificationCenter.post(:visit_ended, unwrap.item) - + @context.dependency_tracker.bounce(unwrap.item) @item_rep.raw_path(snapshot: snapshot) end # @api private def binary?