Sha256: c1d8397c6c0e735ffc7fcc46c2e416217b306168aa00237f0186b0eb97b563ef

Contents?: true

Size: 628 Bytes

Versions: 8

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-4.11.8 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.7 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.6 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.5 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.4 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.3 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.2 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.11.1 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb