rake-dotnet 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -1
- data/lib/rake_dotnet.rb +24 -9
- metadata +8 -6
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.
|
8
|
+
Hoe.new('rake-dotnet', '0.0.9') 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'
|
@@ -14,6 +14,7 @@ Hoe.new('rake-dotnet', '0.0.8') do |p|
|
|
14
14
|
p.developer('Peter Mounce', 'pete@neverrunwithscissors.com')
|
15
15
|
p.remote_rdoc_dir = ''
|
16
16
|
p.extra_deps = ['rake']
|
17
|
+
p.url = 'http://blog.neverrunwithscissors.com/tag/rake-dotnet'
|
17
18
|
end
|
18
19
|
|
19
20
|
generated_library = File.join('lib','rake_dotnet.rb')
|
data/lib/rake_dotnet.rb
CHANGED
@@ -60,10 +60,10 @@ def find_tools_dir
|
|
60
60
|
shared = File.join(PRODUCT_ROOT, '..', '3rdparty')
|
61
61
|
owned = File.join(PRODUCT_ROOT, '3rdparty')
|
62
62
|
if File.exist?(shared)
|
63
|
-
shared
|
63
|
+
return shared
|
64
64
|
end
|
65
65
|
if File.exist?(owned)
|
66
|
-
owned
|
66
|
+
return owned
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -216,6 +216,10 @@ module Rake
|
|
216
216
|
Rake::FileTask[@name].invoke
|
217
217
|
end
|
218
218
|
|
219
|
+
task :clobber_fxcop,[:globs] do |t, args|
|
220
|
+
rm_rf @report_dir
|
221
|
+
end
|
222
|
+
|
219
223
|
self
|
220
224
|
end
|
221
225
|
|
@@ -275,6 +279,7 @@ class FxCop
|
|
275
279
|
end
|
276
280
|
|
277
281
|
def run
|
282
|
+
puts cmd if VERBOSE
|
278
283
|
sh cmd
|
279
284
|
end
|
280
285
|
end
|
@@ -489,6 +494,7 @@ class MsBuild
|
|
489
494
|
def run
|
490
495
|
if @working_dir
|
491
496
|
chdir(@working_dir) do
|
497
|
+
puts cmd if VERBOSE
|
492
498
|
sh cmd
|
493
499
|
end
|
494
500
|
end
|
@@ -513,7 +519,6 @@ end
|
|
513
519
|
module Rake
|
514
520
|
class NCoverTask < TaskLib
|
515
521
|
def initialize(params={})
|
516
|
-
|
517
522
|
@product_name = params[:product_name] || PRODUCT_NAME
|
518
523
|
@bin_dir = params[:bin_dir] || File.join(OUT_DIR, 'bin')
|
519
524
|
@report_dir = params[:report_dir] || File.join(OUT_DIR, 'reports', 'ncover')
|
@@ -588,10 +593,11 @@ class NCover
|
|
588
593
|
@output_file = File.join(report_dir, ofname)
|
589
594
|
@exclude_assemblies_regex = params[:exclude_assemblies_regex] || '.*Tests.*'
|
590
595
|
@build_id = params[:build_id] || RDNVERSION
|
596
|
+
@working_dir = params[:working_dir] || Pathname.new(@dll_to_execute).dirname
|
591
597
|
end
|
592
598
|
|
593
599
|
def cmdToRun
|
594
|
-
x = XUnit.new(@dll_to_execute, {})
|
600
|
+
x = XUnit.new(@dll_to_execute, '', nil, {})
|
595
601
|
x.cmd
|
596
602
|
end
|
597
603
|
|
@@ -599,15 +605,20 @@ class NCover
|
|
599
605
|
"//bi #{@build_id.to_s}"
|
600
606
|
end
|
601
607
|
|
608
|
+
def working_dir
|
609
|
+
"//w #{@working_dir}"
|
610
|
+
end
|
611
|
+
|
602
612
|
def eas
|
603
613
|
"//eas #{@exclude_assemblies_regex}"
|
604
614
|
end
|
605
|
-
|
615
|
+
|
606
616
|
def cmd
|
607
|
-
"\"#{@exe}\" #{cmdToRun} //x #{@output_file} #{eas} #{bi}"
|
617
|
+
"\"#{@exe}\" #{cmdToRun} //x #{@output_file} #{eas} #{bi} #{working_dir}"
|
608
618
|
end
|
609
619
|
|
610
620
|
def run
|
621
|
+
puts cmd if VERBOSE
|
611
622
|
sh cmd
|
612
623
|
end
|
613
624
|
end
|
@@ -644,8 +655,8 @@ class NCoverReporting
|
|
644
655
|
"//bi #{@build_id.to_s}"
|
645
656
|
end
|
646
657
|
|
647
|
-
def
|
648
|
-
"//
|
658
|
+
def output_report
|
659
|
+
"//or #{@report}"
|
649
660
|
end
|
650
661
|
|
651
662
|
def op
|
@@ -657,7 +668,7 @@ class NCoverReporting
|
|
657
668
|
end
|
658
669
|
|
659
670
|
def cmd
|
660
|
-
"\"#{@exe}\" #{coverage_files} #{bi} #{
|
671
|
+
"\"#{@exe}\" #{coverage_files} #{bi} #{output_report} #{op} #{so}"
|
661
672
|
end
|
662
673
|
|
663
674
|
def run
|
@@ -755,6 +766,7 @@ class SevenZip
|
|
755
766
|
end
|
756
767
|
|
757
768
|
def run_add
|
769
|
+
puts cmd_add if VERBOSE
|
758
770
|
sh cmd_add
|
759
771
|
end
|
760
772
|
|
@@ -809,6 +821,7 @@ class SvnExport < Svn
|
|
809
821
|
end
|
810
822
|
|
811
823
|
def export
|
824
|
+
puts cmd if VERBOSE
|
812
825
|
sh cmd
|
813
826
|
end
|
814
827
|
|
@@ -835,6 +848,7 @@ class SvnInfo < Svn
|
|
835
848
|
end
|
836
849
|
|
837
850
|
def revision
|
851
|
+
puts cmd if VERBOSE
|
838
852
|
out = `#{cmd}`
|
839
853
|
out.match(/Revision: (\d+)/)[1]
|
840
854
|
end
|
@@ -937,6 +951,7 @@ class XUnit
|
|
937
951
|
def run
|
938
952
|
test_dir = Pathname.new(testDll).dirname
|
939
953
|
chdir test_dir do
|
954
|
+
puts cmd if VERBOSE
|
940
955
|
sh cmd
|
941
956
|
end
|
942
957
|
end
|
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.
|
4
|
+
version: 0.0.9
|
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-
|
12
|
+
date: 2009-04-30 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.12.2
|
34
34
|
version:
|
35
35
|
description: Making a .NET build-automation dev's life easier, one angle-bracket at a time
|
36
36
|
email: pete@neverrunwithscissors.compete@neverrunwithscissors.com
|
@@ -51,7 +51,9 @@ files:
|
|
51
51
|
- lib/rake_dotnet.rb
|
52
52
|
- test/test_rake_dotnet.rb
|
53
53
|
has_rdoc: true
|
54
|
-
homepage:
|
54
|
+
homepage: http://blog.neverrunwithscissors.com/tag/rake-dotnet
|
55
|
+
licenses: []
|
56
|
+
|
55
57
|
post_install_message:
|
56
58
|
rdoc_options:
|
57
59
|
- --main
|
@@ -73,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
75
|
requirements: []
|
74
76
|
|
75
77
|
rubyforge_project: rake-dotnet
|
76
|
-
rubygems_version: 1.3.
|
78
|
+
rubygems_version: 1.3.2
|
77
79
|
signing_key:
|
78
|
-
specification_version:
|
80
|
+
specification_version: 3
|
79
81
|
summary: Build automation for .NET builds
|
80
82
|
test_files:
|
81
83
|
- test/test_rake_dotnet.rb
|