fuburake 0.9.5.30 → 0.9.5.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fuburake.rb +70 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OTNlNDlmN2Q3MjZhMmZiOGFhODg3YTMxNjRjYzg2ZGYyZTYwZDY4YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YmJmZjQzNTAzOTY4YTJiMWFkZjQ4N2FkYmIxNDhhN2I0OWRhOTcxYQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YTk4ZDBhNGE1MWE5YzIyNGQ3M2U0NWE2YjYwMTU4NzZkYTZlNGQ4NTJjYzA1
|
|
10
|
+
NWIwYTJjMzczOWFhZWRkNGFlNDJlNjMxOTZlNjM3MTZiNzMzMzAyODE1ZmRj
|
|
11
|
+
NjJmMWIzNDQxZmRkYmJjZTZmM2EyY2M3OGIxZGMwMTc3ZmJlNzM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MjBjMTY3MTM1ZTQ0MzdmMzIwNTdmZDUxODQxZmMyZTFlMGIzYjk3MzRhYmQz
|
|
14
|
+
MTIxMzYxZTMxNTBmYTY3NzI2NjMwZWFiNmQxNTM4MmVhOTNmNTE3ODZhNWUx
|
|
15
|
+
ZGZlZDkxNTkyZmMzMGEyODRlN2IzMWU2ZjY5NGI2NDQzYTZhMGM=
|
data/lib/fuburake.rb
CHANGED
|
@@ -360,6 +360,76 @@ module FubuRake
|
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
+
|
|
364
|
+
class Storyteller
|
|
365
|
+
def initialize(options)
|
|
366
|
+
# :path
|
|
367
|
+
# :compilemode -- take it from @solution.compiletarget
|
|
368
|
+
# :results
|
|
369
|
+
# :workspace
|
|
370
|
+
# :profile
|
|
371
|
+
# :title
|
|
372
|
+
# :source
|
|
373
|
+
# :prefix
|
|
374
|
+
# :st_path
|
|
375
|
+
# :specs
|
|
376
|
+
|
|
377
|
+
@directory = options[:dir]
|
|
378
|
+
@prefix = options.fetch(:prefix, 'st')
|
|
379
|
+
@src = options.fetch(:source, 'src')
|
|
380
|
+
@results = options.fetch(:results, 'results.htm')
|
|
381
|
+
@st_path = options.fetch(:st_path, "#{@src}/packages/Storyteller2/tools")
|
|
382
|
+
@title = options.fetch(:title, 'Storyteller Specs')
|
|
383
|
+
@specs = options.fetch(:specs, 'specs')
|
|
384
|
+
@suites = options.fetch(:suites, [])
|
|
385
|
+
|
|
386
|
+
to_task 'run', 'ST.exe', "run #{to_args(options, @results)}", "Run the Storyteller tests for #{@directory}"
|
|
387
|
+
to_task 'specs', 'ST.exe', "specs #{to_args(options, @specs)} --title \"#{@title}\"", "dump the specs for Storyteller tests at #{@directory}"
|
|
388
|
+
|
|
389
|
+
@suites.each do |s|
|
|
390
|
+
to_task "run:#{s.downcase}", 'ST.exe', "run #{to_args(options, @results)} -w #{s}", "Run the Storyteller tests for suite #{s}"
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
openTask = Rake::Task.define_task "#{@prefix}:open" do
|
|
394
|
+
tool = 'StorytellerUI.exe'
|
|
395
|
+
cmd = "start #{File.join(@st_path, tool)} #{to_args(options, @results)}"
|
|
396
|
+
puts "Opening the Storyteller UI to #{@directory}"
|
|
397
|
+
sh cmd
|
|
398
|
+
end
|
|
399
|
+
openTask.add_description "Open the Storyteller UI for tests at #{@directory}"
|
|
400
|
+
openTask.enhance [:compile]
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
def to_task(name, tool, args, description)
|
|
405
|
+
task = Rake::Task.define_task "#{@prefix}:#{name}" do
|
|
406
|
+
sh "#{File.join(@st_path, tool)} #{args}"
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
task.add_description description
|
|
410
|
+
task.enhance [:compile]
|
|
411
|
+
|
|
412
|
+
return task
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
def to_args(options, output)
|
|
416
|
+
args = "#{options[:path]} #{output}"
|
|
417
|
+
|
|
418
|
+
if (options[:compilemode] != nil)
|
|
419
|
+
args += " --compile #{options[:compilemode]}"
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
if (options[:workspace] != nil)
|
|
423
|
+
args += " --workspace #{options[:workspace]}"
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
if (options[:profile] != nil)
|
|
427
|
+
args += " --profile #{options[:profile]}"
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
return args
|
|
431
|
+
end
|
|
432
|
+
end
|
|
363
433
|
end
|
|
364
434
|
|
|
365
435
|
|
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: 0.9.5.
|
|
4
|
+
version: 0.9.5.31
|
|
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-09-
|
|
13
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: ripple-cli
|