lib/dev/Environment.rb in dev-1.0.85 vs lib/dev/Environment.rb in dev-1.0.86
- old
+ new
@@ -20,10 +20,10 @@
dir="~"
dir=ENV["HOME"] unless ENV["HOME"].nil?
dir=ENV["USERPROFILE"].gsub('\\','/') unless ENV["USERPROFILE"].nil?
dir=ENV["DEV_ROOT"].gsub('\\','/') unless ENV["DEV_ROOT"].nil?
- reg_exp = /(\/(wrk|dep)\/[.\w\d-]+\/[.\w\d-]+\/[.\w\d-@]+)/
+ reg_exp = /(\/(wrk|dep|exp)\/[.\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