Sha256: 61fe48916da1394e018f249cd7f39f0249bfb1f65c599ec4d58d96b37a499e05

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
nanoc-4.11.9 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.8 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.7 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.6 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.5 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.4 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.3 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.2 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb
nanoc-4.11.1 lib/nanoc/base/services/compiler/stages/forget_outdated_dependencies.rb