Sha256: 8d75f9168d72b732e4663bd1abb72c379188063dbbc1e51b03d9a6abbdb3290f
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
module Nanoc::Int::OutdatednessRules class ConfigurationModified < Nanoc::Int::OutdatednessRule extend Nanoc::Int::Memoization affects_props :raw_content, :attributes, :compiled_content, :path def apply(_obj, outdatedness_checker) if config_modified?(outdatedness_checker) Nanoc::Int::OutdatednessReasons::ConfigurationModified end end private memoized def config_modified?(outdatedness_checker) obj = outdatedness_checker.site.config ch_old = outdatedness_checker.checksum_store[obj] ch_new = outdatedness_checker.checksums.checksum_for(obj) ch_old != ch_new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.7.9 | lib/nanoc/base/services/outdatedness_rules/configuration_modified.rb |
nanoc-4.7.8 | lib/nanoc/base/services/outdatedness_rules/configuration_modified.rb |