change file dependency regex to accept absolute paths

This commit is contained in:
Clay Allsopp
2013-04-04 19:24:49 -07:00
committed by Watson
parent 8e78acf915
commit a38f066148

View File

@@ -276,7 +276,7 @@ EOS
def files_dependencies(deps_hash)
res_path = lambda do |x|
path = /^\./.match(x) ? x : File.join('.', x)
path = /^\.?\//.match(x) ? x : File.join('.', x)
unless @files.flatten.include?(path)
App.fail "Can't resolve dependency `#{x}'"
end