lib/nanoc/base/repos/checksum_store.rb in nanoc-4.5.4 vs lib/nanoc/base/repos/checksum_store.rb in nanoc-4.6.0
- old
+ new
@@ -8,12 +8,12 @@
attr_accessor :objects
c_obj = C::Or[Nanoc::Int::Item, Nanoc::Int::Layout, Nanoc::Int::Configuration, Nanoc::Int::CodeSnippet]
- contract C::KeywordArgs[objects: C::IterOf[c_obj]] => C::Any
- def initialize(objects:)
- super('tmp/checksums', 1)
+ contract C::KeywordArgs[site: C::Maybe[Nanoc::Int::Site], objects: C::IterOf[c_obj]] => C::Any
+ def initialize(site: nil, objects:)
+ super(Nanoc::Int::Store.tmp_path_for(site: site, store_name: 'checksums'), 1)
@objects = objects
@checksums = {}
end