Sha256: 5197a4bccd416275978ca0db12e7c0216afc315accd8888f760a0106d9674b06
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
# encoding: utf-8 module Nanoc::Extra::Checking::Checks class Stale < ::Nanoc::Extra::Checking::Check def run require 'set' item_rep_paths = Set.new(@site.items.collect { |i| i.reps }.flatten.collect { |r| r.raw_path }) self.output_filenames.each do |f| if !item_rep_paths.include?(f) self.add_issue( "file without matching item", :subject => f) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.5.0 | lib/nanoc/extra/checking/checks/stale.rb |
nanoc-3.5.0b2 | lib/nanoc/extra/checking/checks/stale.rb |
nanoc-3.5.0b1 | lib/nanoc/extra/checking/checks/stale.rb |