Sha256: 4096c2a32c38dd80dc3c2a233dd6631ffe4812affe09e71cb3c2de1e672326b6

Contents?: true

Size: 614 Bytes

Versions: 8

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

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

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

          if new_items.any?
            Nanoc::Int::OutdatednessReasons::ItemCollectionExtended.new(new_items)
          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/item_collection_extended.rb
nanoc-4.11.7 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.6 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.5 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.4 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.3 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.2 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.11.1 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb