rake-dotnet 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/rake_dotnet.rb +15 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 0.0.7 / 2009-04-15
|
2
|
+
|
3
|
+
* 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.
|
4
|
+
* CHANGE: Adjust the Demo's Rakefile to make FxCop ignore assemblies with "Tests" in their filename.
|
5
|
+
|
1
6
|
=== 0.0.6 / 2009-04-06
|
2
7
|
|
3
8
|
* Move source control to github at http://github.com/petemounce/rake-dotnet
|
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.7') 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
@@ -56,11 +56,22 @@ def regexify(path)
|
|
56
56
|
path.gsub('/', '\/').gsub('.', '\.')
|
57
57
|
end
|
58
58
|
|
59
|
+
def find_tools_dir
|
60
|
+
shared = File.join(PRODUCT_ROOT, '..', '3rdparty')
|
61
|
+
owned = File.join(PRODUCT_ROOT, '3rdparty')
|
62
|
+
if File.exist?(shared)
|
63
|
+
shared
|
64
|
+
end
|
65
|
+
if File.exist?(owned)
|
66
|
+
owned
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
59
70
|
# Setting constants like this allows you to do things like 'rake compile CONFIGURATION=Release' to specify their values
|
60
71
|
# By default, we assume that this Rakefile lives in {PRODUCT_ROOT}/build, and that this is the working directory
|
61
72
|
PRODUCT_ROOT = ENV['PRODUCT_ROOT'] ? ENV['PRODUCT_ROOT'] : '..'
|
62
|
-
SRC_DIR = File.join(PRODUCT_ROOT, 'src')
|
63
|
-
TOOLS_DIR = ENV['TOOLS_DIR'] ? ENV['TOOLS_DIR'] :
|
73
|
+
SRC_DIR = ENV['SRC_DIR'] ? ENV['SRC_DIR'] : File.join(PRODUCT_ROOT, 'src')
|
74
|
+
TOOLS_DIR = ENV['TOOLS_DIR'] ? ENV['TOOLS_DIR'] : find_tools_dir
|
64
75
|
CONFIGURATION = ENV['CONFIGURATION'] ? ENV['CONFIGURATION'] : 'Debug'
|
65
76
|
MSBUILD_VERBOSITY = ENV['MSBUILD_VERBOSITY'] ? ENV['MSBUILD_VERBOSITY'] : 'm'
|
66
77
|
OUT_DIR = ENV['OUT_DIR'] ? ENV['OUT_DIR'] : 'out'
|
@@ -166,6 +177,8 @@ end
|
|
166
177
|
|
167
178
|
module Rake
|
168
179
|
class FxCopTask < TaskLib
|
180
|
+
attr_accessor :dll_list
|
181
|
+
|
169
182
|
def initialize(params={})
|
170
183
|
@product_name = params[:product_name] || PRODUCT_NAME
|
171
184
|
@report_dir = params[:report_dir] || File.join(OUT_DIR, 'reports')
|
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.7
|
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-15 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|