lib/bubble-wrap.rb in bubble-wrap-0.3.0 vs lib/bubble-wrap.rb in bubble-wrap-0.3.1
- old
+ new
@@ -9,10 +9,10 @@
class Config
# HACK NEEDED since RubyMotion doesn't support full path
# dependencies.
def files_dependencies(deps_hash)
res_path = lambda do |x|
- path = /^\.|\/Users\//.match(x) ? x : File.join('.', x)
+ path = /^\.?\//.match(x) ? x : File.join('.', x)
unless @files.include?(path)
App.fail "Can't resolve dependency `#{x}' because #{path} is not in #{@files.inspect}"
end
path
end