rake-dotnet 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +6 -0
  2. data/Rakefile +1 -1
  3. data/lib/rake_dotnet.rb +19 -13
  4. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.0.8 / 2009-?
2
+
3
+ * CHANGE: Eliminate the need to pass stuff to AssemblyInfoTask when it can just use the defaults ... by default.
4
+ * FIX: Bug with harvesting when output contains directories
5
+ * FIX: Test-runner now executes from within the same directory as the DLL(s) containing tests that it's running through.
6
+
1
7
  === 0.0.7 / 2009-04-15
2
8
 
3
9
  * CHANGE: Adjust TOOLS_DIR initialisation so it looks for a shared 3rdparty folder at the same level as the product folder first, then it looks for a 3rdparty folder inside of the product folder.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
5
5
  require 'Pathname'
6
6
  require 'rake/clean'
7
7
 
8
- Hoe.new('rake-dotnet', '0.0.7') do |p|
8
+ Hoe.new('rake-dotnet', '0.0.8') do |p|
9
9
  p.author = 'Peter Mounce'
10
10
  p.description = 'Making a .NET build-automation dev\'s life easier, one angle-bracket at a time'
11
11
  p.email = 'pete@neverrunwithscissors.com'
data/lib/rake_dotnet.rb CHANGED
@@ -157,19 +157,19 @@ module Rake
157
157
  end
158
158
 
159
159
  def product_name
160
- @product_name ||= 'NRWS rake_dotnet'
160
+ @product_name ||= PRODUCT_NAME
161
161
  end
162
162
 
163
163
  def configuration
164
- @configuration ||= 'Debug'
164
+ @configuration ||= CONFIGURATION
165
165
  end
166
166
 
167
167
  def company_name
168
- @company_name ||= 'NRWS'
168
+ @company_name ||= COMPANY_NAME
169
169
  end
170
170
 
171
171
  def version
172
- @version ||= Versioner.new.get
172
+ @version ||= RDNVERSION
173
173
  end
174
174
  end
175
175
  end
@@ -177,7 +177,7 @@ end
177
177
 
178
178
  module Rake
179
179
  class FxCopTask < TaskLib
180
- attr_accessor :dll_list
180
+ attr_accessor :dll_list, :suites_dir
181
181
 
182
182
  def initialize(params={})
183
183
  @product_name = params[:product_name] || PRODUCT_NAME
@@ -308,13 +308,15 @@ module Rake
308
308
  if pn.directory?
309
309
  output = FileList.new
310
310
  #TODO: distinguish between web and class and console output
311
- output.include("#{entry}/bin/#{@configuration}/**/*")
312
- output.include("#{entry}/bin/**/*")
311
+ output.include("#{entry}/bin/#{@configuration}/*")
312
+ output.include("#{entry}/bin/*")
313
313
  output.each do |o|
314
314
  o_pn = Pathname.new(o)
315
- unless (o_pn.directory?)
316
- to_pn = Pathname.new("#{@target_path}/#{o_pn.basename}")
317
- cp(o, to_pn) unless to_pn.exist?
315
+ to_pn = Pathname.new("#{@target_path}")
316
+ if (o_pn.directory?)
317
+ cp_r(o, to_pn) unless o_pn.to_s.match(/#{@configuration}$/)
318
+ else
319
+ cp(o, to_pn)
318
320
  end
319
321
  end
320
322
  end
@@ -926,13 +928,17 @@ class XUnit
926
928
 
927
929
  def initialize(testDll, reports_dir, xunit=nil, options={})
928
930
  @xunit = xunit || File.join(TOOLS_DIR, 'xunit', 'xunit.console.exe')
929
- @testDll = testDll
930
- @reports_dir = reports_dir
931
+ @xunit = File.expand_path(@xunit)
932
+ @testDll = File.expand_path(testDll)
933
+ @reports_dir = File.expand_path(reports_dir)
931
934
  @options = options
932
935
  end
933
936
 
934
937
  def run
935
- sh cmd
938
+ test_dir = Pathname.new(testDll).dirname
939
+ chdir test_dir do
940
+ sh cmd
941
+ end
936
942
  end
937
943
 
938
944
  def cmd
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-dotnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter MouncePeter Mounce
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-15 00:00:00 +01:00
12
+ date: 2009-04-16 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency