lib/nanoc/base/compilation/compiler.rb in nanoc-4.0.0b1 vs lib/nanoc/base/compilation/compiler.rb in nanoc-4.0.0b2

- old
+ new

@@ -157,11 +157,11 @@ # Store the modified helper data used for compiling the site. # # @return [void] def store # Calculate rule memory - (reps + layouts).each do |obj| + (reps + layouts.to_a).each do |obj| rule_memory_store[obj] = rule_memory_calculator[obj] end # Calculate checksums objects.each do |obj| @@ -175,11 +175,11 @@ # Returns the dependency tracker for this site, creating it first if it # does not yet exist. # # @return [Nanoc::Int::DependencyTracker] The dependency tracker for this site def dependency_tracker - dt = Nanoc::Int::DependencyTracker.new(@site.items + @site.layouts) + dt = Nanoc::Int::DependencyTracker.new(@site.items.to_a + @site.layouts.to_a) dt.compiler = self dt end memoize :dependency_tracker @@ -195,10 +195,10 @@ # Returns all objects managed by the site (items, layouts, code snippets, # site configuration and the rules). # # @api private def objects - site.items + site.layouts + site.code_snippets + + site.items.to_a + site.layouts.to_a + site.code_snippets + [site.config, rules_collection] end # Creates the representations of all items as defined by the compilation # rules.