lib/nanoc/base/services/compiler_loader.rb in nanoc-4.5.4 vs lib/nanoc/base/services/compiler_loader.rb in nanoc-4.6.0
- old
+ new
@@ -1,25 +1,25 @@
module Nanoc::Int
# @api private
class CompilerLoader
def load(site, action_provider: nil)
- rule_memory_store = Nanoc::Int::RuleMemoryStore.new
+ rule_memory_store = Nanoc::Int::RuleMemoryStore.new(site: site)
dependency_store =
- Nanoc::Int::DependencyStore.new(site.items.to_a + site.layouts.to_a)
+ Nanoc::Int::DependencyStore.new(site.items.to_a + site.layouts.to_a, site: site)
objects = site.items.to_a + site.layouts.to_a + site.code_snippets + [site.config]
checksum_store =
- Nanoc::Int::ChecksumStore.new(objects: objects)
+ Nanoc::Int::ChecksumStore.new(site: site, objects: objects)
item_rep_repo = Nanoc::Int::ItemRepRepo.new
action_provider ||= Nanoc::Int::ActionProvider.named(:rule_dsl).for(site)
outdatedness_store =
- Nanoc::Int::OutdatednessStore.new(reps: item_rep_repo)
+ Nanoc::Int::OutdatednessStore.new(site: site, reps: item_rep_repo)
outdatedness_checker =
Nanoc::Int::OutdatednessChecker.new(
site: site,
checksum_store: checksum_store,
@@ -28,10 +28,13 @@
action_provider: action_provider,
reps: item_rep_repo,
)
compiled_content_cache =
- Nanoc::Int::CompiledContentCache.new(items: site.items)
+ Nanoc::Int::CompiledContentCache.new(
+ site: site,
+ items: site.items,
+ )
params = {
compiled_content_cache: compiled_content_cache,
checksum_store: checksum_store,
rule_memory_store: rule_memory_store,