albacore 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile CHANGED
@@ -2,3 +2,9 @@
2
2
  #ruby-gemset=albacore
3
3
  source 'http://rubygems.org'
4
4
  gemspec
5
+ gem 'nokogiri'
6
+ gem 'jekyll'
7
+ gem 'guard'
8
+ gem 'guard-rspec'
9
+ gem 'rake'
10
+ gem 'rspec'
data/Guardfile ADDED
@@ -0,0 +1,9 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rspec', :version => 2 do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+ end
9
+
data/Rakefile CHANGED
@@ -1,39 +1,25 @@
1
- require 'bundler'
1
+ require 'bundler/setup'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
- task :default => ['specs:all']
4
+ task :default => :'specs:all'
5
5
 
6
6
  namespace :specs do
7
7
  require 'rspec/core/rake_task'
8
8
 
9
- @rspec_opts = ['--colour --format documentation']
9
+ desc "Run all specs"
10
+ RSpec::Core::RakeTask.new(:all)
10
11
 
11
- desc "Run all specs for albacore"
12
- RSpec::Core::RakeTask.new :all do |t|
13
- t.pattern = 'spec/**/*_spec.rb'
14
- t.rspec_opts = @rspec_opts
15
- end
16
-
17
- exceptNCov = []
18
12
  # generate tasks for each *_spec.rb file in the root spec folder
13
+ exceptNCov = []
19
14
  FileList['spec/*_spec.rb'].each do |fname|
20
15
  spec = $1 if /spec\/(.+)_spec\.rb/ =~ fname
21
16
  exceptNCov << spec unless /ncover|ndepend/ =~ spec
22
- desc "Run #{spec} specs"
17
+ desc "Run the #{spec} spec"
23
18
  RSpec::Core::RakeTask.new spec do |t|
24
19
  t.pattern = "spec/#{spec}*_spec.rb"
25
- t.rspec_opts = @spec_opts
26
20
  end
27
21
  end
28
22
 
29
- #quick hack to run all specs not in ncover or ndepend, to evaluate changes
30
- desc "excludes ncover and ndepend specs"
23
+ desc "Run specs:all except :ncover, :ndepend"
31
24
  task :except_ncover => exceptNCov
32
-
33
- desc "MSDeploy functional specs"
34
- RSpec::Core::RakeTask.new :msdeploy do |t|
35
- t.pattern = 'spec/msdeploy*_spec.rb'
36
- t.rspec_opts = @rspec_opts
37
- end
38
-
39
25
  end
data/albacore.gemspec CHANGED
@@ -13,12 +13,6 @@ Gem::Specification.new do |s|
13
13
  s.summary = 'Dolphin-safe and awesome Mono and .Net Rake-tasks'
14
14
  s.description = 'Easily build your .Net or Mono project using this collection of Rake tasks.'
15
15
 
16
- s.add_development_dependency 'nokogiri'
17
- s.add_development_dependency 'jekyll'
18
- s.add_development_dependency 'guard'
19
- s.add_development_dependency 'guard-rspec'
20
- s.add_development_dependency 'rake'
21
- s.add_development_dependency 'rspec'
22
16
  s.add_dependency 'rubyzip'
23
17
 
24
18
  s.rubyforge_project = 'albacore'
@@ -6,7 +6,7 @@ class MSBuild
6
6
  include Albacore::RunCommand
7
7
  include Configuration::MSBuild
8
8
 
9
- attr_accessor :solution, :verbosity, :loggermodule
9
+ attr_accessor :solution, :verbosity, :loggermodule, :max_cpu_count
10
10
  attr_array :targets
11
11
  attr_hash :properties
12
12
 
@@ -18,6 +18,10 @@ class MSBuild
18
18
  def execute
19
19
  build_solution(@solution)
20
20
  end
21
+
22
+ def nologo
23
+ @nologo = true
24
+ end
21
25
 
22
26
  def build_solution(solution)
23
27
  check_solution solution
@@ -26,6 +30,8 @@ class MSBuild
26
30
  command_parameters << "\"#{solution}\""
27
31
  command_parameters << "\"/verbosity:#{@verbosity}\"" if @verbosity != nil
28
32
  command_parameters << "\"/logger:#{@loggermodule}\"" if @loggermodule != nil
33
+ command_parameters << "\"/maxcpucount:#{@max_cpu_count}\"" if @max_cpu_count != nil
34
+ command_parameters << "\"/nologo\"" if @nologo
29
35
  command_parameters << build_properties if @properties != nil
30
36
  command_parameters << "\"/target:#{build_targets}\"" if @targets != nil
31
37
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
data/spec/msbuild_spec.rb CHANGED
@@ -216,4 +216,31 @@ describe MSBuild, "when specifying a loggermodule" do
216
216
  end
217
217
  end
218
218
 
219
+ describe MSBuild, "when specifying nologo" do
220
+ include_context "prepping msbuild"
221
+
222
+ before :all do
223
+ @msbuild.nologo
224
+ @msbuild.solution = @testdata.solution_path
225
+ @msbuild.execute
226
+ end
227
+
228
+ it "should call msbuild with nologo option" do
229
+ @msbuild.system_command.should include("/nologo")
230
+ end
231
+ end
232
+
233
+ describe MSBuild, "when specifying max cpu count" do
234
+ include_context "prepping msbuild"
235
+
236
+ before :all do
237
+ @msbuild.max_cpu_count = 2
238
+ @msbuild.solution = @testdata.solution_path
239
+ @msbuild.execute
240
+ end
241
+
242
+ it "should call msbuild with maxcpucount option set" do
243
+ @msbuild.system_command.should include("/maxcpucount:2")
244
+ end
245
+ end
219
246
 
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.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,77 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-05 00:00:00.000000000 Z
13
+ date: 2012-09-10 00:00:00.000000000Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: nokogiri
17
- requirement: &25040940 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :development
24
- prerelease: false
25
- version_requirements: *25040940
26
- - !ruby/object:Gem::Dependency
27
- name: jekyll
28
- requirement: &25040568 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: *25040568
37
- - !ruby/object:Gem::Dependency
38
- name: guard
39
- requirement: &25040184 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
45
- type: :development
46
- prerelease: false
47
- version_requirements: *25040184
48
- - !ruby/object:Gem::Dependency
49
- name: guard-rspec
50
- requirement: &25039752 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- type: :development
57
- prerelease: false
58
- version_requirements: *25039752
59
- - !ruby/object:Gem::Dependency
60
- name: rake
61
- requirement: &25039488 !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: *25039488
70
- - !ruby/object:Gem::Dependency
71
- name: rspec
72
- requirement: &25039200 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :development
79
- prerelease: false
80
- version_requirements: *25039200
81
15
  - !ruby/object:Gem::Dependency
82
16
  name: rubyzip
83
- requirement: &25038804 !ruby/object:Gem::Requirement
17
+ requirement: &22238760 !ruby/object:Gem::Requirement
84
18
  none: false
85
19
  requirements:
86
20
  - - ! '>='
@@ -88,7 +22,7 @@ dependencies:
88
22
  version: '0'
89
23
  type: :runtime
90
24
  prerelease: false
91
- version_requirements: *25038804
25
+ version_requirements: *22238760
92
26
  description: Easily build your .Net or Mono project using this collection of Rake
93
27
  tasks.
94
28
  email: henrik@haf.se
@@ -96,11 +30,12 @@ executables: []
96
30
  extensions: []
97
31
  extra_rdoc_files: []
98
32
  files:
99
- - .autotest
100
33
  - .gitignore
34
+ - .rspec
101
35
  - .rvmrc
102
36
  - .travis.yml
103
37
  - Gemfile
38
+ - Guardfile
104
39
  - README.markdown
105
40
  - Rakefile
106
41
  - albacore.gemspec
@@ -755,15 +690,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
755
690
  - - ! '>='
756
691
  - !ruby/object:Gem::Version
757
692
  version: '0'
693
+ segments:
694
+ - 0
695
+ hash: 16372145
758
696
  required_rubygems_version: !ruby/object:Gem::Requirement
759
697
  none: false
760
698
  requirements:
761
699
  - - ! '>='
762
700
  - !ruby/object:Gem::Version
763
701
  version: '0'
702
+ segments:
703
+ - 0
704
+ hash: 16372145
764
705
  requirements: []
765
706
  rubyforge_project: albacore
766
- rubygems_version: 1.8.16
707
+ rubygems_version: 1.7.2
767
708
  signing_key:
768
709
  specification_version: 3
769
710
  summary: Dolphin-safe and awesome Mono and .Net Rake-tasks
data/.autotest DELETED
@@ -1,4 +0,0 @@
1
- Autotest.add_hook :initialize do |at|
2
- %w{.git rakefile spec/spec.opts spec/support .autotest .DS_Store }.each {|exception|at.add_exception(exception)}
3
- end
4
-