lib/nanoc/base/repos/dependency_store.rb in nanoc-4.7.11 vs lib/nanoc/base/repos/dependency_store.rb in nanoc-4.7.12
- old
+ new
@@ -6,18 +6,19 @@
include Nanoc::Int::ContractsSupport
attr_accessor :items
attr_accessor :layouts
- def initialize(items, layouts, site: nil)
+ def initialize(items, layouts, config, site: nil)
super(Nanoc::Int::Store.tmp_path_for(site: site, store_name: 'dependencies'), 4)
@items = items
@layouts = layouts
@refs2objs = {}
items.each { |o| add_vertex_for(o) }
layouts.each { |o| add_vertex_for(o) }
+ add_vertex_for(config)
@new_objects = []
@graph = Nanoc::Int::DirectedGraph.new([nil] + objs2refs(@items) + objs2refs(@layouts))
end