From 6fb9560bfb88182bd1c3b0c135da7dffe6cfb2d2 Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Tue, 14 May 2013 12:42:58 -0700 Subject: [PATCH] Support leading ".." notation in dependency pathnames --- lib/motion/project/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index 921ce2c7..f49de294 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -205,7 +205,7 @@ module Motion; module Project def files_dependencies(deps_hash) res_path = lambda do |x| - path = /^\.?\//.match(x) ? x : File.join('.', x) + path = /^\.{0,2}\//.match(x) ? x : File.join('.', x) unless @files.flatten.include?(path) App.fail "Can't resolve dependency `#{path}'" end