lib/nanoc/base/services/executor.rb in nanoc-4.2.1 vs lib/nanoc/base/services/executor.rb in nanoc-4.2.2

- old
+ new

@@ -19,10 +19,11 @@ Nanoc::Int::NotificationCenter.post(:filtering_started, rep, filter_name) # Run filter last = rep.snapshot_contents[:last] source = rep.binary? ? last.filename : last.string + filter_args.freeze result = filter.setup_and_run(source, filter_args) rep.snapshot_contents[:last] = if filter.class.to_binary? Nanoc::Int::BinaryContent.new(filter.output_filename).tap(&:freeze) else @@ -46,9 +47,10 @@ filter_name, filter_args = *@compiler.filter_name_and_args_for_layout(layout) if filter_name.nil? raise Nanoc::Int::Errors::Generic, "Cannot find rule for layout matching #{layout_identifier}" end filter_args = filter_args.merge(extra_filter_args || {}) + filter_args.freeze # Check whether item can be laid out raise Nanoc::Int::Errors::CannotLayoutBinaryItem.new(rep) if rep.binary? # Create "pre" snapshot