lib/nanoc/extra/auto_compiler.rb in nanoc-3.7.5 vs lib/nanoc/extra/auto_compiler.rb in nanoc-3.8.0
- old
+ new
@@ -63,10 +63,10 @@
res
end
rescue StandardError, ScriptError => e
# Add compilation stack to env
env['nanoc.stack'] = []
- stack.reverse.each do |obj|
+ stack.reverse_each do |obj|
if obj.is_a?(Nanoc::ItemRep) # item rep
env['nanoc.stack'] << "[item] #{obj.item.identifier} (rep #{obj.name})"
else # layout
env['nanoc.stack'] << "[layout] #{obj.identifier}"
end