lib/nanoc/base/services/outdatedness_rules/not_written.rb in nanoc-4.11.0 vs lib/nanoc/base/services/outdatedness_rules/not_written.rb in nanoc-4.11.1
- old
+ new
@@ -1,13 +1,17 @@
# frozen_string_literal: true
-module Nanoc::Int::OutdatednessRules
- class NotWritten < Nanoc::Int::OutdatednessRule
- affects_props :raw_content, :attributes, :compiled_content, :path
+module Nanoc
+ module Int
+ module 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
+ 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
end
end