dev 1.0.141 → 1.0.142

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/Project.rb +10 -0
  2. metadata +1 -1
data/lib/dev/Project.rb CHANGED
@@ -267,6 +267,16 @@ class Project < Hash
267
267
  end
268
268
  }
269
269
  end
270
+ if((Dir.glob("**/*.csproj").count > 0 || Dir.glob("*.csproj").count > 0) && !self[:dep].nil? && !self[:dep].empty?)
271
+ self[:replace]=Hash.new if self[:replace].nil?
272
+ self[:dep].each{ |k,v|
273
+ if self[:dep][k].has_key?(:rev) && self[:dep][k].has_key?(:dir) && !self[:replace].has_key?(k)
274
+ group=self[:dep][k][:dir].split('/')[0]
275
+ searchRegex=Regexp.new "#{group}\\\\#{k}\\\\[\\d]+"
276
+ self[:replace][k]={ glob: '**/*.csproj', search: searchRegex, replace: "#{group}\\#{k}\\#{v[:rev]}" }
277
+ end
278
+ }
279
+ end
270
280
  end
271
281
 
272
282
  def replace
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.141
4
+ version: 1.0.142
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: