fuburake 1.0.1.40 → 1.1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/fuburake.rb +35 -20
  3. data/lib/msbuild.rb +18 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTI2ZTcwMDczMGQ5Y2FkNGE3ZGQ1N2NkYTFlZTYxNmM4YTY0NzNjMA==
4
+ MWJmYzgxZmRmOTE2ZjMzNzI5YWNkYzUzMDRmMDYxNjk5NjkyOTYyMA==
5
5
  data.tar.gz: !binary |-
6
- ZTc5OWYyZTE2ZmNlZjk1YmNiOWM1YTQ3N2VhYzEwYTUyNjgxYzVmYQ==
6
+ ZjVhODIwMmM5ODhjMTY0N2Q3ZjUwZTMzM2E4ZmQzMjA5OTRhN2IzYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODlkMzA4NTEwMDMwYzc0ZjZiZWFlMGM4ZGUzNDA3OGZjMDI1MjBiYjZhMmEz
10
- OWM3NGE1OWYyOTllYTA5NjYzMGNkZGMwNGM3NjkwMGQwZTY1MDllN2JhYWU3
11
- ZDI2NzE2YWUyMzVmZTljZjZhNWVmZWUyNDg5NmY4YTVjZTNjYWI=
9
+ MmU4ZjEyNGY0OWQ4M2IzZTlkYjc4MzY5MTViYmM1ODU4Njg5NzUyZjM1NzFj
10
+ ZTU1Y2U4NTY1ZGQ2Mzg3ZWMyOWU1ZGE1MDRiM2ExNTlhMDgzMjhhMGExODg0
11
+ NzJkZjVkMjUyMDk1YzgwNjU4NzU0MWZmMzk0NjY4OGU5ZDIxYTk=
12
12
  data.tar.gz: !binary |-
13
- ZDRiZWNiOGYwNWNhNzgxOGFlNjcwODI0ZmE3MWJmOGZmMTViMThlNTU2NTg1
14
- MjliNmM2YWNmZDFhYzI3NzkzMzA3ODYzZTFiNDE0MDlhM2ViOWFlYmUzN2Zm
15
- NWZhMjY5YzgzOTlhNjcyNmFhODNiNDcyNTI3YWNmYzc3NzljMGI=
13
+ YmVlMjNlMjNiNzEwMGFhZDY2OGY2Zjk2OTQwOTJkMDY4NzU4MmQxMzEzYmQz
14
+ NDE4ZGUzNTE1N2UyMzgzNjk5ZjUyNDYyMjc5MmZkMGUzMzc1Yzg4NzhhNDUx
15
+ ZmIyOTU2NDBhMGFiMDI3NDFmM2IyNGQ3Mjc2ZDY3OWVlNWQ1NDg=
data/lib/fuburake.rb CHANGED
@@ -34,12 +34,15 @@ module FubuRake
34
34
  :compilations,
35
35
  :bottles,
36
36
  :bottles_enabled,
37
- :doc_exports
37
+ :doc_exports,
38
+ :compile_targets,
39
+ :ripple_compilation_targets
38
40
 
39
41
  def initialize
40
42
  @options = {}
41
43
  @bottles = []
42
44
  @bottles_enabled = true
45
+ @compile_targets = ['Debug', 'Release']
43
46
 
44
47
  solutions = Dir.glob('**/*.sln')
45
48
  if solutions.count == 1
@@ -164,23 +167,7 @@ module FubuRake
164
167
 
165
168
  end
166
169
 
167
- def add_dependency(from, to)
168
- if to.kind_of?(Array)
169
- to.each do |dep|
170
- add_dependency from, dep
171
- end
172
- end
173
-
174
- if !Rake::Task.task_defined?(from)
175
- return
176
- end
177
-
178
- if !Rake::Task.task_defined?(to)
179
- return
180
- end
181
-
182
- Rake::Task[from].enhance [to]
183
- end
170
+
184
171
 
185
172
  def create_task(name, description)
186
173
  task = Rake::Task.define_task name do
@@ -387,7 +374,7 @@ module FubuRake
387
374
  @directory = options[:dir]
388
375
  @prefix = options.fetch(:prefix, 'st')
389
376
  @src = options.fetch(:source, 'src')
390
- @results = options.fetch(:results, 'results.htm')
377
+ @results = options.fetch(:results, 'st-results/index.htm')
391
378
  @st_path = options.fetch(:st_path, "#{@src}/packages/Storyteller2/tools")
392
379
  @title = options.fetch(:title, 'Storyteller Specs')
393
380
  @specs = options.fetch(:specs, 'specs')
@@ -396,8 +383,14 @@ module FubuRake
396
383
  to_task 'run', 'ST.exe', "run #{to_args(options, @results)}", "Run the Storyteller tests for #{@directory}"
397
384
  to_task 'specs', 'ST.exe', "specs #{to_args(options, @specs)} --title \"#{@title}\"", "dump the specs for Storyteller tests at #{@directory}"
398
385
 
386
+ if @suites.length == 0
387
+ Dir["#{options[:path]}/Tests/*/"].each do |f|
388
+ @suites.push f.split('/').last
389
+ end
390
+ end
391
+
399
392
  @suites.each do |s|
400
- to_task "run:#{s.downcase}", 'ST.exe', "run #{to_args(options, @results)} -w #{s}", "Run the Storyteller tests for suite #{s}"
393
+ to_task "run:#{s.downcase}", 'ST.exe', "run #{to_args(options, @results)} -w #{s}", "Run Storyteller suite #{s}"
401
394
  end
402
395
 
403
396
  if !Platform.is_nix
@@ -441,6 +434,10 @@ module FubuRake
441
434
  if (options[:profile] != nil)
442
435
  args += " --profile #{options[:profile]}"
443
436
  end
437
+
438
+ if (options[:timeout] != nil)
439
+ args += " --timeout #{options[:timeout]}"
440
+ end
444
441
 
445
442
  return args
446
443
  end
@@ -482,3 +479,21 @@ def cleanFile(file)
482
479
  File.delete file unless !File.exist?(file)
483
480
  end
484
481
 
482
+ def add_dependency(from, to)
483
+ if to.kind_of?(Array)
484
+ to.each do |dep|
485
+ add_dependency from, dep
486
+ end
487
+ end
488
+
489
+ if !Rake::Task.task_defined?(from)
490
+ return
491
+ end
492
+
493
+ if !Rake::Task.task_defined?(to)
494
+ return
495
+ end
496
+
497
+ Rake::Task[from].enhance [to]
498
+ end
499
+
data/lib/msbuild.rb CHANGED
@@ -17,8 +17,26 @@ module FubuRake
17
17
  end
18
18
  openTask.add_description "Open solution #{tasks.compile[:solutionfile]}"
19
19
 
20
+ tasks.compile_targets.each do |m|
21
+ create_mode_task m, tasks, options
22
+ end
23
+
20
24
  return compileTask
21
25
  end
26
+
27
+ def self.create_mode_task(mode, tasks, options)
28
+ compile_options = options.merge(tasks.compile)
29
+ compile_options[:compilemode] = mode
30
+
31
+ task = Rake::Task.define_task "compile:#{mode.downcase}" do
32
+ MSBuildRunner.compile compile_options
33
+ end
34
+
35
+ task.enhance(tasks.precompile)
36
+ task.add_description "Compiles the solution in #{mode} mode"
37
+ end
38
+
39
+
22
40
  end
23
41
 
24
42
  class CompileTarget
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuburake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.40
4
+ version: 1.1.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy D. Miller
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-20 00:00:00.000000000 Z
13
+ date: 2014-02-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ripple-cli