Sha256: d6426d56a04c4287181283dc3fcdf2b899362e113dde08a7ad71c0e3002c2a4f

Contents?: true

Size: 555 Bytes

Versions: 38

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

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

    contract Nanoc::Int::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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
nanoc-4.8.15 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.14 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.13 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.12 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.11 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.10 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.9 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.8 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.7 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.6 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.5 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.4 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.3 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.2 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.1 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.0 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.7.14 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.7.13 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb