Sha256: e04865bfd7702a0c0183a45e09c64ead6864af9cd64dfe1bc53f926c4571fda9

Contents?: true

Size: 541 Bytes

Versions: 38

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
nanoc-4.11.0 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.10.4 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.10.3 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.10.2 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.10.1 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.10.0 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.9 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.8 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.7 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.6 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.5 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.4 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.3 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.2 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.1 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.9.0 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.8.19 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.8.18 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.8.17 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb
nanoc-4.8.16 lib/nanoc/base/services/outdatedness_rules/item_collection_extended.rb