lib/nanoc/base/compilation/compiler.rb in nanoc-4.2.2 vs lib/nanoc/base/compilation/compiler.rb in nanoc-4.2.3

- old
+ new

@@ -189,10 +189,11 @@ @reps.each do |rep| rep.snapshot_defs = action_provider.snapshots_defs_for(rep) end # Find item reps to compile and compile them - selector = Nanoc::Int::ItemRepSelector.new(@reps) + outdated_reps = @reps.select { |r| outdatedness_checker.outdated?(r) } + selector = Nanoc::Int::ItemRepSelector.new(outdated_reps) selector.each do |rep| @stack = [] compile_rep(rep) end ensure