From e08eb280faf39f70008e617c6f9570fb4a8feeb1 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sun, 30 Dec 2012 15:26:38 -0800 Subject: [PATCH] Coerce all paths in sitemap to Pathname --- .../lib/middleman-core/core_extensions/file_watcher.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb b/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb index 1883b57b..44eb2e31 100644 --- a/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb +++ b/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb @@ -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)