lib/nanoc/base/services/outdatedness_rules/attributes_modified.rb in nanoc-4.7.11 vs lib/nanoc/base/services/outdatedness_rules/attributes_modified.rb in nanoc-4.7.12

- old
+ new

@@ -4,15 +4,15 @@ class AttributesModified < Nanoc::Int::OutdatednessRule include Nanoc::Int::ContractsSupport affects_props :attributes, :compiled_content - contract C::Or[Nanoc::Int::ItemRep, Nanoc::Int::Item, Nanoc::Int::Layout], C::Named['Nanoc::Int::OutdatednessChecker'] => C::Maybe[Nanoc::Int::OutdatednessReasons::Generic] + contract C::Or[Nanoc::Int::ItemRep, Nanoc::Int::Item, Nanoc::Int::Configuration, Nanoc::Int::Layout], C::Named['Nanoc::Int::OutdatednessChecker'] => C::Maybe[Nanoc::Int::OutdatednessReasons::Generic] def apply(obj, outdatedness_checker) case obj when Nanoc::Int::ItemRep apply(obj.item, outdatedness_checker) - when Nanoc::Int::Item, Nanoc::Int::Layout + when Nanoc::Int::Item, Nanoc::Int::Layout, Nanoc::Int::Configuration if outdatedness_checker.checksum_store[obj] == outdatedness_checker.checksums.checksum_for(obj) return nil end old_checksums = outdatedness_checker.checksum_store.attributes_checksum_for(obj)