dev 1.0.141 → 1.0.142
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/Project.rb +10 -0
- 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
|