lib/nanoc/extra/checking/checks/stale.rb in nanoc-4.1.2 vs lib/nanoc/extra/checking/checks/stale.rb in nanoc-4.1.3

- old
+ new

@@ -2,10 +2,16 @@ # @api private class Stale < ::Nanoc::Extra::Checking::Check def run require 'set' - item_rep_paths = Set.new(@items.map(&:reps).flatten.map(&:raw_path)) + item_rep_paths = + Set.new( + @items + .flat_map(&:reps) + .map(&:unwrap) + .flat_map(&:raw_paths) + .flat_map(&:values)) output_filenames.each do |f| next if pruner.filename_excluded?(f) next if item_rep_paths.include?(f)