lib/nanoc/helpers/capturing.rb in nanoc-4.1.0rc1 vs lib/nanoc/helpers/capturing.rb in nanoc-4.1.0rc2

- old
+ new

@@ -138,10 +138,10 @@ # Get args if args.size != 2 raise ArgumentError, 'expected 2 arguments (the item ' \ "and the name of the capture) but got #{args.size} instead" end - item = args[0].is_a?(Nanoc::ItemView) ? args[0].unwrap : args[0] + item = args[0].is_a?(Nanoc::ItemWithRepsView) ? args[0].unwrap : args[0] name = args[1] # Create dependency if @item.nil? || item != @item.unwrap Nanoc::Int::NotificationCenter.post(:visit_started, item)