Fix watcher to be more selective about what it ignores

This commit is contained in:
Ben Hollis 2012-03-18 18:55:02 -06:00
parent bacffeea02
commit 1b0fe80873
3 changed files with 12 additions and 6 deletions

View file

@ -14,6 +14,7 @@ Feature: Builder
| images/Read me (example).txt |
| images/Child folder/regular_file(example).txt |
| .htaccess |
| feed.xml |
Then the following files should not exist:
| _partial |
| layout |

View file

@ -0,0 +1,4 @@
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title "Not a feed, really"
end

View file

@ -17,12 +17,13 @@ module Middleman
def ignore_list
[
/\.sass-cache/,
/\.sass-cache\//,
/\.git/,
/\.DS_Store/,
/build/,
/\.rbenv-version/,
/Gemfile/,
/\.DS_Store$/,
/build\//,
/\.rbenv-version$/,
/Gemfile$/,
/Gemfile\.lock$/,
/\.mm-pid/
]
end
@ -179,4 +180,4 @@ module Middleman
Net::HTTP.post_form(uri, {}.merge(params))
end
end
end
end