mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
change file dependency regex to accept absolute paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user