lib/nanoc3/cli/commands/debug.rb in nanoc3-3.2.0a3 vs lib/nanoc3/cli/commands/debug.rb in nanoc3-3.2.0a4

- old
+ new

@@ -49,11 +49,11 @@ # Print item dependencies puts '=== Item dependencies =======================================================' puts items.sort_by { |i| i.identifier }.each do |item| puts "item #{item.identifier} depends on:" - predecessors = dependency_tracker.direct_predecessors_of(item).sort_by { |i| i.identifier } + predecessors = dependency_tracker.objects_causing_outdatedness_of(item).sort_by { |i| i.identifier } predecessors.each do |pred| puts " [ #{format '%6s', pred.type} ] #{pred.identifier}" end puts " (nothing)" if predecessors.empty? puts @@ -80,11 +80,11 @@ puts '=== Representation outdatedness =============================================' puts items.sort_by { |i| i.identifier }.each do |item| item.reps.sort_by { |r| r.name.to_s }.each do |rep| puts "item #{item.identifier}, rep #{rep.name}:" - outdatedness_reason = compiler.outdatedness_reason_for(rep) + outdatedness_reason = compiler.outdatedness_checker.outdatedness_reason_for(rep) if outdatedness_reason puts " is outdated: #{outdatedness_reason.message}" else puts " is not outdated" end @@ -95,10 +95,10 @@ # Print layouts puts '=== Layouts' puts layouts.each do |layout| puts "layout #{layout.identifier}:" - outdatedness_reason = compiler.outdatedness_reason_for(layout) + outdatedness_reason = compiler.outdatedness_checker.outdatedness_reason_for(layout) if outdatedness_reason puts " is outdated: #{outdatedness_reason.message}" else puts " is not outdated" end