lib/artifacts.rb in dev_tasks-0.0.34 vs lib/artifacts.rb in dev_tasks-0.0.35

- old
+ new

@@ -15,14 +15,16 @@ # extract AssemblyName of form: <AssemblyName>MyLibrary.Test</AssemblyName> assemblyName=text[/<AssemblyName>([\w\.]+)</,1] outputPath=text[/Release[.\w\W]+<OutputPath>([\w\.\\]+)</,1] if(!assemblyName.nil? && !outputPath.nil? && !assemblyName.include?("Test")) cs_dll = "#{outputPath}\\#{assemblyName}.dll".gsub("\\\\","\\").gsub('/','\\').gsub('\\','/') + + puts "artifact " + cs_dll self << cs_dll if(!self.include?(cs_dll)) # add in file dependencies - Dependencies.csharp_file_dependencies(File.read(p)).each{|dep| - cs_dll_dep=d.gsub(File.dirname(dep),File.dirname(cs_dll)).gsub('\\','/') + Dependencies.csharp_file_dependencies(text).each{|dep| + cs_dll_dep=dep.gsub(File.dirname(dep),File.dirname(cs_dll)).gsub('\\','/') self << cs_dll_dep if(!self.include?(cs_dll_dep)) } end } end \ No newline at end of file