Sha256: 56b60cc06b0566bbdfcf6c9f1d81e1bd89b4e010372bb91484fc5ac581336ef9

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

module Nanoc
  module Int
    class Compiler
      module Stages
        class ForgetOutdatedDependencies < Nanoc::Core::CompilationStage
          include Nanoc::Core::ContractsSupport

          def initialize(dependency_store:)
            @dependency_store = dependency_store
          end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-4.11.12 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.11 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.10 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb