albacore 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,8 @@ Anyone can fork the main repository and submit patches, as well. And lastly, the
74
74
  Many thanks for contributions to Albacore are due:
75
75
 
76
76
  * [Ben Hall](http://github.com/benhall): SSH, SFTP, ZipDirectory, Rename, YAML auto config, Wiki pages, and other great additions
77
- * [Steven Harman] (http://github.com/stevenharman): Finding some wicked bugs, patching nunit test runner, and working on the nant task
78
- * [Brian Donahue] (http://github.com/briandonahue): Inspiration and initial code for the ExpandTemplates task
77
+ * [Steven Harman](http://github.com/stevenharman): Finding some wicked bugs, patching nunit test runner, and working on the nant task
78
+ * [Andreone](http://github.com/Andreone): Significant Wiki contributions, questions and contributions on the google group
79
+ * [Brian Donahue](http://github.com/briandonahue): Inspiration and initial code for the ExpandTemplates task
79
80
  * [Sean Biefeld](http://github.com/seanbiefeld): MSpecTestRunner for NCoverConsole
80
81
  * [Kevin Colyar](http://github.com/kevincolyar): Testing and updating of MSBuild to work with Cygwin
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -9,8 +9,8 @@ class AssemblyInfo
9
9
  attr_accessor :file_version, :trademark, :namespaces
10
10
 
11
11
  def initialize
12
- super()
13
12
  @namespaces = []
13
+ super()
14
14
  end
15
15
 
16
16
  def write
@@ -8,10 +8,10 @@ class Command
8
8
  attr_accessor :parameters
9
9
 
10
10
  def initialize()
11
- super()
12
11
  @require_valid_command=false
13
12
  @path_to_command=''
14
13
  @parameters = []
14
+ super()
15
15
  end
16
16
 
17
17
  def execute()
@@ -8,8 +8,8 @@ class ExpandTemplates
8
8
  attr_accessor :expand_files, :data_file
9
9
 
10
10
  def initialize
11
- super()
12
11
  @expand_files = []
12
+ super()
13
13
  end
14
14
 
15
15
  def expand
@@ -1,66 +1,66 @@
1
- require 'albacore/support/albacore_helper'
2
-
3
- class MSBuild
4
- include RunCommand
5
- include YAMLConfig
6
- include Logging
7
-
8
- attr_accessor :solution, :verbosity
9
-
10
- def initialize
11
- super()
12
- @path_to_command = build_path_to_command
13
- end
14
-
15
- def build_path_to_command
16
- win_dir = ENV['windir'] || ENV['WINDIR']
17
- win_dir = 'C:/Windows' if win_dir.nil?
18
-
19
- File.join(win_dir.dup, 'Microsoft.NET', 'Framework', 'v3.5', 'MSBuild.exe')
20
- end
21
-
22
- def targets(targets)
23
- @targets=targets
24
- end
25
-
26
- def properties=(properties)
27
- @properties = properties
28
- end
29
-
30
- def build
31
- build_solution(@solution)
32
- end
33
-
34
- def build_solution(solution)
35
- check_solution solution
36
-
37
- command_parameters = []
38
- command_parameters << "\"#{solution}\""
39
- command_parameters << "\"/verbosity:#{@verbosity}\"" if @verbosity != nil
40
- command_parameters << build_properties if @properties != nil
41
- command_parameters << "\"/target:#{build_targets}\"" if @targets != nil
42
-
43
- result = run_command "MSBuild", command_parameters.join(" ")
44
-
45
- failure_message = 'MSBuild Failed. See Build Log For Detail'
46
- fail_with_message failure_message if !result
47
- end
48
-
49
- def check_solution(file)
50
- return if file
51
- msg = 'solution cannot be nil'
52
- fail_with_message msg
53
- end
54
-
55
- def build_targets
56
- @targets.join ";"
57
- end
58
-
59
- def build_properties
60
- option_text = []
61
- @properties.each do |key, value|
62
- option_text << "/p:#{key}\=\"#{value}\""
63
- end
64
- option_text.join(" ")
65
- end
66
- end
1
+ require 'albacore/support/albacore_helper'
2
+
3
+ class MSBuild
4
+ include RunCommand
5
+ include YAMLConfig
6
+ include Logging
7
+
8
+ attr_accessor :solution, :verbosity
9
+
10
+ def initialize
11
+ @path_to_command = build_path_to_command
12
+ super()
13
+ end
14
+
15
+ def build_path_to_command
16
+ win_dir = ENV['windir'] || ENV['WINDIR']
17
+ win_dir = 'C:/Windows' if win_dir.nil?
18
+
19
+ File.join(win_dir.dup, 'Microsoft.NET', 'Framework', 'v3.5', 'MSBuild.exe')
20
+ end
21
+
22
+ def targets(targets)
23
+ @targets=targets
24
+ end
25
+
26
+ def properties=(properties)
27
+ @properties = properties
28
+ end
29
+
30
+ def build
31
+ build_solution(@solution)
32
+ end
33
+
34
+ def build_solution(solution)
35
+ check_solution solution
36
+
37
+ command_parameters = []
38
+ command_parameters << "\"#{solution}\""
39
+ command_parameters << "\"/verbosity:#{@verbosity}\"" if @verbosity != nil
40
+ command_parameters << build_properties if @properties != nil
41
+ command_parameters << "\"/target:#{build_targets}\"" if @targets != nil
42
+
43
+ result = run_command "MSBuild", command_parameters.join(" ")
44
+
45
+ failure_message = 'MSBuild Failed. See Build Log For Detail'
46
+ fail_with_message failure_message if !result
47
+ end
48
+
49
+ def check_solution(file)
50
+ return if file
51
+ msg = 'solution cannot be nil'
52
+ fail_with_message msg
53
+ end
54
+
55
+ def build_targets
56
+ @targets.join ";"
57
+ end
58
+
59
+ def build_properties
60
+ option_text = []
61
+ @properties.each do |key, value|
62
+ option_text << "/p:#{key}\=\"#{value}\""
63
+ end
64
+ option_text.join(" ")
65
+ end
66
+ end
@@ -7,9 +7,9 @@ class MSpecTestRunner
7
7
  attr_accessor :assemblies, :path_to_command, :html_output, :options
8
8
 
9
9
  def initialize(path_to_command='')
10
- super()
11
10
  @path_to_command = path_to_command
12
11
  @assemblies=[]
12
+ super()
13
13
  end
14
14
 
15
15
  def get_command_line
@@ -8,12 +8,12 @@ class NCoverConsole
8
8
  attr_accessor :ignore_assemblies, :coverage
9
9
 
10
10
  def initialize
11
- super()
12
11
  @output = {}
13
12
  @testrunner_args = []
14
13
  @cover_assemblies = []
15
14
  @ignore_assemblies = []
16
15
  @coverage = []
16
+ super()
17
17
  end
18
18
 
19
19
  def working_directory=(working_dir)
@@ -8,11 +8,11 @@ class NCoverReport
8
8
  attr_accessor :coverage_files, :reports, :required_coverage, :filters
9
9
 
10
10
  def initialize
11
- super()
12
11
  @coverage_files = []
13
12
  @reports = []
14
13
  @required_coverage = []
15
14
  @filters = []
15
+ super()
16
16
  end
17
17
 
18
18
  def run
@@ -7,11 +7,11 @@ module NCover
7
7
  attr_accessor :coverage_type, :minimum, :item_type
8
8
 
9
9
  def initialize(coverage_type, params={})
10
- super()
11
10
  @coverage_type = coverage_type
12
11
  @minimum = 0
13
12
  @item_type = :View
14
13
  parse_config(params) unless params.nil?
14
+ super()
15
15
  end
16
16
 
17
17
  def get_coverage_options
@@ -7,10 +7,10 @@ module NCover
7
7
  attr_accessor :maximum, :item_type
8
8
 
9
9
  def initialize(params={})
10
- super()
11
10
  @maximum = 100
12
11
  @item_type = :View
13
12
  parse_config(params) unless params.nil?
13
+ super()
14
14
  end
15
15
 
16
16
  def get_coverage_options
@@ -7,12 +7,12 @@ module NCover
7
7
  attr_accessor :filter, :filter_type, :item_type, :is_regex
8
8
 
9
9
  def initialize(item_type, params={})
10
- super()
11
10
  @filter = ""
12
11
  @item_type = item_type
13
12
  @is_regex = false
14
13
  @filter_type = :exclude
15
14
  parse_config(params) unless params.nil?
15
+ super()
16
16
  end
17
17
 
18
18
  def get_filter_options
@@ -7,8 +7,8 @@ module NCover
7
7
  attr_accessor :output_path
8
8
 
9
9
  def initialize
10
- super()
11
10
  @report_format = :Xml
11
+ super()
12
12
  end
13
13
 
14
14
  def report_type
@@ -7,10 +7,10 @@ class NUnitTestRunner
7
7
  attr_accessor :path_to_command, :assemblies, :options
8
8
 
9
9
  def initialize(path_to_command='')
10
- super()
11
10
  @path_to_command = path_to_command
12
11
  @options=[]
13
12
  @assemblies=[]
13
+ super()
14
14
  end
15
15
 
16
16
  def get_command_line
@@ -8,8 +8,8 @@ class Sftp
8
8
  attr_accessor :server, :username, :password, :upload_files, :port, :key, :debug
9
9
 
10
10
  def initialize
11
- super()
12
11
  @upload_files = {}
12
+ super()
13
13
  end
14
14
 
15
15
  def get_connection_options
@@ -7,10 +7,10 @@ class SQLCmd
7
7
  attr_accessor :server, :database, :username, :password, :scripts, :variables
8
8
 
9
9
  def initialize
10
- super()
11
10
  @require_valid_command = false
12
11
  @scripts=[]
13
12
  @variables={}
13
+ super()
14
14
  end
15
15
 
16
16
  def run
@@ -8,8 +8,8 @@ class Ssh
8
8
  attr_accessor :server, :username, :password, :commands, :port, :key, :debug
9
9
 
10
10
  def initialize
11
- super()
12
11
  @commands = []
12
+ super()
13
13
  end
14
14
 
15
15
  def get_connection_options
@@ -7,9 +7,9 @@ class XUnitTestRunner
7
7
  attr_accessor :assemblies, :path_to_command, :html_output, :options
8
8
 
9
9
  def initialize(path_to_command='')
10
- super()
11
10
  @path_to_command = path_to_command
12
11
  @assemblies=[]
12
+ super()
13
13
  end
14
14
 
15
15
  def get_command_line
@@ -12,8 +12,8 @@ class ZipDirectory
12
12
  attr_accessor :flatten_zip
13
13
 
14
14
  def initialize
15
- super()
16
15
  @flatten_zip = true
16
+ super()
17
17
  end
18
18
 
19
19
  def package()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derick Bailey
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-12-04 00:00:00 -06:00
14
+ date: 2009-12-31 00:00:00 -06:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency