Sha256: a49b78cbdc47dadc3051025f1b581ba3b95f4ffb3edbb80d2f1dea262834916b

Contents?: true

Size: 440 Bytes

Versions: 18

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module Nanoc::Int::Compiler::Stages
  class ForgetOutdatedDependencies < Nanoc::Int::Compiler::Stage
    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

18 entries across 18 versions & 1 rubygems

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