lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.5.4 vs lib/nanoc/base/repos/compiled_content_cache.rb in nanoc-4.6.0
- old
+ new
@@ -4,12 +4,12 @@
#
# @api private
class CompiledContentCache < ::Nanoc::Int::Store
include Nanoc::Int::ContractsSupport
- contract C::KeywordArgs[items: C::IterOf[Nanoc::Int::Item]] => C::Any
- def initialize(items:)
- super('tmp/compiled_content', 2)
+ contract C::KeywordArgs[site: C::Maybe[Nanoc::Int::Site], items: C::IterOf[Nanoc::Int::Item]] => C::Any
+ def initialize(site: nil, items:)
+ super(Nanoc::Int::Store.tmp_path_for(site: site, store_name: 'compiled_content'), 2)
@items = items
@cache = {}
end