lib/dev/Environment.rb in dev-1.0.67 vs lib/dev/Environment.rb in dev-1.0.68

- old
+ new

@@ -25,11 +25,22 @@ reg_exp = /(\/(wrk|dep)\/[.\w\d-]+\/[.\w\d-]+\/[.\w\d-@]+)/ unless(Rake.original_dir().match(reg_exp).nil?) wrk_rel = Rake.original_dir().match(reg_exp)[1] if Rake.original_dir().match(reg_exp).length > 0 if(!wrk_rel.nil? && wrk_rel.length > 0) dir = Rake.original_dir().gsub(wrk_rel,""); + return dir end end + + reg_exp = /(\/(Dropbox)\/[.\w\d-]+\/[.\w\d-]+\/[.\w\d-@]+)/ + unless(Rake.original_dir().match(reg_exp).nil?) + wrk_rel = Rake.original_dir().match(reg_exp)[1] if Rake.original_dir().match(reg_exp).length > 0 + if(!wrk_rel.nil? && wrk_rel.length > 0) + dir = Rake.original_dir().gsub(wrk_rel,""); + return dir + end + end + return dir end def self.expand_string_variables(str) eval("\"#{str.gsub('"','\"')}\"")