Sha256: c065e91ab00e42ed89a48c93544179c21da38cb827071a83d7a10a42e41849b6

Contents?: true

Size: 631 Bytes

Versions: 4

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

module Nanoc
  module Int
    module OutdatednessRules
      class LayoutCollectionExtended < Nanoc::Core::OutdatednessRule
        affects_props :raw_content

        contract Nanoc::Core::LayoutCollection, C::Named['Nanoc::Int::OutdatednessChecker'] => C::Maybe[Nanoc::Core::OutdatednessReasons::Generic]
        def apply(_obj, outdatedness_checker)
          new_layouts = outdatedness_checker.dependency_store.new_layouts

          if new_layouts.any?
            Nanoc::Core::OutdatednessReasons::LayoutCollectionExtended.new(new_layouts)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.11.12 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.11 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.10 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.9 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb