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.
- data/.rvmrc +1 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +43 -0
- data/README.markdown +1 -0
- data/VERSION +1 -1
- data/lib/albacore/albacoretask.rb +32 -25
- data/lib/albacore/aspnetcompiler.rb +58 -0
- data/lib/albacore/assemblyinfo.rb +1 -1
- data/lib/albacore/config/aspnetcompilerconfig.rb +29 -0
- data/lib/albacore/csc.rb +2 -2
- data/lib/albacore/docu.rb +3 -2
- data/lib/albacore/exec.rb +2 -2
- data/lib/albacore/msbuild.rb +2 -2
- data/lib/albacore/mspectestrunner.rb +3 -3
- data/lib/albacore/nant.rb +2 -2
- data/lib/albacore/ncoverconsole.rb +2 -2
- data/lib/albacore/ncoverreport.rb +2 -2
- data/lib/albacore/ndepend.rb +2 -2
- data/lib/albacore/nunittestrunner.rb +2 -2
- data/lib/albacore/plink.rb +47 -0
- data/lib/albacore/specflowreport.rb +2 -2
- data/lib/albacore/sqlcmd.rb +2 -2
- data/lib/albacore/support/attrmethods.rb +9 -8
- data/lib/albacore/support/runcommand.rb +37 -35
- data/lib/albacore/unzip.rb +1 -1
- data/lib/albacore/xbuild.rb +2 -2
- data/lib/albacore/xunittestrunner.rb +3 -3
- data/lib/albacore/zipdirectory.rb +1 -1
- data/rakefile.rb +1 -6
- data/spec/albacoremodel_spec.rb +3 -3
- data/spec/assemblyinfo_spec.rb +3 -3
- data/spec/attrmethods_spec.rb +21 -1
- data/spec/config_spec.rb +2 -2
- data/spec/createtask_spec.rb +4 -4
- data/spec/csc_spec.rb +1 -1
- data/spec/docu_spec.rb +1 -1
- data/spec/exec_spec.rb +1 -1
- data/spec/msbuild_spec.rb +1 -1
- data/spec/mspec_spec.rb +1 -1
- data/spec/nant_spec.rb +1 -1
- data/spec/ncoverconsole_spec.rb +2 -7
- data/spec/ncoverreport_spec.rb +5 -5
- data/spec/ndepend_spec.rb +1 -1
- data/spec/nunittestrunner_spec.rb +1 -1
- data/spec/plink_spec.rb +62 -0
- data/spec/runcommand_spec.rb +3 -3
- data/spec/{support/spec_helper.rb → spec_helper.rb} +2 -1
- data/spec/specflowreport_spec.rb +1 -1
- data/spec/sqlcmd_spec.rb +3 -3
- data/spec/unzip_spec.rb +1 -1
- data/spec/xbuild_spec.rb +1 -1
- data/spec/xunit_spec.rb +1 -1
- data/spec/yamlconfig_spec.rb +8 -8
- data/spec/zip_spec.rb +1 -1
- metadata +98 -62
- 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")
|
data/spec/specflowreport_spec.rb
CHANGED
data/spec/sqlcmd_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
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("
|
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("
|
113
|
+
@cmd.system_command.downcase.should include("sqlcmd.exe")
|
114
114
|
end
|
115
115
|
|
116
116
|
it "should specify the script file" do
|
data/spec/unzip_spec.rb
CHANGED
data/spec/xbuild_spec.rb
CHANGED
data/spec/xunit_spec.rb
CHANGED
data/spec/yamlconfig_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'albacore/albacoretask'
|
3
3
|
|
4
|
-
class YamlTest
|
5
|
-
include
|
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
|
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
|
35
|
-
class YAML_AutoConfig_Test
|
36
|
-
|
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
|
-
|
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
|
data/spec/zip_spec.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
|
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-
|
21
|
+
date: 2010-12-07 00:00:00 -06:00
|
23
22
|
default_executable:
|
24
23
|
dependencies:
|
25
24
|
- !ruby/object:Gem::Dependency
|
26
|
-
|
25
|
+
type: :development
|
27
26
|
prerelease: false
|
28
|
-
|
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
|
-
|
40
|
-
version_requirements: *id001
|
39
|
+
requirement: *id001
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
|
-
|
41
|
+
type: :development
|
43
42
|
prerelease: false
|
44
|
-
|
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
|
-
|
56
|
-
version_requirements: *id002
|
55
|
+
requirement: *id002
|
57
56
|
- !ruby/object:Gem::Dependency
|
58
|
-
|
57
|
+
type: :development
|
59
58
|
prerelease: false
|
60
|
-
|
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:
|
65
|
+
hash: 7
|
66
66
|
segments:
|
67
67
|
- 1
|
68
|
-
-
|
68
|
+
- 4
|
69
69
|
- 0
|
70
|
-
version: 1.
|
71
|
-
|
72
|
-
version_requirements: *id003
|
70
|
+
version: 1.4.0
|
71
|
+
requirement: *id003
|
73
72
|
- !ruby/object:Gem::Dependency
|
74
|
-
|
73
|
+
type: :development
|
75
74
|
prerelease: false
|
76
|
-
|
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:
|
81
|
+
hash: 13
|
82
82
|
segments:
|
83
83
|
- 1
|
84
|
-
-
|
85
|
-
-
|
86
|
-
version: 1.
|
87
|
-
|
88
|
-
version_requirements: *id004
|
84
|
+
- 2
|
85
|
+
- 9
|
86
|
+
version: 1.2.9
|
87
|
+
requirement: *id004
|
89
88
|
- !ruby/object:Gem::Dependency
|
90
|
-
|
89
|
+
type: :development
|
91
90
|
prerelease: false
|
92
|
-
|
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
|
-
|
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
|
-
|
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.
|
119
|
-
|
120
|
-
version_requirements: *id006
|
133
|
+
version: "0.7"
|
134
|
+
requirement: *id007
|
121
135
|
- !ruby/object:Gem::Dependency
|
122
|
-
|
136
|
+
type: :runtime
|
123
137
|
prerelease: false
|
124
|
-
|
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:
|
144
|
+
hash: 49
|
130
145
|
segments:
|
131
146
|
- 0
|
132
|
-
-
|
133
|
-
|
134
|
-
|
135
|
-
|
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
|
-
|
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:
|
308
|
+
hash: 3
|
272
309
|
segments:
|
273
|
-
-
|
274
|
-
|
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
|
data/install_dependencies.rb
DELETED
@@ -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'
|