lib/nanoc/base/result_data/item_rep.rb in nanoc-3.5.0 vs lib/nanoc/base/result_data/item_rep.rb in nanoc-3.6.0
- old
+ new
@@ -331,11 +331,11 @@
# Create filter
filter = klass.new(assigns)
# Run filter
source = self.binary? ? temporary_filenames[:last] : @content[:last]
- result = filter.run(source, filter_args)
+ result = filter.setup_and_run(source, filter_args)
if klass.to_binary?
temporary_filenames[:last] = filter.output_filename
else
@content[:last] = result
@content[:last].freeze
@@ -396,11 +396,11 @@
# Notify start
Nanoc::NotificationCenter.post(:processing_started, layout)
Nanoc::NotificationCenter.post(:filtering_started, self, filter_name)
# Layout
- @content[:last] = filter.run(layout.raw_content, filter_args)
+ @content[:last] = filter.setup_and_run(layout.raw_content, filter_args)
# Create "post" snapshot
snapshot(:post, :final => false)
ensure
# Notify end
@@ -456,10 +456,10 @@
def reference
[ type, self.item.identifier, self.name ]
end
def inspect
- "<#{self.class} name=#{self.name} binary=#{self.binary?} raw_path=#{self.raw_path} item.identifier=#{self.item.identifier}>"
+ "<#{self.class} name=\"#{self.name}\" binary=#{self.binary?} raw_path=\"#{self.raw_path}\" item.identifier=\"#{self.item.identifier}\">"
end
private
def initialize_content