Sha256: 1e1889cae6434c53864e33f22d808e81d1063fbf9d5026d83df85c020b58fafb

Contents?: true

Size: 410 Bytes

Versions: 23

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Int::Compiler::Stages
  class ForgetOutdatedDependencies
    include Nanoc::Int::ContractsSupport

    def initialize(dependency_store:)
      @dependency_store = dependency_store
    end

    contract C::IterOf[Nanoc::Int::Item] => C::Any
    def run(outdated_items)
      outdated_items.each { |i| @dependency_store.forget_dependencies_for(i) }
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

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