rake-dotnet 0.1.13 → 0.1.14
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/History.txt +5 -0
- data/Rakefile.rb +1 -1
- data/lib/rake_dotnet.rb +9 -9
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 0.1.14 / 2009-09-08
|
2
|
+
|
3
|
+
FIX: Versioner: Replace the RDNVERSION constant with calls to Versioner.new.get
|
4
|
+
CHANGE: Added version task for convenience
|
5
|
+
|
1
6
|
=== 0.1.13 / 2009-09-01
|
2
7
|
|
3
8
|
FIX: Versioner: Need to make the version.txt file a file-task, so assembly_info can depend on it.
|
data/Rakefile.rb
CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
|
|
5
5
|
require 'Pathname'
|
6
6
|
require 'rake/clean'
|
7
7
|
|
8
|
-
Hoe.new('rake-dotnet', '0.1.
|
8
|
+
Hoe.new('rake-dotnet', '0.1.14') 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
@@ -190,7 +190,7 @@ module Rake
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def version
|
193
|
-
@version ||=
|
193
|
+
@version ||= Versioner.new.get
|
194
194
|
end
|
195
195
|
end
|
196
196
|
end
|
@@ -204,7 +204,7 @@ module Rake
|
|
204
204
|
@product_name = params[:product_name] || PRODUCT_NAME
|
205
205
|
@report_dir = params[:report_dir] || File.join(OUT_DIR, 'reports')
|
206
206
|
@name = params[:name] || File.join(@report_dir, @product_name + '.fxcop')
|
207
|
-
@suites_dir = params[:suites_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{
|
207
|
+
@suites_dir = params[:suites_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{Versioner.new.get}")
|
208
208
|
@dll_list = FileList.new
|
209
209
|
@deps = params[:deps] || []
|
210
210
|
@fxcop_options = params[:fxcop_options] || {}
|
@@ -319,7 +319,7 @@ module Rake
|
|
319
319
|
@src_path = params[:src_path] || File.join(PRODUCT_ROOT, 'src')
|
320
320
|
@deps = params[:deps] || []
|
321
321
|
@configuration = params[:configuration] || CONFIGURATION
|
322
|
-
@version = params[:version] ||
|
322
|
+
@version = params[:version] || Versioner.new.get
|
323
323
|
@target_path = params[:target_path] || File.join(OUT_DIR, "bin-#{@configuration}-v#{@version}")
|
324
324
|
@glob = params[:glob] || "#{@src_path}/*"
|
325
325
|
|
@@ -371,7 +371,7 @@ module Rake
|
|
371
371
|
@target_path = params[:target_path] || OUT_DIR
|
372
372
|
@deps = params[:deps] || []
|
373
373
|
@configuration = params[:configuration] || CONFIGURATION
|
374
|
-
@version = params[:version] ||
|
374
|
+
@version = params[:version] || Versioner.new.get
|
375
375
|
@glob = params[:glob] || "**/*.Site"
|
376
376
|
|
377
377
|
yield self if block_given?
|
@@ -564,7 +564,7 @@ module Rake
|
|
564
564
|
attr_accessor :profile_options, :reporting_options
|
565
565
|
def initialize(params={})
|
566
566
|
@product_name = params[:product_name] || PRODUCT_NAME
|
567
|
-
@bin_dir = params[:bin_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{
|
567
|
+
@bin_dir = params[:bin_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{Versioner.new.get}")
|
568
568
|
@report_dir = params[:report_dir] || File.join(OUT_DIR, 'reports', 'ncover')
|
569
569
|
@deps = params[:deps] || []
|
570
570
|
tool_defaults = {:arch => ENV['PROCESSOR_ARCHITECTURE']}
|
@@ -632,7 +632,7 @@ class NCover
|
|
632
632
|
@output_file = File.join(report_dir, ofname)
|
633
633
|
@exclude_assemblies_regex = params[:exclude_assemblies_regex] || ['.*Tests.*']
|
634
634
|
@exclude_assemblies_regex.push('ISymWrapper')
|
635
|
-
@build_id = params[:build_id] ||
|
635
|
+
@build_id = params[:build_id] || Versioner.new.get
|
636
636
|
@working_dir = params[:working_dir] || Pathname.new(@dll_to_execute).dirname
|
637
637
|
end
|
638
638
|
|
@@ -680,7 +680,7 @@ class NCoverReporting
|
|
680
680
|
@output_path = File.join(@report_dir)
|
681
681
|
|
682
682
|
# optional
|
683
|
-
@build_id = params[:build_id] ||
|
683
|
+
@build_id = params[:build_id] || Versioner.new.get
|
684
684
|
@sort_order = params[:sort] || 'CoveragePercentageAscending'
|
685
685
|
@project_name = params[:project_name] || PRODUCT_NAME
|
686
686
|
end
|
@@ -958,11 +958,11 @@ class Versioner
|
|
958
958
|
end
|
959
959
|
end
|
960
960
|
|
961
|
-
RDNVERSION = Versioner.new.get
|
962
961
|
Version_txt = 'version.txt'
|
963
962
|
file Version_txt do
|
964
963
|
Versioner.new.get
|
965
964
|
end
|
965
|
+
task :version => Version_txt
|
966
966
|
task :assembly_info => Version_txt
|
967
967
|
|
968
968
|
|
@@ -971,7 +971,7 @@ module Rake
|
|
971
971
|
attr_accessor :suites_dir, :reports_dir, :options
|
972
972
|
|
973
973
|
def initialize(params={}) # :yield: self
|
974
|
-
@suites_dir = params[:suites_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{
|
974
|
+
@suites_dir = params[:suites_dir] || File.join(OUT_DIR, "bin-#{CONFIGURATION}-v#{Versioner.new.get}")
|
975
975
|
@reports_dir = params[:reports_dir] || File.join(OUT_DIR, 'reports')
|
976
976
|
@options = params[:options] || {}
|
977
977
|
@deps = params[:deps] || []
|
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.1.
|
4
|
+
version: 0.1.14
|
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-09-
|
12
|
+
date: 2009-09-08 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|