lib/nanoc/base/compilation/compiler.rb in nanoc-4.3.6 vs lib/nanoc/base/compilation/compiler.rb in nanoc-4.3.7
- old
+ new
@@ -204,10 +204,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