lib/nanoc/base/repos/data_source.rb in nanoc-4.8.10 vs lib/nanoc/base/repos/data_source.rb in nanoc-4.8.11
- old
+ new
@@ -96,9 +96,21 @@
# @return [Enumerable] The collection of items
def items
[]
end
+ # @api private
+ def item_changes
+ warn "Caution: Data source #{self.class.identifier.inspect} does not implement #item_changes; live compilation will not pick up changes in this data source."
+ Enumerator.new { |_y| sleep }
+ end
+
+ # @api private
+ def layout_changes
+ warn "Caution: Data source #{self.class.identifier.inspect} does not implement #layout_changes; live compilation will not pick up changes in this data source."
+ Enumerator.new { |_y| sleep }
+ end
+
# Returns the collection of layouts (represented by {Nanoc::Int::Layout}) in
# this site. The default implementation simply returns an empty array.
#
# Subclasses should prepend `layout_root` to the layout's identifiers,
# since this is not done automatically.