lib/dependencies.rb in dev_tasks-0.0.16 vs lib/dependencies.rb in dev_tasks-0.0.17
- old
+ new
@@ -23,10 +23,10 @@
cs_dep_hash=Hash.new
#includes = Array.new
#hints = Array.new
Dir.glob("**/*.csproj").each{|f|
text=File.read(f)
- text.scan(/Reference Include="([\w\.]+)"/).each{|r|
+ text.scan(/<Reference Include="([\w\.]+)"/).each{|r|
cs_dep_hash[r.first.to_s]=r.first.to_s if !cs_dep_hash.has_key? r.first.to_s
}
text.scan(/<HintPath>([\w\.\\\s]+)</).each{|r|
hint = r.first.to_s
include = hint.split('\\').last
\ No newline at end of file