drake 0.8.1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +386 -0
- data/MIT-LICENSE +21 -0
- data/README +396 -0
- data/Rakefile +505 -0
- data/TODO +20 -0
- data/bin/drake +31 -0
- data/bin/rake +31 -0
- data/doc/example/Rakefile1 +38 -0
- data/doc/example/Rakefile2 +35 -0
- data/doc/example/a.c +6 -0
- data/doc/example/b.c +6 -0
- data/doc/example/main.c +11 -0
- data/doc/glossary.rdoc +51 -0
- data/doc/jamis.rb +591 -0
- data/doc/proto_rake.rdoc +127 -0
- data/doc/rake.1.gz +0 -0
- data/doc/rakefile.rdoc +534 -0
- data/doc/rational.rdoc +151 -0
- data/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/doc/release_notes/rake-0.8.2.rdoc +163 -0
- data/install.rb +88 -0
- data/lib/rake.rb +2538 -0
- data/lib/rake/classic_namespace.rb +8 -0
- data/lib/rake/clean.rb +33 -0
- data/lib/rake/comp_tree/algorithm.rb +234 -0
- data/lib/rake/comp_tree/bucket_ipc.rb +175 -0
- data/lib/rake/comp_tree/driver.rb +291 -0
- data/lib/rake/comp_tree/error.rb +51 -0
- data/lib/rake/comp_tree/node.rb +189 -0
- data/lib/rake/comp_tree/quix/builtin/kernel/tap.rb +57 -0
- data/lib/rake/comp_tree/quix/diagnostic.rb +92 -0
- data/lib/rake/comp_tree/quix/kernel.rb +109 -0
- data/lib/rake/comp_tree/retriable_fork.rb +66 -0
- data/lib/rake/comp_tree/task_node.rb +46 -0
- data/lib/rake/contrib/compositepublisher.rb +24 -0
- data/lib/rake/contrib/ftptools.rb +153 -0
- data/lib/rake/contrib/publisher.rb +75 -0
- data/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/lib/rake/contrib/sshpublisher.rb +47 -0
- data/lib/rake/contrib/sys.rb +209 -0
- data/lib/rake/gempackagetask.rb +103 -0
- data/lib/rake/loaders/makefile.rb +35 -0
- data/lib/rake/packagetask.rb +185 -0
- data/lib/rake/parallel.rb +54 -0
- data/lib/rake/rake_test_loader.rb +5 -0
- data/lib/rake/rdoctask.rb +147 -0
- data/lib/rake/ruby182_test_unit_fix.rb +23 -0
- data/lib/rake/runtest.rb +23 -0
- data/lib/rake/tasklib.rb +23 -0
- data/lib/rake/testtask.rb +161 -0
- data/test/capture_stdout.rb +26 -0
- data/test/check_expansion.rb +5 -0
- data/test/contrib/test_sys.rb +47 -0
- data/test/data/chains/Rakefile +15 -0
- data/test/data/default/Rakefile +19 -0
- data/test/data/dryrun/Rakefile +22 -0
- data/test/data/file_creation_task/Rakefile +33 -0
- data/test/data/imports/Rakefile +19 -0
- data/test/data/imports/deps.mf +1 -0
- data/test/data/multidesc/Rakefile +17 -0
- data/test/data/namespace/Rakefile +57 -0
- data/test/data/rakelib/test1.rb +3 -0
- data/test/data/rbext/rakefile.rb +3 -0
- data/test/data/sample.mf +12 -0
- data/test/data/statusreturn/Rakefile +8 -0
- data/test/data/unittest/Rakefile +1 -0
- data/test/filecreation.rb +32 -0
- data/test/functional.rb +15 -0
- data/test/in_environment.rb +30 -0
- data/test/parallel.rb +3 -0
- data/test/rake_test_setup.rb +5 -0
- data/test/reqfile.rb +3 -0
- data/test/reqfile2.rb +3 -0
- data/test/session_functional.rb +324 -0
- data/test/shellcommand.rb +3 -0
- data/test/single_threaded.rb +2 -0
- data/test/test_application.rb +714 -0
- data/test/test_clean.rb +14 -0
- data/test/test_definitions.rb +82 -0
- data/test/test_earlytime.rb +35 -0
- data/test/test_extension.rb +63 -0
- data/test/test_file_creation_task.rb +62 -0
- data/test/test_file_task.rb +139 -0
- data/test/test_filelist.rb +618 -0
- data/test/test_fileutils.rb +250 -0
- data/test/test_ftp.rb +59 -0
- data/test/test_invocation_chain.rb +75 -0
- data/test/test_makefile_loader.rb +25 -0
- data/test/test_namespace.rb +36 -0
- data/test/test_package_task.rb +116 -0
- data/test/test_parallel.rb +47 -0
- data/test/test_pathmap.rb +209 -0
- data/test/test_rake.rb +41 -0
- data/test/test_require.rb +33 -0
- data/test/test_rules.rb +348 -0
- data/test/test_task_arguments.rb +89 -0
- data/test/test_task_manager.rb +172 -0
- data/test/test_tasklib.rb +12 -0
- data/test/test_tasks.rb +373 -0
- data/test/test_test_task.rb +75 -0
- data/test/test_top_level_functions.rb +84 -0
- metadata +190 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'rubygems'
|
5
|
+
rescue LoadError
|
6
|
+
# got no gems
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'test/unit'
|
10
|
+
require 'test/capture_stdout'
|
11
|
+
require 'rake'
|
12
|
+
require 'flexmock/test_unit'
|
13
|
+
|
14
|
+
class TestTopLevelFunctions < Test::Unit::TestCase
|
15
|
+
include CaptureStdout
|
16
|
+
|
17
|
+
def setup
|
18
|
+
super
|
19
|
+
@app = Rake.application
|
20
|
+
Rake.application = flexmock("app")
|
21
|
+
end
|
22
|
+
|
23
|
+
def teardown
|
24
|
+
Rake.application = @app
|
25
|
+
super
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_namespace
|
29
|
+
Rake.application.should_receive(:in_namespace).with("xyz", any).once
|
30
|
+
namespace "xyz" do end
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_import
|
34
|
+
Rake.application.should_receive(:add_import).with("x").once.ordered
|
35
|
+
Rake.application.should_receive(:add_import).with("y").once.ordered
|
36
|
+
Rake.application.should_receive(:add_import).with("z").once.ordered
|
37
|
+
import('x', 'y', 'z')
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_when_writing
|
41
|
+
out = capture_stdout do
|
42
|
+
when_writing("NOTWRITING") do
|
43
|
+
puts "WRITING"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
assert_equal "WRITING\n", out
|
47
|
+
end
|
48
|
+
|
49
|
+
def test_when_not_writing
|
50
|
+
RakeFileUtils.nowrite_flag = true
|
51
|
+
out = capture_stdout do
|
52
|
+
when_writing("NOTWRITING") do
|
53
|
+
puts "WRITING"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
assert_equal "DRYRUN: NOTWRITING\n", out
|
57
|
+
ensure
|
58
|
+
RakeFileUtils.nowrite_flag = false
|
59
|
+
end
|
60
|
+
|
61
|
+
def test_missing_constants_task
|
62
|
+
Rake.application.should_receive(:const_warning).with(:Task).once
|
63
|
+
Object.const_missing(:Task)
|
64
|
+
end
|
65
|
+
|
66
|
+
def test_missing_constants_file_task
|
67
|
+
Rake.application.should_receive(:const_warning).with(:FileTask).once
|
68
|
+
Object.const_missing(:FileTask)
|
69
|
+
end
|
70
|
+
|
71
|
+
def test_missing_constants_file_creation_task
|
72
|
+
Rake.application.should_receive(:const_warning).with(:FileCreationTask).once
|
73
|
+
Object.const_missing(:FileCreationTask)
|
74
|
+
end
|
75
|
+
|
76
|
+
def test_missing_constants_rake_app
|
77
|
+
Rake.application.should_receive(:const_warning).with(:RakeApp).once
|
78
|
+
Object.const_missing(:RakeApp)
|
79
|
+
end
|
80
|
+
|
81
|
+
def test_missing_other_constant
|
82
|
+
assert_raise(NameError) do Object.const_missing(:Xyz) end
|
83
|
+
end
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: drake
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.1.10.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jim Weirich, James M. Lawrence
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-09-07 00:00:00 -04:00
|
13
|
+
default_executable: drake
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax.
|
17
|
+
email: quixoticsycophant@gmail.com
|
18
|
+
executables:
|
19
|
+
- drake
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
- MIT-LICENSE
|
25
|
+
- TODO
|
26
|
+
- CHANGES
|
27
|
+
- doc/glossary.rdoc
|
28
|
+
- doc/proto_rake.rdoc
|
29
|
+
- doc/rakefile.rdoc
|
30
|
+
- doc/rational.rdoc
|
31
|
+
- doc/release_notes/rake-0.4.14.rdoc
|
32
|
+
- doc/release_notes/rake-0.4.15.rdoc
|
33
|
+
- doc/release_notes/rake-0.5.0.rdoc
|
34
|
+
- doc/release_notes/rake-0.5.3.rdoc
|
35
|
+
- doc/release_notes/rake-0.5.4.rdoc
|
36
|
+
- doc/release_notes/rake-0.6.0.rdoc
|
37
|
+
- doc/release_notes/rake-0.7.0.rdoc
|
38
|
+
- doc/release_notes/rake-0.7.1.rdoc
|
39
|
+
- doc/release_notes/rake-0.7.2.rdoc
|
40
|
+
- doc/release_notes/rake-0.7.3.rdoc
|
41
|
+
- doc/release_notes/rake-0.8.0.rdoc
|
42
|
+
- doc/release_notes/rake-0.8.2.rdoc
|
43
|
+
files:
|
44
|
+
- install.rb
|
45
|
+
- CHANGES
|
46
|
+
- MIT-LICENSE
|
47
|
+
- README
|
48
|
+
- Rakefile
|
49
|
+
- TODO
|
50
|
+
- bin/drake
|
51
|
+
- bin/rake
|
52
|
+
- lib/rake/classic_namespace.rb
|
53
|
+
- lib/rake/clean.rb
|
54
|
+
- lib/rake/comp_tree/algorithm.rb
|
55
|
+
- lib/rake/comp_tree/bucket_ipc.rb
|
56
|
+
- lib/rake/comp_tree/driver.rb
|
57
|
+
- lib/rake/comp_tree/error.rb
|
58
|
+
- lib/rake/comp_tree/node.rb
|
59
|
+
- lib/rake/comp_tree/quix/builtin/kernel/tap.rb
|
60
|
+
- lib/rake/comp_tree/quix/diagnostic.rb
|
61
|
+
- lib/rake/comp_tree/quix/kernel.rb
|
62
|
+
- lib/rake/comp_tree/retriable_fork.rb
|
63
|
+
- lib/rake/comp_tree/task_node.rb
|
64
|
+
- lib/rake/contrib/compositepublisher.rb
|
65
|
+
- lib/rake/contrib/ftptools.rb
|
66
|
+
- lib/rake/contrib/publisher.rb
|
67
|
+
- lib/rake/contrib/rubyforgepublisher.rb
|
68
|
+
- lib/rake/contrib/sshpublisher.rb
|
69
|
+
- lib/rake/contrib/sys.rb
|
70
|
+
- lib/rake/gempackagetask.rb
|
71
|
+
- lib/rake/loaders/makefile.rb
|
72
|
+
- lib/rake/packagetask.rb
|
73
|
+
- lib/rake/parallel.rb
|
74
|
+
- lib/rake/rake_test_loader.rb
|
75
|
+
- lib/rake/rdoctask.rb
|
76
|
+
- lib/rake/ruby182_test_unit_fix.rb
|
77
|
+
- lib/rake/runtest.rb
|
78
|
+
- lib/rake/tasklib.rb
|
79
|
+
- lib/rake/testtask.rb
|
80
|
+
- lib/rake.rb
|
81
|
+
- test/capture_stdout.rb
|
82
|
+
- test/check_expansion.rb
|
83
|
+
- test/contrib/test_sys.rb
|
84
|
+
- test/data/rakelib/test1.rb
|
85
|
+
- test/data/rbext/rakefile.rb
|
86
|
+
- test/filecreation.rb
|
87
|
+
- test/functional.rb
|
88
|
+
- test/in_environment.rb
|
89
|
+
- test/parallel.rb
|
90
|
+
- test/rake_test_setup.rb
|
91
|
+
- test/reqfile.rb
|
92
|
+
- test/reqfile2.rb
|
93
|
+
- test/session_functional.rb
|
94
|
+
- test/shellcommand.rb
|
95
|
+
- test/single_threaded.rb
|
96
|
+
- test/test_application.rb
|
97
|
+
- test/test_clean.rb
|
98
|
+
- test/test_definitions.rb
|
99
|
+
- test/test_earlytime.rb
|
100
|
+
- test/test_extension.rb
|
101
|
+
- test/test_file_creation_task.rb
|
102
|
+
- test/test_file_task.rb
|
103
|
+
- test/test_filelist.rb
|
104
|
+
- test/test_fileutils.rb
|
105
|
+
- test/test_ftp.rb
|
106
|
+
- test/test_invocation_chain.rb
|
107
|
+
- test/test_makefile_loader.rb
|
108
|
+
- test/test_namespace.rb
|
109
|
+
- test/test_package_task.rb
|
110
|
+
- test/test_parallel.rb
|
111
|
+
- test/test_pathmap.rb
|
112
|
+
- test/test_rake.rb
|
113
|
+
- test/test_require.rb
|
114
|
+
- test/test_rules.rb
|
115
|
+
- test/test_task_arguments.rb
|
116
|
+
- test/test_task_manager.rb
|
117
|
+
- test/test_tasklib.rb
|
118
|
+
- test/test_tasks.rb
|
119
|
+
- test/test_test_task.rb
|
120
|
+
- test/test_top_level_functions.rb
|
121
|
+
- test/data/imports/deps.mf
|
122
|
+
- test/data/sample.mf
|
123
|
+
- test/data/chains/Rakefile
|
124
|
+
- test/data/default/Rakefile
|
125
|
+
- test/data/dryrun/Rakefile
|
126
|
+
- test/data/file_creation_task/Rakefile
|
127
|
+
- test/data/imports/Rakefile
|
128
|
+
- test/data/multidesc/Rakefile
|
129
|
+
- test/data/namespace/Rakefile
|
130
|
+
- test/data/statusreturn/Rakefile
|
131
|
+
- test/data/unittest/Rakefile
|
132
|
+
- test/data/unittest/subdir
|
133
|
+
- doc/example
|
134
|
+
- doc/example/Rakefile1
|
135
|
+
- doc/example/Rakefile2
|
136
|
+
- doc/example/a.c
|
137
|
+
- doc/example/b.c
|
138
|
+
- doc/example/main.c
|
139
|
+
- doc/glossary.rdoc
|
140
|
+
- doc/jamis.rb
|
141
|
+
- doc/proto_rake.rdoc
|
142
|
+
- doc/rake.1.gz
|
143
|
+
- doc/rakefile.rdoc
|
144
|
+
- doc/rational.rdoc
|
145
|
+
- doc/release_notes
|
146
|
+
- doc/release_notes/rake-0.4.14.rdoc
|
147
|
+
- doc/release_notes/rake-0.4.15.rdoc
|
148
|
+
- doc/release_notes/rake-0.5.0.rdoc
|
149
|
+
- doc/release_notes/rake-0.5.3.rdoc
|
150
|
+
- doc/release_notes/rake-0.5.4.rdoc
|
151
|
+
- doc/release_notes/rake-0.6.0.rdoc
|
152
|
+
- doc/release_notes/rake-0.7.0.rdoc
|
153
|
+
- doc/release_notes/rake-0.7.1.rdoc
|
154
|
+
- doc/release_notes/rake-0.7.2.rdoc
|
155
|
+
- doc/release_notes/rake-0.7.3.rdoc
|
156
|
+
- doc/release_notes/rake-0.8.0.rdoc
|
157
|
+
- doc/release_notes/rake-0.8.2.rdoc
|
158
|
+
has_rdoc: true
|
159
|
+
homepage: http://drake.rubyforge.org
|
160
|
+
post_install_message:
|
161
|
+
rdoc_options:
|
162
|
+
- --line-numbers
|
163
|
+
- --inline-source
|
164
|
+
- --main
|
165
|
+
- README
|
166
|
+
- --title
|
167
|
+
- Rake -- Ruby Make
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: "0"
|
175
|
+
version:
|
176
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: "0"
|
181
|
+
version:
|
182
|
+
requirements: []
|
183
|
+
|
184
|
+
rubyforge_project: drake
|
185
|
+
rubygems_version: 1.2.0
|
186
|
+
signing_key:
|
187
|
+
specification_version: 2
|
188
|
+
summary: Ruby based make-like utility.
|
189
|
+
test_files: []
|
190
|
+
|