From 8de087ec65065f85b7c6ee07ec719a686996be5c Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 6 Jan 2012 00:11:38 -0800 Subject: [PATCH] fix manual sitemap updates on ruby 1.9 --- .../lib/middleman-core/core_extensions/file_watcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 445170a0..25013524 100644 --- a/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb +++ b/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb @@ -106,7 +106,7 @@ module Middleman::CoreExtensions::FileWatcher relative_path = path.sub("#{self.instance.root}/", "") subset.delete(relative_path) if subset.include?(relative_path) self.did_change(relative_path) - end + end if File.exists?(path) subset.each do |removed_path| self.did_delete(removed_path)