dev 1.0.67 → 1.0.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dev/Environment.rb +11 -0
  2. metadata +2 -2
@@ -27,8 +27,19 @@ class Environment
27
27
  wrk_rel = Rake.original_dir().match(reg_exp)[1] if Rake.original_dir().match(reg_exp).length > 0
28
28
  if(!wrk_rel.nil? && wrk_rel.length > 0)
29
29
  dir = Rake.original_dir().gsub(wrk_rel,"");
30
+ return dir
30
31
  end
31
32
  end
33
+
34
+ reg_exp = /(\/(Dropbox)\/[.\w\d-]+\/[.\w\d-]+\/[.\w\d-@]+)/
35
+ unless(Rake.original_dir().match(reg_exp).nil?)
36
+ wrk_rel = Rake.original_dir().match(reg_exp)[1] if Rake.original_dir().match(reg_exp).length > 0
37
+ if(!wrk_rel.nil? && wrk_rel.length > 0)
38
+ dir = Rake.original_dir().gsub(wrk_rel,"");
39
+ return dir
40
+ end
41
+ end
42
+
32
43
  return dir
33
44
  end
34
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.67
4
+ version: 1.0.68
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project: dev
182
- rubygems_version: 1.8.23
182
+ rubygems_version: 1.8.24
183
183
  signing_key:
184
184
  specification_version: 3
185
185
  summary: dev