tap 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Basic Overview +151 -0
- data/Command Reference +99 -0
- data/History +24 -0
- data/MIT-LICENSE +1 -1
- data/README +29 -57
- data/Rakefile +30 -37
- data/Tutorial +243 -191
- data/bin/tap +66 -35
- data/lib/tap.rb +47 -29
- data/lib/tap/app.rb +700 -342
- data/lib/tap/{script → cmd}/console.rb +0 -0
- data/lib/tap/{script → cmd}/destroy.rb +0 -0
- data/lib/tap/{script → cmd}/generate.rb +0 -0
- data/lib/tap/cmd/run.rb +156 -0
- data/lib/tap/constants.rb +4 -0
- data/lib/tap/dump.rb +57 -0
- data/lib/tap/env.rb +316 -0
- data/lib/tap/file_task.rb +106 -109
- data/lib/tap/generator.rb +4 -1
- data/lib/tap/generator/generators/command/USAGE +6 -0
- data/lib/tap/generator/generators/command/command_generator.rb +17 -0
- data/lib/tap/generator/generators/{script/templates/script.erb → command/templates/command.erb} +10 -10
- data/lib/tap/generator/generators/config/USAGE +21 -0
- data/lib/tap/generator/generators/config/config_generator.rb +17 -7
- data/lib/tap/generator/generators/file_task/USAGE +3 -0
- data/lib/tap/generator/generators/file_task/file_task_generator.rb +16 -0
- data/lib/tap/generator/generators/file_task/templates/file.txt +2 -0
- data/lib/tap/generator/generators/file_task/templates/file.yml +3 -0
- data/lib/tap/generator/generators/file_task/templates/task.erb +26 -20
- data/lib/tap/generator/generators/file_task/templates/test.erb +20 -10
- data/lib/tap/generator/generators/generator/generator_generator.rb +1 -1
- data/lib/tap/generator/generators/generator/templates/generator.erb +21 -12
- data/lib/tap/generator/generators/root/templates/Rakefile +33 -24
- data/lib/tap/generator/generators/root/templates/tap.yml +28 -31
- data/lib/tap/generator/generators/root/templates/test/tap_test_helper.rb +1 -0
- data/lib/tap/generator/generators/task/USAGE +3 -0
- data/lib/tap/generator/generators/task/task_generator.rb +18 -5
- data/lib/tap/generator/generators/task/templates/task.erb +7 -12
- data/lib/tap/generator/generators/task/templates/test.erb +10 -11
- data/lib/tap/generator/generators/workflow/templates/task.erb +1 -1
- data/lib/tap/generator/generators/workflow/templates/test.erb +1 -1
- data/lib/tap/patches/rake/rake_test_loader.rb +8 -0
- data/lib/tap/patches/rake/testtask.rb +55 -0
- data/lib/tap/patches/ruby19/backtrace_filter.rb +51 -0
- data/lib/tap/patches/ruby19/parsedate.rb +16 -0
- data/lib/tap/root.rb +172 -67
- data/lib/tap/script.rb +70 -336
- data/lib/tap/support/aggregator.rb +55 -0
- data/lib/tap/support/audit.rb +281 -280
- data/lib/tap/support/batchable.rb +59 -0
- data/lib/tap/support/class_configuration.rb +279 -0
- data/lib/tap/support/configurable.rb +92 -0
- data/lib/tap/support/configurable_methods.rb +296 -0
- data/lib/tap/support/executable.rb +98 -0
- data/lib/tap/support/executable_queue.rb +82 -0
- data/lib/tap/support/logger.rb +9 -15
- data/lib/tap/support/rake.rb +43 -54
- data/lib/tap/support/run_error.rb +32 -13
- data/lib/tap/support/shell_utils.rb +47 -0
- data/lib/tap/support/tdoc.rb +9 -8
- data/lib/tap/support/tdoc/config_attr.rb +40 -16
- data/lib/tap/support/validation.rb +77 -0
- data/lib/tap/support/versions.rb +36 -36
- data/lib/tap/task.rb +276 -482
- data/lib/tap/test.rb +20 -261
- data/lib/tap/test/env_vars.rb +7 -5
- data/lib/tap/test/file_methods.rb +126 -121
- data/lib/tap/test/subset_methods.rb +86 -45
- data/lib/tap/test/tap_methods.rb +271 -0
- data/lib/tap/workflow.rb +174 -46
- data/test/app/config/another/task.yml +1 -0
- data/test/app/config/erb.yml +2 -1
- data/test/app/config/some/task.yml +1 -0
- data/test/app/config/template.yml +2 -6
- data/test/app_test.rb +1241 -1008
- data/test/env/test_configure/recurse_a.yml +2 -0
- data/test/env/test_configure/recurse_b.yml +2 -0
- data/test/env/test_configure/tap.yml +23 -0
- data/test/env/test_load_env_config/dir/tap.yml +3 -0
- data/test/env/test_load_env_config/recurse_a.yml +2 -0
- data/test/env/test_load_env_config/recurse_b.yml +2 -0
- data/test/env/test_load_env_config/tap.yml +3 -0
- data/test/env_test.rb +198 -0
- data/test/file_task_test.rb +70 -53
- data/{lib/tap/generator/generators/package/USAGE → test/root/file.txt} +0 -0
- data/test/root_test.rb +621 -454
- data/test/script_test.rb +38 -174
- data/test/support/aggregator_test.rb +99 -0
- data/test/support/audit_test.rb +409 -416
- data/test/support/batchable_test.rb +74 -0
- data/test/support/{task_configuration_test.rb → class_configuration_test.rb} +106 -47
- data/test/{task/config/overriding.yml → support/configurable/config/configured.yml} +0 -0
- data/test/support/configurable_test.rb +295 -0
- data/test/support/executable_queue_test.rb +103 -0
- data/test/support/executable_test.rb +38 -0
- data/test/support/logger_test.rb +17 -17
- data/test/support/rake_test.rb +4 -2
- data/test/support/shell_utils_test.rb +24 -0
- data/test/support/tdoc_test.rb +265 -258
- data/test/support/validation_test.rb +54 -0
- data/test/support/versions_test.rb +38 -38
- data/test/tap_test_helper.rb +19 -5
- data/test/tap_test_suite.rb +5 -2
- data/test/task_base_test.rb +13 -104
- data/test/task_syntax_test.rb +300 -0
- data/test/task_test.rb +258 -381
- data/test/test/env_vars_test.rb +40 -40
- data/test/test/file_methods/{test_assert_output_files_equal → test_assert_files}/expected/one.txt +0 -0
- data/test/test/file_methods/{test_assert_output_files_equal → test_assert_files}/expected/two.txt +0 -0
- data/test/test/file_methods/{test_assert_output_files_equal → test_assert_files}/input/one.txt +0 -0
- data/test/test/file_methods/{test_assert_output_files_equal → test_assert_files}/input/two.txt +0 -0
- data/test/test/{test_file_task_test → file_methods/test_assert_files_can_have_no_expected_files_if_specified}/input/one.txt +0 -0
- data/test/test/{test_file_task_test → file_methods/test_assert_files_can_have_no_expected_files_if_specified}/input/two.txt +0 -0
- data/test/test/file_methods/test_assert_files_fails_for_different_content/expected/one.txt +1 -0
- data/test/test/{test_file_task_test → file_methods/test_assert_files_fails_for_different_content}/expected/two.txt +0 -0
- data/test/test/file_methods/test_assert_files_fails_for_different_content/input/one.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_different_content/input/two.txt +1 -0
- data/test/test/{test_file_task_test → file_methods/test_assert_files_fails_for_missing_expected_file}/expected/one.txt +0 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_expected_file/input/one.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_expected_file/input/two.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_output_file/expected/one.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_output_file/expected/two.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_output_file/input/one.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_missing_output_file/input/two.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_no_expected_files/input/one.txt +1 -0
- data/test/test/file_methods/test_assert_files_fails_for_no_expected_files/input/two.txt +1 -0
- data/test/test/file_methods_doc/test_sub/expected/one.txt +1 -0
- data/test/test/file_methods_doc/test_sub/expected/two.txt +1 -0
- data/test/test/file_methods_doc/test_sub/input/one.txt +1 -0
- data/test/test/file_methods_doc/test_sub/input/two.txt +1 -0
- data/test/test/file_methods_doc_test.rb +29 -0
- data/test/test/file_methods_test.rb +214 -143
- data/test/test/subset_methods_test.rb +111 -115
- data/test/test/{test_assert_expected_result_files → tap_methods/test_assert_files}/expected/task/name/a.txt +0 -0
- data/test/test/{test_assert_expected_result_files → tap_methods/test_assert_files}/expected/task/name/b.txt +0 -0
- data/test/test/{test_assert_expected_result_files → tap_methods/test_assert_files}/input/a.txt +0 -0
- data/test/test/{test_assert_expected_result_files → tap_methods/test_assert_files}/input/b.txt +0 -0
- data/test/test/tap_methods_test.rb +399 -0
- data/test/workflow_test.rb +101 -91
- metadata +86 -70
- data/lib/tap/generator/generators/package/package_generator.rb +0 -38
- data/lib/tap/generator/generators/package/templates/package.erb +0 -186
- data/lib/tap/generator/generators/script/USAGE +0 -0
- data/lib/tap/generator/generators/script/script_generator.rb +0 -17
- data/lib/tap/script/run.rb +0 -154
- data/lib/tap/support/batch_queue.rb +0 -162
- data/lib/tap/support/combinator.rb +0 -114
- data/lib/tap/support/task_configuration.rb +0 -169
- data/lib/tap/support/template.rb +0 -81
- data/lib/tap/support/templater.rb +0 -155
- data/lib/tap/version.rb +0 -4
- data/test/app/config/addition_template.yml +0 -6
- data/test/app_class_test.rb +0 -33
- data/test/check/binding_eval.rb +0 -23
- data/test/check/define_method_check.rb +0 -22
- data/test/check/dependencies_check.rb +0 -175
- data/test/check/inheritance_check.rb +0 -22
- data/test/support/batch_queue_test.rb +0 -320
- data/test/support/combinator_test.rb +0 -249
- data/test/support/template_test.rb +0 -122
- data/test/support/templater/erb.txt +0 -2
- data/test/support/templater/erb.yml +0 -2
- data/test/support/templater/somefile.txt +0 -2
- data/test/support/templater_test.rb +0 -192
- data/test/task/config/template.yml +0 -4
- data/test/task_class_test.rb +0 -170
- data/test/task_execute_test.rb +0 -262
- data/test/test/file_methods/test_assert_expected/expected/file.txt +0 -1
- data/test/test/file_methods/test_assert_expected/expected/folder/file.txt +0 -1
- data/test/test/file_methods/test_assert_expected/input/file.txt +0 -1
- data/test/test/file_methods/test_assert_expected/input/folder/file.txt +0 -1
- data/test/test/file_methods/test_assert_files_exist/input/input_1.txt +0 -0
- data/test/test/file_methods/test_assert_files_exist/input/input_2.txt +0 -0
- data/test/test/file_methods/test_file_compare/expected/output_1.txt +0 -3
- data/test/test/file_methods/test_file_compare/expected/output_2.txt +0 -1
- data/test/test/file_methods/test_file_compare/input/input_1.txt +0 -3
- data/test/test/file_methods/test_file_compare/input/input_2.txt +0 -3
- data/test/test/file_methods/test_infer_glob/expected/file.yml +0 -0
- data/test/test/file_methods/test_infer_glob/expected/file_1.txt +0 -0
- data/test/test/file_methods/test_infer_glob/expected/file_2.txt +0 -0
- data/test/test/file_methods/test_yml_compare/expected/output_1.yml +0 -6
- data/test/test/file_methods/test_yml_compare/expected/output_2.yml +0 -6
- data/test/test/file_methods/test_yml_compare/input/input_1.yml +0 -4
- data/test/test/file_methods/test_yml_compare/input/input_2.yml +0 -4
- data/test/test_test.rb +0 -373
data/test/workflow_test.rb
CHANGED
@@ -1,11 +1,46 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'tap_test_helper')
|
2
2
|
require 'tap/workflow'
|
3
3
|
|
4
|
+
# used in documentation
|
5
|
+
class SimpleSequence < Tap::Workflow
|
6
|
+
config :factor, 1
|
7
|
+
|
8
|
+
def workflow
|
9
|
+
t1 = Tap::Task.new {|task, input| input += 5 }
|
10
|
+
t2 = Tap::Task.new {|task, input| input += 3 }
|
11
|
+
t3 = Tap::Task.new {|task, input| input *= factor }
|
12
|
+
|
13
|
+
app.sequence(t1, t2, t3)
|
14
|
+
self.entry_point = t1
|
15
|
+
self.exit_point = t3
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
4
19
|
class WorkflowTest < Test::Unit::TestCase
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
20
|
+
include TapTestMethods
|
21
|
+
|
22
|
+
acts_as_tap_test
|
23
|
+
|
24
|
+
def test_documentation
|
25
|
+
w = SimpleSequence.new
|
26
|
+
w.enq(0)
|
27
|
+
app.run
|
28
|
+
assert_equal([8], app.results(w.exit_points))
|
29
|
+
|
30
|
+
app.aggregator.clear
|
31
|
+
|
32
|
+
w1 = SimpleSequence.new nil, :factor => 1
|
33
|
+
w2 = w1.initialize_batch_obj nil, :factor => -1
|
34
|
+
|
35
|
+
w1.enq(0)
|
36
|
+
app.run
|
37
|
+
assert_equal([8, -8], app.results(w1.exit_points, w2.exit_points))
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# initialization test
|
42
|
+
#
|
43
|
+
|
9
44
|
def test_workflow_raises_error_if_no_task_block_is_provided
|
10
45
|
assert_raise(Tap::Workflow::WorkflowError) { Tap::Workflow.new() }
|
11
46
|
end
|
@@ -16,95 +51,70 @@ class WorkflowTest < Test::Unit::TestCase
|
|
16
51
|
end
|
17
52
|
end
|
18
53
|
|
19
|
-
|
20
|
-
t1 = Tap::Task.new
|
21
|
-
t2 = Tap::Task.new
|
22
|
-
w = Tap::Workflow.new do |wf|
|
23
|
-
wf.entry_point = t1
|
24
|
-
wf.sequence(t1, t2)
|
25
|
-
end
|
26
|
-
|
27
|
-
assert_equal t1, w.entry_point
|
28
|
-
|
29
|
-
app.run(w, [1,2], 3)
|
30
|
-
assert_outputs(t2 => [[1,2], 3])
|
31
|
-
assert_audits(
|
32
|
-
t2.results,
|
33
|
-
0 => [[nil, [1,2]], [w, [1,2]], [t1, [1,2]], [t2, [1,2]]],
|
34
|
-
1 => [[nil, 3], [w, 3], [t1, 3], [t2, 3]])
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_workflow_forks_entry_points_if_entry_point_is_a_hash
|
38
|
-
t1 = Tap::Task.new(&add_one)
|
39
|
-
t2 = Tap::Task.new(&add_one)
|
40
|
-
t3 = Tap::Task.new(&add_one)
|
41
|
-
w = Tap::Workflow.new do |wf|
|
42
|
-
wf.entry_point[:t1] = t1
|
43
|
-
wf.entry_point[:t2] = t2
|
44
|
-
wf.sequence(t2, t3)
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_equal({:t1 => t1, :t2 => t2}, w.entry_point)
|
48
|
-
|
49
|
-
app.run(w, 1,2,3)
|
50
|
-
assert_outputs(t1 => [2,3,4], t3 => [3,4,5])
|
51
|
-
assert_audits(t1.results,
|
52
|
-
0 => [[nil,1], [w,1], [t1,2]],
|
53
|
-
1 => [[nil,2], [w,2], [t1,3]],
|
54
|
-
2 => [[nil,3], [w,3], [t1,4]])
|
55
|
-
assert_audits(t3.results,
|
56
|
-
0 => [[nil,1], [w,1], [t2,2], [t3,3]],
|
57
|
-
1 => [[nil,2], [w,2], [t2,3], [t3,4]],
|
58
|
-
2 => [[nil,3], [w,3], [t2,4], [t3,5]])
|
59
|
-
end
|
54
|
+
#
|
60
55
|
|
61
|
-
def
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
0 => [[nil,1], [w,1], [t2,2], [t3,3]],
|
78
|
-
1 => [[nil,2], [w,2], [t2,3], [t3,4]],
|
79
|
-
2 => [[nil,3], [w,3], [t2,4], [t3,5]])
|
80
|
-
end
|
81
|
-
|
82
|
-
class TestWorkflow < Tap::Workflow
|
83
|
-
def t1
|
84
|
-
@t1 ||= Tap::Task.new
|
85
|
-
end
|
86
|
-
|
87
|
-
def t2
|
88
|
-
@t2 ||= Tap::Task.new {|task, input| input.to_s}
|
89
|
-
end
|
90
|
-
|
91
|
-
def workflow
|
92
|
-
self.entry_point = t1
|
93
|
-
sequence(t1, t2)
|
94
|
-
self.exit_point[:t2] = t2
|
95
|
-
end
|
96
|
-
end
|
56
|
+
def test_workflow_sequences_execution_of_entry_point_if_entry_point_is_a_task
|
57
|
+
t1 = Tap::Task.new(&add_one)
|
58
|
+
t2 = Tap::Task.new(&add_one)
|
59
|
+
wf = Tap::Workflow.new do |w|
|
60
|
+
w.entry_point = t1
|
61
|
+
w.app.sequence(t1, t2)
|
62
|
+
end
|
63
|
+
|
64
|
+
assert_equal t1, wf.entry_point
|
65
|
+
|
66
|
+
with_options :debug => true do
|
67
|
+
wf.enq(0)
|
68
|
+
app.run
|
69
|
+
end
|
70
|
+
assert_audit_equal(ExpAudit[[nil,0],[t1,1],[t2,2]], app._results(t2).first)
|
71
|
+
end
|
97
72
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
73
|
+
def test_workflow_forks_entry_points_if_entry_point_is_a_hash
|
74
|
+
t1 = Tap::Task.new(&add_one)
|
75
|
+
t2 = Tap::Task.new(&add_one)
|
76
|
+
t3 = Tap::Task.new(&add_one)
|
77
|
+
wf = Tap::Workflow.new do |w|
|
78
|
+
w.entry_point[:t1] = t1
|
79
|
+
w.entry_point[:t2] = t2
|
80
|
+
w.app.sequence(t2, t3)
|
81
|
+
end
|
82
|
+
|
83
|
+
assert_equal({:t1 => t1, :t2 => t2}, wf.entry_point)
|
84
|
+
|
85
|
+
with_options :debug => true do
|
86
|
+
wf.enq(0)
|
87
|
+
app.run
|
88
|
+
end
|
89
|
+
assert_audit_equal(ExpAudit[[nil,0],[t1,1]], app._results(t1).first)
|
90
|
+
assert_audit_equal(ExpAudit[[nil,0],[t2,1],[t3,2]], app._results(t3).first)
|
91
|
+
end
|
92
|
+
|
93
|
+
class TestWorkflow < Tap::Workflow
|
94
|
+
def t1
|
95
|
+
@t1 ||= Tap::Task.new {|task, input| input += 1}
|
96
|
+
end
|
97
|
+
|
98
|
+
def t2
|
99
|
+
@t2 ||= Tap::Task.new {|task, input| input += 1}
|
100
|
+
end
|
101
|
+
|
102
|
+
def workflow
|
103
|
+
self.entry_point = t1
|
104
|
+
app.sequence(t1, t2)
|
105
|
+
self.exit_point[:t2] = t2
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
def test_workflow_method_defines_workflow
|
110
|
+
w = TestWorkflow.new
|
111
|
+
|
112
|
+
with_options :debug => true do
|
113
|
+
w.enq(0)
|
114
|
+
app.run
|
115
|
+
end
|
116
|
+
assert_audit_equal(ExpAudit[[nil,0],[w.t1,1],[w.t2,2]], app._results(w.exit_point[:t2]).first)
|
117
|
+
end
|
108
118
|
|
109
119
|
end
|
110
120
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Chiang
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2008-04-09 00:00:00 -06:00
|
13
13
|
default_executable: tap
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -32,19 +32,31 @@ extra_rdoc_files:
|
|
32
32
|
- MIT-LICENSE
|
33
33
|
- History
|
34
34
|
- Tutorial
|
35
|
+
- Basic Overview
|
36
|
+
- Command Reference
|
35
37
|
files:
|
36
38
|
- README
|
37
39
|
- MIT-LICENSE
|
38
40
|
- History
|
39
41
|
- Tutorial
|
42
|
+
- Basic Overview
|
43
|
+
- Command Reference
|
40
44
|
- Rakefile
|
41
45
|
- bin/tap
|
42
46
|
- lib/tap/app.rb
|
47
|
+
- lib/tap/constants.rb
|
48
|
+
- lib/tap/dump.rb
|
49
|
+
- lib/tap/env.rb
|
43
50
|
- lib/tap/file_task.rb
|
51
|
+
- lib/tap/generator/generators/command/command_generator.rb
|
52
|
+
- lib/tap/generator/generators/command/templates/command.erb
|
53
|
+
- lib/tap/generator/generators/command/USAGE
|
44
54
|
- lib/tap/generator/generators/config/config_generator.rb
|
45
55
|
- lib/tap/generator/generators/config/templates/config.erb
|
46
56
|
- lib/tap/generator/generators/config/USAGE
|
47
57
|
- lib/tap/generator/generators/file_task/file_task_generator.rb
|
58
|
+
- lib/tap/generator/generators/file_task/templates/file.txt
|
59
|
+
- lib/tap/generator/generators/file_task/templates/file.yml
|
48
60
|
- lib/tap/generator/generators/file_task/templates/task.erb
|
49
61
|
- lib/tap/generator/generators/file_task/templates/test.erb
|
50
62
|
- lib/tap/generator/generators/file_task/USAGE
|
@@ -52,9 +64,6 @@ files:
|
|
52
64
|
- lib/tap/generator/generators/generator/templates/generator.erb
|
53
65
|
- lib/tap/generator/generators/generator/templates/usage.erb
|
54
66
|
- lib/tap/generator/generators/generator/USAGE
|
55
|
-
- lib/tap/generator/generators/package/package_generator.rb
|
56
|
-
- lib/tap/generator/generators/package/templates/package.erb
|
57
|
-
- lib/tap/generator/generators/package/USAGE
|
58
67
|
- lib/tap/generator/generators/root/root_generator.rb
|
59
68
|
- lib/tap/generator/generators/root/templates/Rakefile
|
60
69
|
- lib/tap/generator/generators/root/templates/ReadMe.txt
|
@@ -62,9 +71,6 @@ files:
|
|
62
71
|
- lib/tap/generator/generators/root/templates/test/tap_test_helper.rb
|
63
72
|
- lib/tap/generator/generators/root/templates/test/tap_test_suite.rb
|
64
73
|
- lib/tap/generator/generators/root/USAGE
|
65
|
-
- lib/tap/generator/generators/script/script_generator.rb
|
66
|
-
- lib/tap/generator/generators/script/templates/script.erb
|
67
|
-
- lib/tap/generator/generators/script/USAGE
|
68
74
|
- lib/tap/generator/generators/task/task_generator.rb
|
69
75
|
- lib/tap/generator/generators/task/templates/task.erb
|
70
76
|
- lib/tap/generator/generators/task/templates/test.erb
|
@@ -76,48 +82,60 @@ files:
|
|
76
82
|
- lib/tap/generator/options.rb
|
77
83
|
- lib/tap/generator/usage.rb
|
78
84
|
- lib/tap/generator.rb
|
85
|
+
- lib/tap/patches/rake/rake_test_loader.rb
|
86
|
+
- lib/tap/patches/rake/testtask.rb
|
87
|
+
- lib/tap/patches/ruby19/backtrace_filter.rb
|
88
|
+
- lib/tap/patches/ruby19/parsedate.rb
|
79
89
|
- lib/tap/root.rb
|
80
|
-
- lib/tap/
|
81
|
-
- lib/tap/
|
82
|
-
- lib/tap/
|
83
|
-
- lib/tap/
|
90
|
+
- lib/tap/cmd/console.rb
|
91
|
+
- lib/tap/cmd/destroy.rb
|
92
|
+
- lib/tap/cmd/generate.rb
|
93
|
+
- lib/tap/cmd/run.rb
|
84
94
|
- lib/tap/script.rb
|
95
|
+
- lib/tap/support/aggregator.rb
|
85
96
|
- lib/tap/support/audit.rb
|
86
|
-
- lib/tap/support/
|
87
|
-
- lib/tap/support/
|
97
|
+
- lib/tap/support/batchable.rb
|
98
|
+
- lib/tap/support/class_configuration.rb
|
99
|
+
- lib/tap/support/configurable.rb
|
100
|
+
- lib/tap/support/configurable_methods.rb
|
101
|
+
- lib/tap/support/executable.rb
|
102
|
+
- lib/tap/support/executable_queue.rb
|
88
103
|
- lib/tap/support/logger.rb
|
89
104
|
- lib/tap/support/rake.rb
|
90
105
|
- lib/tap/support/run_error.rb
|
91
|
-
- lib/tap/support/
|
106
|
+
- lib/tap/support/shell_utils.rb
|
92
107
|
- lib/tap/support/tdoc/config_attr.rb
|
93
108
|
- lib/tap/support/tdoc/tdoc_html_generator.rb
|
94
109
|
- lib/tap/support/tdoc/tdoc_html_template.rb
|
95
110
|
- lib/tap/support/tdoc.rb
|
96
|
-
- lib/tap/support/
|
97
|
-
- lib/tap/support/templater.rb
|
111
|
+
- lib/tap/support/validation.rb
|
98
112
|
- lib/tap/support/versions.rb
|
99
113
|
- lib/tap/task.rb
|
100
114
|
- lib/tap/test/env_vars.rb
|
101
115
|
- lib/tap/test/file_methods.rb
|
102
116
|
- lib/tap/test/subset_methods.rb
|
117
|
+
- lib/tap/test/tap_methods.rb
|
103
118
|
- lib/tap/test.rb
|
104
|
-
- lib/tap/version.rb
|
105
119
|
- lib/tap/workflow.rb
|
106
120
|
- lib/tap.rb
|
107
|
-
- test/app/config/
|
121
|
+
- test/app/config/another/task.yml
|
108
122
|
- test/app/config/batch.yml
|
109
123
|
- test/app/config/empty.yml
|
110
124
|
- test/app/config/erb.yml
|
125
|
+
- test/app/config/some/task.yml
|
111
126
|
- test/app/config/template.yml
|
112
127
|
- test/app/config/version-0.1.yml
|
113
128
|
- test/app/config/version.yml
|
114
129
|
- test/app/lib/app_test_task.rb
|
115
|
-
- test/app_class_test.rb
|
116
130
|
- test/app_test.rb
|
117
|
-
- test/
|
118
|
-
- test/
|
119
|
-
- test/
|
120
|
-
- test/
|
131
|
+
- test/env/test_configure/recurse_a.yml
|
132
|
+
- test/env/test_configure/recurse_b.yml
|
133
|
+
- test/env/test_configure/tap.yml
|
134
|
+
- test/env/test_load_env_config/dir/tap.yml
|
135
|
+
- test/env/test_load_env_config/recurse_a.yml
|
136
|
+
- test/env/test_load_env_config/recurse_b.yml
|
137
|
+
- test/env/test_load_env_config/tap.yml
|
138
|
+
- test/env_test.rb
|
121
139
|
- test/file_task/config/batch.yml
|
122
140
|
- test/file_task/config/configured.yml
|
123
141
|
- test/file_task/old_file_one.txt
|
@@ -148,20 +166,22 @@ files:
|
|
148
166
|
- test/root/versions/file-0.1.2.yml
|
149
167
|
- test/root/versions/file-0.1.yml
|
150
168
|
- test/root/versions/file.yml
|
169
|
+
- test/root/file.txt
|
151
170
|
- test/root_test.rb
|
152
171
|
- test/script_test.rb
|
172
|
+
- test/support/aggregator_test.rb
|
153
173
|
- test/support/audit_test.rb
|
154
|
-
- test/support/
|
155
|
-
- test/support/
|
174
|
+
- test/support/batchable_test.rb
|
175
|
+
- test/support/class_configuration_test.rb
|
176
|
+
- test/support/configurable/config/configured.yml
|
177
|
+
- test/support/configurable_test.rb
|
178
|
+
- test/support/executable_queue_test.rb
|
179
|
+
- test/support/executable_test.rb
|
156
180
|
- test/support/logger_test.rb
|
157
181
|
- test/support/rake_test.rb
|
158
|
-
- test/support/
|
182
|
+
- test/support/shell_utils_test.rb
|
159
183
|
- test/support/tdoc_test.rb
|
160
|
-
- test/support/
|
161
|
-
- test/support/templater/erb.txt
|
162
|
-
- test/support/templater/erb.yml
|
163
|
-
- test/support/templater/somefile.txt
|
164
|
-
- test/support/templater_test.rb
|
184
|
+
- test/support/validation_test.rb
|
165
185
|
- test/support/versions_test.rb
|
166
186
|
- test/tap_test_helper.rb
|
167
187
|
- test/tap_test_suite.rb
|
@@ -169,48 +189,44 @@ files:
|
|
169
189
|
- test/task/config/batched.yml
|
170
190
|
- test/task/config/configured.yml
|
171
191
|
- test/task/config/example.yml
|
172
|
-
- test/task/config/overriding.yml
|
173
|
-
- test/task/config/template.yml
|
174
192
|
- test/task_base_test.rb
|
175
|
-
- test/
|
176
|
-
- test/task_execute_test.rb
|
193
|
+
- test/task_syntax_test.rb
|
177
194
|
- test/task_test.rb
|
178
195
|
- test/test/env_vars_test.rb
|
179
|
-
- test/test/file_methods/
|
180
|
-
- test/test/file_methods/
|
181
|
-
- test/test/file_methods/
|
182
|
-
- test/test/file_methods/
|
183
|
-
- test/test/file_methods/
|
184
|
-
- test/test/file_methods/
|
185
|
-
- test/test/file_methods/
|
186
|
-
- test/test/file_methods/
|
187
|
-
- test/test/file_methods/
|
188
|
-
- test/test/file_methods/
|
189
|
-
- test/test/file_methods/
|
190
|
-
- test/test/file_methods/
|
191
|
-
- test/test/file_methods/
|
192
|
-
- test/test/file_methods/
|
193
|
-
- test/test/file_methods/
|
194
|
-
- test/test/file_methods/
|
195
|
-
- test/test/file_methods/
|
196
|
+
- test/test/file_methods/test_assert_files/expected/one.txt
|
197
|
+
- test/test/file_methods/test_assert_files/expected/two.txt
|
198
|
+
- test/test/file_methods/test_assert_files/input/one.txt
|
199
|
+
- test/test/file_methods/test_assert_files/input/two.txt
|
200
|
+
- test/test/file_methods/test_assert_files_can_have_no_expected_files_if_specified/input/one.txt
|
201
|
+
- test/test/file_methods/test_assert_files_can_have_no_expected_files_if_specified/input/two.txt
|
202
|
+
- test/test/file_methods/test_assert_files_fails_for_different_content/expected/one.txt
|
203
|
+
- test/test/file_methods/test_assert_files_fails_for_different_content/expected/two.txt
|
204
|
+
- test/test/file_methods/test_assert_files_fails_for_different_content/input/one.txt
|
205
|
+
- test/test/file_methods/test_assert_files_fails_for_different_content/input/two.txt
|
206
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_expected_file/expected/one.txt
|
207
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_expected_file/input/one.txt
|
208
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_expected_file/input/two.txt
|
209
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_output_file/expected/one.txt
|
210
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_output_file/expected/two.txt
|
211
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_output_file/input/one.txt
|
212
|
+
- test/test/file_methods/test_assert_files_fails_for_missing_output_file/input/two.txt
|
213
|
+
- test/test/file_methods/test_assert_files_fails_for_no_expected_files/input/one.txt
|
214
|
+
- test/test/file_methods/test_assert_files_fails_for_no_expected_files/input/two.txt
|
196
215
|
- test/test/file_methods/test_method_glob/expected/file.yml
|
197
216
|
- test/test/file_methods/test_method_glob/expected/file_1.txt
|
198
217
|
- test/test/file_methods/test_method_glob/expected/file_2.txt
|
199
|
-
- test/test/
|
200
|
-
- test/test/
|
201
|
-
- test/test/
|
202
|
-
- test/test/
|
218
|
+
- test/test/file_methods_doc/test_sub/expected/one.txt
|
219
|
+
- test/test/file_methods_doc/test_sub/expected/two.txt
|
220
|
+
- test/test/file_methods_doc/test_sub/input/one.txt
|
221
|
+
- test/test/file_methods_doc/test_sub/input/two.txt
|
222
|
+
- test/test/file_methods_doc_test.rb
|
203
223
|
- test/test/file_methods_test.rb
|
204
224
|
- test/test/subset_methods_test.rb
|
205
|
-
- test/test/
|
206
|
-
- test/test/
|
207
|
-
- test/test/
|
208
|
-
- test/test/
|
209
|
-
- test/test/
|
210
|
-
- test/test/test_file_task_test/expected/two.txt
|
211
|
-
- test/test/test_file_task_test/input/one.txt
|
212
|
-
- test/test/test_file_task_test/input/two.txt
|
213
|
-
- test/test_test.rb
|
225
|
+
- test/test/tap_methods/test_assert_files/expected/task/name/a.txt
|
226
|
+
- test/test/tap_methods/test_assert_files/expected/task/name/b.txt
|
227
|
+
- test/test/tap_methods/test_assert_files/input/a.txt
|
228
|
+
- test/test/tap_methods/test_assert_files/input/b.txt
|
229
|
+
- test/test/tap_methods_test.rb
|
214
230
|
- test/workflow_test.rb
|
215
231
|
- vendor/rails_generator/base.rb
|
216
232
|
- vendor/rails_generator/commands.rb
|
@@ -226,7 +242,7 @@ files:
|
|
226
242
|
- vendor/rails_generator/spec.rb
|
227
243
|
- vendor/rails_generator.rb
|
228
244
|
has_rdoc: true
|
229
|
-
homepage: http://rubyforge.org
|
245
|
+
homepage: http://tap.rubyforge.org
|
230
246
|
post_install_message:
|
231
247
|
rdoc_options:
|
232
248
|
- --title
|
@@ -249,8 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
265
|
version:
|
250
266
|
requirements: []
|
251
267
|
|
252
|
-
rubyforge_project:
|
253
|
-
rubygems_version: 0.
|
268
|
+
rubyforge_project: tap
|
269
|
+
rubygems_version: 1.0.1
|
254
270
|
signing_key:
|
255
271
|
specification_version: 2
|
256
272
|
summary: A framework for configurable, distributable, and easy-to-use tasks and workflow applications.
|