Sha256: b9e400637ce9365c67b99aefdcb199173943e2908a57c169f8d0f01bc5b90b8f

Contents?: true

Size: 387 Bytes

Versions: 41

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

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

41 entries across 41 versions & 1 rubygems

Version Path
nanoc-4.11.0 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.10.4 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.10.3 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.10.2 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.10.1 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.10.0 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.9 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.8 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.7 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.6 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.5 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.4 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.3 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.2 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.1 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.9.0 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.8.19 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.8.18 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.8.17 lib/nanoc/base/services/outdatedness_rules/not_written.rb
nanoc-4.8.16 lib/nanoc/base/services/outdatedness_rules/not_written.rb