Coerce all paths in sitemap to Pathname

This commit is contained in:
Thomas Reynolds 2012-12-30 15:26:38 -08:00
parent eea45095b8
commit e08eb280fa

View file

@ -88,6 +88,7 @@ module Middleman
# @param [Pathname] path The file that changed
# @return [void]
def did_change(path)
path = Pathname(path)
return if ignored?(path)
logger.debug "== File Change: #{path}"
@known_paths << path
@ -99,6 +100,7 @@ module Middleman
# @param [Pathname] path The file that was deleted
# @return [void]
def did_delete(path)
path = Pathname(path)
return if ignored?(path)
logger.debug "== File Deletion: #{path}"
@known_paths.delete(path)