Sha256: 1a9ae43e0291665191d17ac70cd5e876d150d9c1bfbbff02425e19a9911fedd8

Contents?: true

Size: 707 Bytes

Versions: 11

Compression:

Stored size: 707 Bytes

Contents

class Artifacts < Hash
  def initialize 
    # gem, dev_tasks-0.0.7.gem
	Dir.glob('*.gemspec') {|f|
	  spec=Gem::Specification.load(f)
	  self[spec.name]="#{spec.name}-#{spec.version.to_s}.gem"
	}

	# C# dll, bin/Net4.0/QcNet.dll
	Dir.glob("*.csproj").each{|p|
	  text = File.read(p)
	  # 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('/','\\')
		self[assemblyName]=cs_dll
	  end
	}
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dev_tasks-0.0.20 lib/artifacts.rb
dev_tasks-0.0.19 lib/artifacts.rb
dev_tasks-0.0.18 lib/artifacts.rb
dev_tasks-0.0.17 lib/artifacts.rb
dev_tasks-0.0.16 lib/artifacts.rb
dev_tasks-0.0.15 lib/artifacts.rb
dev_tasks-0.0.14 lib/artifacts.rb
dev_tasks-0.0.13 lib/artifacts.rb
dev_tasks-0.0.12 lib/artifacts.rb
dev_tasks-0.0.11 lib/artifacts.rb
dev_tasks-0.0.10 lib/artifacts.rb