Sha256: 0dd9764ad94f5c49e7349a4ae0ad5b8faa8d86758606c78572d5cebe4ce04428

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

module Nanoc::Int::OutdatednessRules
  class NotWritten < Nanoc::Int::OutdatednessRule
    affects_props :raw_content, :attributes, :compiled_content, :path

    def apply(obj, _outdatedness_checker)
      if obj.raw_paths.values.flatten.compact.any? { |fn| !File.file?(fn) }
        Nanoc::Int::OutdatednessReasons::NotWritten
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.7.8 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.7.7 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.7.6 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.7.5 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.7.4 lib/nanoc/base/services/outdatedness_rules/not_written.rb