albacore 0.2.0.preview2 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.rvmrc +1 -0
  2. data/Gemfile +11 -0
  3. data/Gemfile.lock +43 -0
  4. data/README.markdown +1 -0
  5. data/VERSION +1 -1
  6. data/lib/albacore/albacoretask.rb +32 -25
  7. data/lib/albacore/aspnetcompiler.rb +58 -0
  8. data/lib/albacore/assemblyinfo.rb +1 -1
  9. data/lib/albacore/config/aspnetcompilerconfig.rb +29 -0
  10. data/lib/albacore/csc.rb +2 -2
  11. data/lib/albacore/docu.rb +3 -2
  12. data/lib/albacore/exec.rb +2 -2
  13. data/lib/albacore/msbuild.rb +2 -2
  14. data/lib/albacore/mspectestrunner.rb +3 -3
  15. data/lib/albacore/nant.rb +2 -2
  16. data/lib/albacore/ncoverconsole.rb +2 -2
  17. data/lib/albacore/ncoverreport.rb +2 -2
  18. data/lib/albacore/ndepend.rb +2 -2
  19. data/lib/albacore/nunittestrunner.rb +2 -2
  20. data/lib/albacore/plink.rb +47 -0
  21. data/lib/albacore/specflowreport.rb +2 -2
  22. data/lib/albacore/sqlcmd.rb +2 -2
  23. data/lib/albacore/support/attrmethods.rb +9 -8
  24. data/lib/albacore/support/runcommand.rb +37 -35
  25. data/lib/albacore/unzip.rb +1 -1
  26. data/lib/albacore/xbuild.rb +2 -2
  27. data/lib/albacore/xunittestrunner.rb +3 -3
  28. data/lib/albacore/zipdirectory.rb +1 -1
  29. data/rakefile.rb +1 -6
  30. data/spec/albacoremodel_spec.rb +3 -3
  31. data/spec/assemblyinfo_spec.rb +3 -3
  32. data/spec/attrmethods_spec.rb +21 -1
  33. data/spec/config_spec.rb +2 -2
  34. data/spec/createtask_spec.rb +4 -4
  35. data/spec/csc_spec.rb +1 -1
  36. data/spec/docu_spec.rb +1 -1
  37. data/spec/exec_spec.rb +1 -1
  38. data/spec/msbuild_spec.rb +1 -1
  39. data/spec/mspec_spec.rb +1 -1
  40. data/spec/nant_spec.rb +1 -1
  41. data/spec/ncoverconsole_spec.rb +2 -7
  42. data/spec/ncoverreport_spec.rb +5 -5
  43. data/spec/ndepend_spec.rb +1 -1
  44. data/spec/nunittestrunner_spec.rb +1 -1
  45. data/spec/plink_spec.rb +62 -0
  46. data/spec/runcommand_spec.rb +3 -3
  47. data/spec/{support/spec_helper.rb → spec_helper.rb} +2 -1
  48. data/spec/specflowreport_spec.rb +1 -1
  49. data/spec/sqlcmd_spec.rb +3 -3
  50. data/spec/unzip_spec.rb +1 -1
  51. data/spec/xbuild_spec.rb +1 -1
  52. data/spec/xunit_spec.rb +1 -1
  53. data/spec/yamlconfig_spec.rb +8 -8
  54. data/spec/zip_spec.rb +1 -1
  55. metadata +98 -62
  56. data/install_dependencies.rb +0 -32
@@ -1,5 +1,6 @@
1
- @root_dir = File.expand_path(File.join(File.dirname(__FILE__), "../../"))
1
+ @root_dir = File.expand_path(File.join(File.dirname(__FILE__), "../"))
2
2
 
3
+ $: << './'
3
4
  $: << File.join(@root_dir, "lib")
4
5
  $: << File.join(@root_dir, "spec")
5
6
  $: << File.join(@root_dir, "spec/patches")
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/specflowreport'
3
3
  require 'albacore/nunittestrunner'
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/sqlcmd'
3
3
 
4
4
  describe SQLCmd, "when running a script the easy way" do
@@ -34,7 +34,7 @@ describe SQLCmd, "when running a script the easy way" do
34
34
  end
35
35
 
36
36
  it "should find the location of the sqlcmd exe for the user" do
37
- @cmd.system_command.should include("SQLCMD.EXE")
37
+ @cmd.system_command.downcase.should include("sqlcmd.exe")
38
38
  end
39
39
 
40
40
  it "should specify the script file" do
@@ -110,7 +110,7 @@ describe SQLCmd, "when running a script file against a database with authenticat
110
110
  end
111
111
 
112
112
  it "should specify the location of the sqlcmd exe" do
113
- @cmd.system_command.should include("SQLCMD.EXE")
113
+ @cmd.system_command.downcase.should include("sqlcmd.exe")
114
114
  end
115
115
 
116
116
  it "should specify the script file" do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/unzip'
3
3
 
4
4
  describe Unzip, "when providing configuration" do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/xbuild'
3
3
 
4
4
  describe XBuild, "when providing configuration values" do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/xunittestrunner'
3
3
 
4
4
  shared_examples_for "xunit paths" do
@@ -1,12 +1,12 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/albacoretask'
3
3
 
4
- class YamlTest
5
- include AlbacoreTask
4
+ class ::YamlTest
5
+ include Albacore::Task
6
6
  attr_accessor :some_name, :another_name, :a_hash, :what_ever
7
7
  end
8
8
 
9
- describe YAMLConfig, "when configuring with yaml" do
9
+ describe "when configuring with yaml" do
10
10
  before :all do
11
11
  @yml = YamlTest.new
12
12
  @yml.configure File.join(File.dirname(__FILE__), 'support', 'test.yml')
@@ -31,14 +31,14 @@ describe YAMLConfig, "when configuring with yaml" do
31
31
  end
32
32
  end
33
33
 
34
- describe YAMLConfig, "when specifying a yaml config folder and configuring" do
35
- class YAML_AutoConfig_Test
36
- include AlbacoreTask
34
+ describe "when specifying a yaml config folder and configuring" do
35
+ class ::YAML_AutoConfig_Test
36
+ include Albacore::Task
37
37
  attr_accessor :some_attribute
38
38
  end
39
39
 
40
40
  before :all do
41
- Albacore.configure.yaml_config_folder = File.join(File.dirname(__FILE__), 'support', 'yamlconfig')
41
+ Albacore.configure.yaml_config_folder = File.join(File.dirname(__FILE__), 'support', 'yamlconfig')
42
42
  @yamltest = YAML_AutoConfig_Test.new
43
43
  @yamltest.load_config_by_task_name("yaml_autoconfig_test")
44
44
  end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'support', 'spec_helper')
1
+ require 'spec_helper'
2
2
  require 'albacore/zipdirectory'
3
3
  require 'albacore/unzip'
4
4
  require 'ziptestdata'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: albacore
3
3
  version: !ruby/object:Gem::Version
4
- hash: 221741756
5
- prerelease: true
4
+ hash: 19
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- - preview2
11
- version: 0.2.0.preview2
9
+ - 2
10
+ version: 0.2.2
12
11
  platform: ruby
13
12
  authors:
14
13
  - Derick Bailey
@@ -19,16 +18,17 @@ autorequire:
19
18
  bindir: bin
20
19
  cert_chain: []
21
20
 
22
- date: 2010-08-06 00:00:00 -05:00
21
+ date: 2010-12-07 00:00:00 -06:00
23
22
  default_executable:
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency
26
- name: rake
25
+ type: :development
27
26
  prerelease: false
28
- requirement: &id001 !ruby/object:Gem::Requirement
27
+ name: rake
28
+ version_requirements: &id001 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
- - - ">="
31
+ - - "="
32
32
  - !ruby/object:Gem::Version
33
33
  hash: 49
34
34
  segments:
@@ -36,15 +36,15 @@ dependencies:
36
36
  - 8
37
37
  - 7
38
38
  version: 0.8.7
39
- type: :runtime
40
- version_requirements: *id001
39
+ requirement: *id001
41
40
  - !ruby/object:Gem::Dependency
42
- name: rubyzip
41
+ type: :development
43
42
  prerelease: false
44
- requirement: &id002 !ruby/object:Gem::Requirement
43
+ name: rubyzip
44
+ version_requirements: &id002 !ruby/object:Gem::Requirement
45
45
  none: false
46
46
  requirements:
47
- - - ">="
47
+ - - "="
48
48
  - !ruby/object:Gem::Version
49
49
  hash: 51
50
50
  segments:
@@ -52,47 +52,47 @@ dependencies:
52
52
  - 9
53
53
  - 4
54
54
  version: 0.9.4
55
- type: :runtime
56
- version_requirements: *id002
55
+ requirement: *id002
57
56
  - !ruby/object:Gem::Dependency
58
- name: rspec
57
+ type: :development
59
58
  prerelease: false
60
- requirement: &id003 !ruby/object:Gem::Requirement
59
+ name: jeweler
60
+ version_requirements: &id003 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ">="
63
+ - - "="
64
64
  - !ruby/object:Gem::Version
