module Hoe::Debug
def check_manifest
def check_manifest f = "Manifest.tmp" require 'find' files = [] with_config do |config, _| exclusions = config["exclude"] Find.find '.' do |path| next unless File.file? path next if path =~ exclusions files << path[2..-1] end files = files.sort.join "\n" File.open f, 'w' do |fp| fp.puts files end verbose = { :verbose => Rake.application.options.verbose } begin sh "#{DIFF} -du Manifest.txt #{f}", verbose ensure rm f, verbose end end end