lib/nanoc/base/compilation/rules_collection.rb in nanoc-4.0.0b4 vs lib/nanoc/base/compilation/rules_collection.rb in nanoc-4.0.0rc1

- old
+ new

@@ -215,12 +215,12 @@ # the list of snapshots # # @return [Array] A list of snapshots, represented as arrays where the # first element is the snapshot name (a Symbol) and the last element is # a Boolean indicating whether the snapshot is final or not - def snapshots_for(rep) + def snapshots_defs_for(rep) new_rule_memory_for_rep(rep).select { |e| e[0] == :snapshot }.map do |e| - [e[1], e[2].fetch(:final) { true }] + Nanoc::Int::SnapshotDef.new(e[1], e[2].fetch(:final, true)) end end # @param [Nanoc::Int::Item] obj The object for which to check the rule memory #