Sha256: c8c97e30ce192139f5304960f8157df9c33244c602930dc6db78279c72b7e572
Contents?: true
Size: 643 Bytes
Versions: 41
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true 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
41 entries across 41 versions & 1 rubygems