Sha256: a4ca8e71551a96967294156d2a8172893817aa6bfceae5f7cf14cc4c4b7730ae
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
module Nanoc::Int::OutdatednessRules class UsesAlwaysOutdatedFilter < Nanoc::Int::OutdatednessRule affects_props :raw_content, :attributes, :path def apply(obj, outdatedness_checker) seq = outdatedness_checker.action_sequence_for(obj) if any_always_outdated?(seq) Nanoc::Int::OutdatednessReasons::UsesAlwaysOutdatedFilter end end def any_always_outdated?(seq) seq .select { |a| a.is_a?(Nanoc::Int::ProcessingActions::Filter) } .map { |a| Nanoc::Filter.named(a.filter_name) } .compact .any?(&:always_outdated?) end end end
Version data entries
4 entries across 4 versions & 1 rubygems