mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Coerce all paths in sitemap to Pathname
This commit is contained in:
parent
1c62dd68a7
commit
a537b434e3
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,7 @@ module Middleman
|
||||||
# @param [Pathname] path The file that changed
|
# @param [Pathname] path The file that changed
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def did_change(path)
|
def did_change(path)
|
||||||
|
path = Pathname(path)
|
||||||
return if ignored?(path)
|
return if ignored?(path)
|
||||||
logger.debug "== File Change: #{path}"
|
logger.debug "== File Change: #{path}"
|
||||||
@known_paths << path
|
@known_paths << path
|
||||||
|
@ -99,6 +100,7 @@ module Middleman
|
||||||
# @param [Pathname] path The file that was deleted
|
# @param [Pathname] path The file that was deleted
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def did_delete(path)
|
def did_delete(path)
|
||||||
|
path = Pathname(path)
|
||||||
return if ignored?(path)
|
return if ignored?(path)
|
||||||
logger.debug "== File Deletion: #{path}"
|
logger.debug "== File Deletion: #{path}"
|
||||||
@known_paths.delete(path)
|
@known_paths.delete(path)
|
||||||
|
|
Loading…
Reference in a new issue