lib/nanoc/base/services.rb in nanoc-4.11.0 vs lib/nanoc/base/services.rb in nanoc-4.11.1

- old
+ new

@@ -1,10 +1,9 @@ # frozen_string_literal: true require_relative 'services/action_provider' require_relative 'services/action_sequence_builder' -require_relative 'services/checksummer' require_relative 'services/compilation_context' require_relative 'services/compiler' require_relative 'services/compiler_loader' require_relative 'services/dependency_tracker' require_relative 'services/executor' @@ -12,15 +11,20 @@ require_relative 'services/instrumentor' require_relative 'services/item_rep_builder' require_relative 'services/item_rep_router' require_relative 'services/item_rep_selector' require_relative 'services/item_rep_writer' -require_relative 'services/notification_center' require_relative 'services/pruner' -require_relative 'services/temp_filename_factory' require_relative 'services/outdatedness_rule' require_relative 'services/outdatedness_rules' require_relative 'services/compiler/phases' require_relative 'services/compiler/stages' require_relative 'services/outdatedness_checker' + +# TODO: Move this into the entity, once the load order is improved (i.e. the +# checksummer is loaded after CodeSnippet). +Nanoc::Core::Checksummer.define_behavior( + Nanoc::Core::CodeSnippet, + Nanoc::Core::Checksummer::DataUpdateBehavior, +)