albacore 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/.autotest +4 -4
  2. data/.bundle/config +2 -2
  3. data/.rvmrc +1 -1
  4. data/Gemfile +12 -12
  5. data/README.markdown +92 -68
  6. data/VERSION +1 -1
  7. data/lib/albacore.rb +9 -9
  8. data/lib/albacore/albacoretask.rb +50 -50
  9. data/lib/albacore/aspnetcompiler.rb +58 -58
  10. data/lib/albacore/assemblyinfo.rb +140 -140
  11. data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +17 -0
  12. data/lib/albacore/assemblyinfolanguages/csharpengine.rb +18 -18
  13. data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +18 -18
  14. data/lib/albacore/config/aspnetcompilerconfig.rb +29 -29
  15. data/lib/albacore/config/assemblyinfoconfig.rb +13 -13
  16. data/lib/albacore/config/config.rb +22 -22
  17. data/lib/albacore/config/cscconfig.rb +28 -28
  18. data/lib/albacore/config/docuconfig.rb +23 -23
  19. data/lib/albacore/config/execconfig.rb +15 -15
  20. data/lib/albacore/config/fluentmigratorrunnerconfig.rb +15 -15
  21. data/lib/albacore/config/msbuildconfig.rb +29 -29
  22. data/lib/albacore/config/mspectestrunnerconfig.rb +15 -15
  23. data/lib/albacore/config/mstesttestrunnerconfig.rb +15 -15
  24. data/lib/albacore/config/nantconfig.rb +15 -15
  25. data/lib/albacore/config/nchurnconfig.rb +15 -15
  26. data/lib/albacore/config/ncoverconsoleconfig.rb +15 -15
  27. data/lib/albacore/config/ncoverreportconfig.rb +15 -15
  28. data/lib/albacore/config/ndependconfig.rb +15 -15
  29. data/lib/albacore/config/netversion.rb +21 -21
  30. data/lib/albacore/config/nugetpackconfig.rb +3 -3
  31. data/lib/albacore/config/nugetpublishconfig.rb +19 -0
  32. data/lib/albacore/config/nugetpushconfig.rb +19 -0
  33. data/lib/albacore/config/nunittestrunnerconfig.rb +14 -14
  34. data/lib/albacore/config/specflowreportconfig.rb +24 -24
  35. data/lib/albacore/config/sqlcmdconfig.rb +15 -15
  36. data/lib/albacore/config/unzipconfig.rb +15 -15
  37. data/lib/albacore/config/vssgetconfig.rb +14 -0
  38. data/lib/albacore/config/xbuildconfig.rb +15 -15
  39. data/lib/albacore/config/xunittestrunnerconfig.rb +15 -15
  40. data/lib/albacore/config/zipdirectoryconfig.rb +15 -15
  41. data/lib/albacore/csc.rb +66 -62
  42. data/lib/albacore/docu.rb +41 -41
  43. data/lib/albacore/exec.rb +18 -18
  44. data/lib/albacore/fluentmigratorrunner.rb +51 -46
  45. data/lib/albacore/msbuild.rb +55 -55
  46. data/lib/albacore/mspectestrunner.rb +50 -50
  47. data/lib/albacore/mstesttestrunner.rb +43 -43
  48. data/lib/albacore/nant.rb +38 -38
  49. data/lib/albacore/nchurn.rb +74 -74
  50. data/lib/albacore/ncoverconsole.rb +68 -68
  51. data/lib/albacore/ncoverreport.rb +62 -62
  52. data/lib/albacore/ncoverreports/assemblyfilter.rb +9 -9
  53. data/lib/albacore/ncoverreports/branchcoverage.rb +9 -9
  54. data/lib/albacore/ncoverreports/classfilter.rb +9 -9
  55. data/lib/albacore/ncoverreports/codecoveragebase.rb +25 -25
  56. data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +23 -23
  57. data/lib/albacore/ncoverreports/documentfilter.rb +9 -9
  58. data/lib/albacore/ncoverreports/fullcoveragereport.rb +13 -13
  59. data/lib/albacore/ncoverreports/methodcoverage.rb +9 -9
  60. data/lib/albacore/ncoverreports/methodfilter.rb +9 -9
  61. data/lib/albacore/ncoverreports/namespacefilter.rb +9 -9
  62. data/lib/albacore/ncoverreports/reportfilterbase.rb +26 -26
  63. data/lib/albacore/ncoverreports/summaryreport.rb +18 -18
  64. data/lib/albacore/ncoverreports/symbolcoverage.rb +9 -9
  65. data/lib/albacore/ndepend.rb +33 -33
  66. data/lib/albacore/nugetpublish.rb +47 -0
  67. data/lib/albacore/nugetpush.rb +46 -0
  68. data/lib/albacore/nunittestrunner.rb +41 -41
  69. data/lib/albacore/nuspec.rb +133 -109
  70. data/lib/albacore/output.rb +99 -99
  71. data/lib/albacore/plink.rb +47 -47
  72. data/lib/albacore/specflowreport.rb +62 -62
  73. data/lib/albacore/sqlcmd.rb +80 -80
  74. data/lib/albacore/support/attrmethods.rb +33 -33
  75. data/lib/albacore/support/createtask.rb +50 -30
  76. data/lib/albacore/support/failure.rb +15 -15
  77. data/lib/albacore/support/logging.rb +38 -38
  78. data/lib/albacore/support/openstruct.rb +13 -13
  79. data/lib/albacore/support/runcommand.rb +45 -45
  80. data/lib/albacore/support/supportlinux.rb +23 -23
  81. data/lib/albacore/support/updateattributes.rb +13 -13
  82. data/lib/albacore/support/yamlconfig.rb +18 -18
  83. data/lib/albacore/unzip.rb +28 -28
  84. data/lib/albacore/vssget.rb +44 -0
  85. data/lib/albacore/xbuild.rb +54 -54
  86. data/lib/albacore/xunittestrunner.rb +52 -52
  87. data/lib/albacore/zipdirectory.rb +105 -105
  88. data/rakefile.rb +297 -297
  89. data/spec/albacoremodel_spec.rb +53 -53
  90. data/spec/assemblyinfo_spec.rb +541 -541
  91. data/spec/attrmethods_spec.rb +136 -136
  92. data/spec/config_spec.rb +34 -34
  93. data/spec/createtask_spec.rb +236 -236
  94. data/spec/csc_spec.rb +253 -253
  95. data/spec/docu_spec.rb +109 -109
  96. data/spec/exec_spec.rb +45 -45
  97. data/spec/fluentmigratorrunner_spec.rb +254 -185
  98. data/spec/msbuild_spec.rb +215 -215
  99. data/spec/mspec_spec.rb +28 -28
  100. data/spec/mstesttestrunner_spec.rb +142 -142
  101. data/spec/nant_spec.rb +110 -110
  102. data/spec/nchurn_spec.rb +75 -75
  103. data/spec/ncoverconsole_spec.rb +353 -353
  104. data/spec/ncoverreport_spec.rb +619 -619
  105. data/spec/ndepend_spec.rb +72 -72
  106. data/spec/nunittestrunner_spec.rb +122 -122
  107. data/spec/nuspec_spec.rb +78 -78
  108. data/spec/patches/docu_patch.rb +12 -12
  109. data/spec/patches/fail_patch.rb +8 -8
  110. data/spec/patches/system_patch.rb +20 -20
  111. data/spec/plink_spec.rb +62 -62
  112. data/spec/runcommand_spec.rb +94 -94
  113. data/spec/spec_helper.rb +17 -17
  114. data/spec/specflowreport_spec.rb +146 -146
  115. data/spec/sqlcmd_spec.rb +334 -334
  116. data/spec/support/assemblyinfotester.rb +51 -51
  117. data/spec/support/ironruby_validator.rb +26 -26
  118. data/spec/support/msbuildtestdata.rb +32 -32
  119. data/spec/support/nanttestdata.rb +33 -33
  120. data/spec/support/ncoverconsoletestdata.rb +19 -19
  121. data/spec/support/ncoverreporttestdata.rb +26 -26
  122. data/spec/support/nokogiri_validator.rb +15 -15
  123. data/spec/support/outputtestdata.rb +12 -12
  124. data/spec/support/ziptestdata.rb +12 -12
  125. data/spec/unzip_spec.rb +15 -15
  126. data/spec/xbuild_spec.rb +15 -15
  127. data/spec/xunit_spec.rb +168 -168
  128. data/spec/yamlconfig_spec.rb +49 -49
  129. data/spec/zip_spec.rb +104 -104
  130. data/watchrtesting.rb +8 -8
  131. metadata +15 -119
@@ -1,104 +1,104 @@
1
- require 'spec_helper'
2
- require 'albacore/zipdirectory'
3
- require 'albacore/unzip'
4
- require 'ziptestdata'
5
-
6
- describe ZipDirectory, 'when zipping a directory of files' do
7
- before :each do
8
- zip = ZipDirectory.new
9
- zip.directories_to_zip ZipTestData.folder
10
- zip.output_file = "test.zip"
11
- zip.execute
12
- end
13
-
14
- it "should produce a zip file" do
15
- File.exist?(File.join(ZipTestData.folder, "test.zip")).should be_true
16
- end
17
- end
18
-
19
- describe ZipDirectory, 'when zipping a directory with string exclusions' do
20
- before :each do
21
- zip = ZipDirectory.new
22
- zip.directories_to_zip ZipTestData.folder
23
- zip.output_file = 'test.zip'
24
- zip.exclusions File.join(ZipTestData.folder, 'files', 'testfile.txt')
25
- zip.execute
26
-
27
- unzip = Unzip.new
28
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
29
- unzip.destination = ZipTestData.output_folder
30
- unzip.execute
31
- end
32
-
33
- after :each do
34
- FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
35
- end
36
-
37
- it 'should not zip files with the same name as any exclusions' do
38
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
39
- end
40
- end
41
-
42
- describe ZipDirectory, 'when zipping a directory of files with regexp exclusions' do
43
- before :each do
44
- zip = ZipDirectory.new
45
- zip.directories_to_zip ZipTestData.folder
46
- zip.output_file = 'test.zip'
47
- zip.exclusions /testfile/
48
- zip.execute
49
-
50
- unzip = Unzip.new
51
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
52
- unzip.destination = ZipTestData.output_folder
53
- unzip.execute
54
- end
55
-
56
- after :each do
57
- FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
58
- end
59
-
60
- it 'should not zip files that match any of the exclusions regexps' do
61
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
62
- end
63
- end
64
-
65
- describe ZipDirectory, 'when zipping a directory of files with glob string exclusions' do
66
- before :each do
67
- zip = ZipDirectory.new
68
- zip.directories_to_zip ZipTestData.folder
69
- zip.output_file = 'test.zip'
70
- zip.exclusions "**/subfolder/*"
71
- zip.execute
72
-
73
- unzip = Unzip.new
74
- unzip.file = File.join(ZipTestData.folder, 'test.zip')
75
- unzip.destination = ZipTestData.output_folder
76
- unzip.execute
77
- end
78
-
79
- after :each do
80
- FileUtils.rm_rf ZipTestData.output_folder if File.exists? ZipTestData.output_folder
81
- end
82
-
83
- it 'should not zip files that match the expanded globs' do
84
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder', 'sub file.txt')).should be_false
85
- end
86
-
87
- it 'should zip the files that don\'t match the globs' do
88
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder')).should be_true
89
- File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_true
90
- end
91
- end
92
-
93
- describe ZipDirectory, "when providing configuration" do
94
- let :zip do
95
- Albacore.configure do |config|
96
- config.zip.output_file = "configured"
97
- end
98
- zip = ZipDirectory.new
99
- end
100
-
101
- it "should use the configured values" do
102
- zip.output_file.should == "configured"
103
- end
104
- end
1
+ require 'spec_helper'
2
+ require 'albacore/zipdirectory'
3
+ require 'albacore/unzip'
4
+ require 'ziptestdata'
5
+
6
+ describe ZipDirectory, 'when zipping a directory of files' do
7
+ before :each do
8
+ zip = ZipDirectory.new
9
+ zip.directories_to_zip ZipTestData.folder
10
+ zip.output_file = "test.zip"
11
+ zip.execute
12
+ end
13
+
14
+ it "should produce a zip file" do
15
+ File.exist?(File.join(ZipTestData.folder, "test.zip")).should be_true
16
+ end
17
+ end
18
+
19
+ describe ZipDirectory, 'when zipping a directory with string exclusions' do
20
+ before :each do
21
+ zip = ZipDirectory.new
22
+ zip.directories_to_zip ZipTestData.folder
23
+ zip.output_file = 'test.zip'
24
+ zip.exclusions File.join(ZipTestData.folder, 'files', 'testfile.txt')
25
+ zip.execute
26
+
27
+ unzip = Unzip.new
28
+ unzip.file = File.join(ZipTestData.folder, 'test.zip')
29
+ unzip.destination = ZipTestData.output_folder
30
+ unzip.execute
31
+ end
32
+
33
+ after :each do
34
+ FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
35
+ end
36
+
37
+ it 'should not zip files with the same name as any exclusions' do
38
+ File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
39
+ end
40
+ end
41
+
42
+ describe ZipDirectory, 'when zipping a directory of files with regexp exclusions' do
43
+ before :each do
44
+ zip = ZipDirectory.new
45
+ zip.directories_to_zip ZipTestData.folder
46
+ zip.output_file = 'test.zip'
47
+ zip.exclusions /testfile/
48
+ zip.execute
49
+
50
+ unzip = Unzip.new
51
+ unzip.file = File.join(ZipTestData.folder, 'test.zip')
52
+ unzip.destination = ZipTestData.output_folder
53
+ unzip.execute
54
+ end
55
+
56
+ after :each do
57
+ FileUtils.rm_rf ZipTestData.output_folder if File.exist? ZipTestData.output_folder
58
+ end
59
+
60
+ it 'should not zip files that match any of the exclusions regexps' do
61
+ File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_false
62
+ end
63
+ end
64
+
65
+ describe ZipDirectory, 'when zipping a directory of files with glob string exclusions' do
66
+ before :each do
67
+ zip = ZipDirectory.new
68
+ zip.directories_to_zip ZipTestData.folder
69
+ zip.output_file = 'test.zip'
70
+ zip.exclusions "**/subfolder/*"
71
+ zip.execute
72
+
73
+ unzip = Unzip.new
74
+ unzip.file = File.join(ZipTestData.folder, 'test.zip')
75
+ unzip.destination = ZipTestData.output_folder
76
+ unzip.execute
77
+ end
78
+
79
+ after :each do
80
+ FileUtils.rm_rf ZipTestData.output_folder if File.exists? ZipTestData.output_folder
81
+ end
82
+
83
+ it 'should not zip files that match the expanded globs' do
84
+ File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder', 'sub file.txt')).should be_false
85
+ end
86
+
87
+ it 'should zip the files that don\'t match the globs' do
88
+ File.exist?(File.join(ZipTestData.output_folder, 'files', 'subfolder')).should be_true
89
+ File.exist?(File.join(ZipTestData.output_folder, 'files', 'testfile.txt')).should be_true
90
+ end
91
+ end
92
+
93
+ describe ZipDirectory, "when providing configuration" do
94
+ let :zip do
95
+ Albacore.configure do |config|
96
+ config.zip.output_file = "configured"
97
+ end
98
+ zip = ZipDirectory.new
99
+ end
100
+
101
+ it "should use the configured values" do
102
+ zip.output_file.should == "configured"
103
+ end
104
+ end
@@ -1,8 +1,8 @@
1
- watch("lib/albacore/.*\.rb") { |md|
2
- file = File.basename(md[0], ".rb")
3
- system "spec spec/#{file}_spec.rb"
4
- }
5
-
6
- watch("spec/.*_spec\.rb") { |md|
7
- system "spec #{md[0]}"
8
- }
1
+ watch("lib/albacore/.*\.rb") { |md|
2
+ file = File.basename(md[0], ".rb")
3
+ system "spec spec/#{file}_spec.rb"
4
+ }
5
+
6
+ watch("spec/.*_spec\.rb") { |md|
7
+ system "spec #{md[0]}"
8
+ }
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 5
9
- version: 0.2.5
4
+ prerelease:
5
+ version: 0.2.6
10
6
  platform: ruby
11
7
  authors:
12
8
  - Derick Bailey
@@ -15,113 +11,10 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-04-06 00:00:00 -05:00
14
+ date: 2011-06-29 00:00:00 -05:00
19
15
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rubyzip
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - "="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 9
31
- - 4
32
- version: 0.9.4
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: nokogiri
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - "="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 4
46
- - 4
47
- version: 1.4.4
48
- type: :development
49
- prerelease: false
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: version_bumper
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - "="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 3
61
- - 0
62
- version: 0.3.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: jeweler
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - "="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 4
76
- - 0
77
- version: 1.4.0
78
- type: :development
79
- prerelease: false
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - "="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 2
91
- - 9
92
- version: 1.2.9
93
- type: :development
94
- prerelease: false
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: jekyll
98
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - "="
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 0
105
- - 8
106
- - 0
107
- version: 0.8.0
108
- type: :development
109
- prerelease: false
110
- version_requirements: *id006
111
- - !ruby/object:Gem::Dependency
112
- name: watchr
113
- requirement: &id007 !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - "="
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
- - 7
121
- version: "0.7"
122
- type: :development
123
- prerelease: false
124
- version_requirements: *id007
16
+ dependencies: []
17
+
125
18
  description: Easily build your .NET solutions with Ruby and Rake, using this suite of Rake tasks.
126
19
  email: albacorebuild@gmail.com
127
20
  executables: []
@@ -141,6 +34,7 @@ files:
141
34
  - lib/albacore/albacoretask.rb
142
35
  - lib/albacore/aspnetcompiler.rb
143
36
  - lib/albacore/assemblyinfo.rb
37
+ - lib/albacore/assemblyinfolanguages/cppcliengine.rb
144
38
  - lib/albacore/assemblyinfolanguages/csharpengine.rb
145
39
  - lib/albacore/assemblyinfolanguages/vbnetengine.rb
146
40
  - lib/albacore/config/aspnetcompilerconfig.rb
@@ -160,10 +54,13 @@ files:
160
54
  - lib/albacore/config/ndependconfig.rb
161
55
  - lib/albacore/config/netversion.rb
162
56
  - lib/albacore/config/nugetpackconfig.rb
57
+ - lib/albacore/config/nugetpublishconfig.rb
58
+ - lib/albacore/config/nugetpushconfig.rb
163
59
  - lib/albacore/config/nunittestrunnerconfig.rb
164
60
  - lib/albacore/config/specflowreportconfig.rb
165
61
  - lib/albacore/config/sqlcmdconfig.rb
166
62
  - lib/albacore/config/unzipconfig.rb
63
+ - lib/albacore/config/vssgetconfig.rb
167
64
  - lib/albacore/config/xbuildconfig.rb
168
65
  - lib/albacore/config/xunittestrunnerconfig.rb
169
66
  - lib/albacore/config/zipdirectoryconfig.rb
@@ -193,6 +90,8 @@ files:
193
90
  - lib/albacore/ncoverreports/symbolcoverage.rb
194
91
  - lib/albacore/ndepend.rb
195
92
  - lib/albacore/nugetpack.rb
93
+ - lib/albacore/nugetpublish.rb
94
+ - lib/albacore/nugetpush.rb
196
95
  - lib/albacore/nunittestrunner.rb
197
96
  - lib/albacore/nuspec.rb
198
97
  - lib/albacore/output.rb
@@ -209,6 +108,7 @@ files:
209
108
  - lib/albacore/support/updateattributes.rb
210
109
  - lib/albacore/support/yamlconfig.rb
211
110
  - lib/albacore/unzip.rb
111
+ - lib/albacore/vssget.rb
212
112
  - lib/albacore/xbuild.rb
213
113
  - lib/albacore/xunittestrunner.rb
214
114
  - lib/albacore/zipdirectory.rb
@@ -262,8 +162,8 @@ homepage: http://albacorebuild.net
262
162
  licenses: []
263
163
 
264
164
  post_install_message:
265
- rdoc_options: []
266
-
165
+ rdoc_options:
166
+ - --charset=UTF-8
267
167
  require_paths:
268
168
  - lib
269
169
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -271,21 +171,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
271
171
  requirements:
272
172
  - - ">="
273
173
  - !ruby/object:Gem::Version
274
- segments:
275
- - 0
276
174
  version: "0"
277
175
  required_rubygems_version: !ruby/object:Gem::Requirement
278
176
  none: false
279
177
  requirements:
280
178
  - - ">="
281
179
  - !ruby/object:Gem::Version
282
- segments:
283
- - 0
284
180
  version: "0"
285
181
  requirements: []
286
182
 
287
183
  rubyforge_project:
288
- rubygems_version: 1.3.7
184
+ rubygems_version: 1.6.0
289
185
  signing_key:
290
186
  specification_version: 3
291
187
  summary: Dolphin-Safe Rake Tasks For .NET Systems