65
- hash: 27
65
+ hash: 7
66
66
  segments:
67
67
  - 1
68
- - 3
68
+ - 4
69
69
  - 0
70
- version: 1.3.0
71
- type: :development
72
- version_requirements: *id003
70
+ version: 1.4.0
71
+ requirement: *id003
73
72
  - !ruby/object:Gem::Dependency
74
- name: jeweler
73
+ type: :development
75
74
  prerelease: false
76
- requirement: &id004 !ruby/object:Gem::Requirement
75
+ name: rspec
76
+ version_requirements: &id004 !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
79
- - - ">="
79
+ - - "="
80
80
  - !ruby/object:Gem::Version
81
- hash: 7
81
+ hash: 13
82
82
  segments:
83
83
  - 1
84
- - 4
85
- - 0
86
- version: 1.4.0
87
- type: :development
88
- version_requirements: *id004
84
+ - 2
85
+ - 9
86
+ version: 1.2.9
87
+ requirement: *id004
89
88
  - !ruby/object:Gem::Dependency
90
- name: derickbailey-notamock
89
+ type: :development
91
90
  prerelease: false
92
- requirement: &id005 !ruby/object:Gem::Requirement
91
+ name: derickbailey-notamock
92
+ version_requirements: &id005 !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements:
95
- - - ">="
95
+ - - "="
96
96
  - !ruby/object:Gem::Version
97
97
  hash: 29
98
98
  segments:
@@ -100,39 +100,70 @@ dependencies:
100
100
  - 0
101
101
  - 1
102
102
  version: 0.0.1
103
- type: :development
104
- version_requirements: *id005
103
+ requirement: *id005
105
104
  - !ruby/object:Gem::Dependency
105
+ type: :development
106
+ prerelease: false
106
107
  name: jekyll
108
+ version_requirements: &id006 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - "="
112
+ - !ruby/object:Gem::Version
113
+ hash: 63
114
+ segments:
115
+ - 0
116
+ - 8
117
+ - 0
118
+ version: 0.8.0
119
+ requirement: *id006
120
+ - !ruby/object:Gem::Dependency
121
+ type: :development
107
122
  prerelease: false
108
- requirement: &id006 !ruby/object:Gem::Requirement
123
+ name: watchr
124
+ version_requirements: &id007 !ruby/object:Gem::Requirement
109
125
  none: false
110
126
  requirements:
111
- - - ">="
127
+ - - "="
112
128
  - !ruby/object:Gem::Version
113
129
  hash: 5
114
130
  segments:
115
131
  - 0
116
- - 5
117
132
  - 7
118
- version: 0.5.7
119
- type: :development
120
- version_requirements: *id006
133
+ version: "0.7"
134
+ requirement: *id007
121
135
  - !ruby/object:Gem::Dependency
122
- name: watchr
136
+ type: :runtime
123
137
  prerelease: false
124
- requirement: &id007 !ruby/object:Gem::Requirement
138
+ name: rake
139
+ version_requirements: &id008 !ruby/object:Gem::Requirement
125
140
  none: false
126
141
  requirements:
127
142
  - - ">="
128
143
  - !ruby/object:Gem::Version
129
- hash: 7
144
+ hash: 49
130
145
  segments:
131
146
  - 0
132
- - 6
133
- version: "0.6"
134
- type: :development
135
- version_requirements: *id007
147
+ - 8
148
+ - 7
149
+ version: 0.8.7
150
+ requirement: *id008
151
+ - !ruby/object:Gem::Dependency
152
+ type: :runtime
153
+ prerelease: false
154
+ name: rubyzip
155
+ version_requirements: &id009 !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ hash: 51
161
+ segments:
162
+ - 0
163
+ - 9
164
+ - 4
165
+ version: 0.9.4
166
+ requirement: *id009
136
167
  description: Easily build your .NET solutions with Ruby and Rake, using this suite of Rake tasks.
137
168
  email: derickbailey@gmail.com
138
169
  executables: []
@@ -143,15 +174,19 @@ extra_rdoc_files:
143
174
  - README.markdown
144
175
  files:
145
176
  - .autotest
177
+ - .rvmrc
146
178
  - EULA.txt
179
+ - Gemfile
180
+ - Gemfile.lock
147
181
  - README.markdown
148
182
  - VERSION
149
- - install_dependencies.rb
150
183
  - lib/albacore.rb
151
184
  - lib/albacore/albacoretask.rb
185
+ - lib/albacore/aspnetcompiler.rb
152
186
  - lib/albacore/assemblyinfo.rb
153
187
  - lib/albacore/assemblyinfolanguages/csharpengine.rb
154
188
  - lib/albacore/assemblyinfolanguages/vbnetengine.rb
189
+ - lib/albacore/config/aspnetcompilerconfig.rb
155
190
  - lib/albacore/config/assemblyinfoconfig.rb
156
191
  - lib/albacore/config/config.rb
157
192
  - lib/albacore/config/cscconfig.rb
@@ -194,6 +229,7 @@ files:
194
229
  - lib/albacore/ncoverreports/symbolcoverage.rb
195
230
  - lib/albacore/ndepend.rb
196
231
  - lib/albacore/nunittestrunner.rb
232
+ - lib/albacore/plink.rb
197
233
  - lib/albacore/specflowreport.rb
198
234
  - lib/albacore/sqlcmd.rb
199
235
  - lib/albacore/support/attrmethods.rb
@@ -230,7 +266,9 @@ files:
230
266
  - spec/patches/docu_patch.rb
231
267
  - spec/patches/fail_patch.rb
232
268
  - spec/patches/system_patch.rb
269
+ - spec/plink_spec.rb
233
270
  - spec/runcommand_spec.rb
271
+ - spec/spec_helper.rb
234
272
  - spec/specflowreport_spec.rb
235
273
  - spec/sqlcmd_spec.rb
236
274
  - spec/support/assemblyinfotester.rb
@@ -238,7 +276,6 @@ files:
238
276
  - spec/support/nanttestdata.rb
239
277
  - spec/support/ncoverconsoletestdata.rb
240
278
  - spec/support/ncoverreporttestdata.rb
241
- - spec/support/spec_helper.rb
242
279
  - spec/support/ziptestdata.rb
243
280
  - spec/unzip_spec.rb
244
281
  - spec/xbuild_spec.rb
@@ -250,8 +287,8 @@ homepage: http://albacorebuild.net
250
287
  licenses: []
251
288
 
252
289
  post_install_message:
253
- rdoc_options:
254
- - --charset=UTF-8
290
+ rdoc_options: []
291
+
255
292
  require_paths:
256
293
  - lib
257
294
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -266,14 +303,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
266
303
  required_rubygems_version: !ruby/object:Gem::Requirement
267
304
  none: false
268
305
  requirements:
269
- - - ">"
306
+ - - ">="
270
307
  - !ruby/object:Gem::Version
271
- hash: 25
308
+ hash: 3
272
309
  segments:
273
- - 1
274
- - 3
275
- - 1
276
- version: 1.3.1
310
+ - 0
311
+ version: "0"
277
312
  requirements: []
278
313
 
279
314
  rubyforge_project:
@@ -300,7 +335,9 @@ test_files:
300
335
  - spec/patches/docu_patch.rb
301
336
  - spec/patches/fail_patch.rb
302
337
  - spec/patches/system_patch.rb
338
+ - spec/plink_spec.rb
303
339
  - spec/runcommand_spec.rb
340
+ - spec/spec_helper.rb
304
341
  - spec/specflowreport_spec.rb
305
342
  - spec/sqlcmd_spec.rb
306
343
  - spec/support/assemblyinfotester.rb
@@ -308,7 +345,6 @@ test_files:
308
345
  - spec/support/nanttestdata.rb
309
346
  - spec/support/ncoverconsoletestdata.rb
310
347
  - spec/support/ncoverreporttestdata.rb
311
- - spec/support/spec_helper.rb
312
348
  - spec/support/ziptestdata.rb
313
349
  - spec/unzip_spec.rb
314
350
  - spec/xbuild_spec.rb
@@ -1,32 +0,0 @@
1
- require 'rubygems'
2
- require 'rubygems/gem_runner'
3
- require 'rubygems/exceptions'
4
-
5
- #http://gist.github.com/236148
6
- required_version = Gem::Requirement.new "> 1.8.6"
7
-
8
- unless required_version.satisfied_by? Gem.ruby_version then
9
- abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
10
- end
11
-
12
- def install(lib)
13
- begin
14
- matches = Gem.source_index.find_name(lib)
15
- if matches.empty?
16
- puts "Installing #{lib}"
17
- Gem::GemRunner.new.run ['install', lib]
18
- else
19
- puts "Found #{lib} gem - skipping"
20
- end
21
- rescue Gem::SystemExitException => e
22
- end
23
- end
24
-
25
- puts "Installing required dependencies"
26
- install 'rake'
27
- install 'rubyzip'
28
- install 'jeweler'
29
- install 'rspec'
30
- install 'derickbailey-notamock'
31
- install 'jekyll'
32
- install 'watchr'