lib/nanoc/base/services/compiler/phases/mark_done.rb in nanoc-4.11.0 vs lib/nanoc/base/services/compiler/phases/mark_done.rb in nanoc-4.11.1
- old
+ new
@@ -1,19 +1,25 @@
# frozen_string_literal: true
-module Nanoc::Int::Compiler::Phases
- class MarkDone < Abstract
- include Nanoc::Int::ContractsSupport
+module Nanoc
+ module Int
+ class Compiler
+ module Phases
+ class MarkDone < Abstract
+ include Nanoc::Core::ContractsSupport
- def initialize(wrapped:, outdatedness_store:)
- super(wrapped: wrapped)
+ def initialize(wrapped:, outdatedness_store:)
+ super(wrapped: wrapped)
- @outdatedness_store = outdatedness_store
- end
+ @outdatedness_store = outdatedness_store
+ end
- contract Nanoc::Int::ItemRep, C::KeywordArgs[is_outdated: C::Bool], C::Func[C::None => C::Any] => C::Any
- def run(rep, is_outdated:) # rubocop:disable Lint/UnusedMethodArgument
- yield
- @outdatedness_store.remove(rep)
+ contract Nanoc::Core::ItemRep, C::KeywordArgs[is_outdated: C::Bool], C::Func[C::None => C::Any] => C::Any
+ def run(rep, is_outdated:) # rubocop:disable Lint/UnusedMethodArgument
+ yield
+ @outdatedness_store.remove(rep)
+ end
+ end
+ end
end
end
end