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.11.0 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.10.4 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.10.3 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.10.2 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.10.1 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.10.0 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.9 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.8 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.7 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.6 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.5 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.4 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.3 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.2 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.1 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.9.0 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.19 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.18 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.17 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb
nanoc-4.8.16 lib/nanoc/base/services/outdatedness_rules/layout_collection_extended.rb