Use pathname consistently in file watcher

This commit is contained in:
Thomas Reynolds 2012-05-25 18:18:51 -07:00
parent c3c662cf44
commit 2e5b0d75a9
7 changed files with 59 additions and 52 deletions

View file

@ -210,7 +210,7 @@ module Middleman::Cli
puts "== Checking for Compass sprites" if @app.logging?
# Double-check for compass sprites
@app.files.find_new_files(File.join(@app.source_dir, @app.images_dir))
@app.files.find_new_files(Pathname.new(@app.source_dir) + @app.images_dir)
# Sort paths to be built by the above order. This is primarily so Compass can
# find files in the build folder when it needs to generate sprites for the