lib/dependencies.rb in dev_tasks-0.0.17 vs lib/dependencies.rb in dev_tasks-0.0.18
- old
+ new
@@ -33,12 +33,18 @@
include = hint.split('\\').last
cs_dep_hash.delete include.gsub(".dll","")
cs_dep_hash[include]=hint
}
}
- cs_deps = Array.new
+ cs_deps = Hash.new
cs_dep_hash.each do |include,hint|
- cs_deps << hint
+ if(include==hint)
+ cs_deps[:system]=Array.new if !cs_deps.has_key?(:system)
+ cs_deps[:system]<< hint
+ else
+ cs_deps[:file]=Array.new if !cs_deps.has_key?(:file)
+ cs_deps[:file] << hint
+ end
end
if cs_deps.length > 0
cs_deps = cs_deps.sort
self["C#"]=cs_deps
end
\ No newline at end of file