rake 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rake might be problematic. Click here for more details.
- data/doc/command_line_usage.rdoc +13 -7
- data/doc/release_notes/rake-0.9.4.rdoc +110 -0
- data/doc/release_notes/rake-0.9.5.rdoc +114 -0
- data/lib/rake/application.rb +2 -2
- data/lib/rake/file_list.rb +1 -1
- data/lib/rake/version.rb +1 -1
- data/test/test_rake_application.rb +31 -0
- data/test/test_rake_application_options.rb +20 -5
- data/test/test_rake_file_task.rb +4 -4
- metadata +9 -5
data/doc/command_line_usage.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Rake is invoked from the command line using:
|
4
4
|
|
5
|
-
|
5
|
+
% rake [options ...] [VAR=VALUE ...] [targets ...]
|
6
6
|
|
7
7
|
Options are:
|
8
8
|
|
@@ -15,11 +15,13 @@ Options are:
|
|
15
15
|
Used in combination with the -T and -D options, will force
|
16
16
|
those options to show all the tasks, even the ones without comments.
|
17
17
|
|
18
|
-
[<tt>--backtrace</tt>
|
18
|
+
[<tt>--backtrace</tt>{=_output_} (-n)]
|
19
19
|
Enable a full backtrace (i.e. like --trace, but without the task
|
20
|
-
tracing details). The
|
21
|
-
|
22
|
-
then
|
20
|
+
tracing details). The _output_ parameter is optional, but if
|
21
|
+
specified it controls where the backtrace output is sent. If
|
22
|
+
_output_ is <tt>stdout</tt>, then backtrace output is directed to
|
23
|
+
stardard output. If _output_ is <tt>stderr</tt>, or if it is
|
24
|
+
missing, then the backtrace output is sent to standard error.
|
23
25
|
|
24
26
|
[<tt>--classic-namespace</tt> (-n)]
|
25
27
|
Import the Task, FileTask, and FileCreateTask into the top-level
|
@@ -140,9 +142,13 @@ Options are:
|
|
140
142
|
are defined using the "desc" command. If a pattern is given, then
|
141
143
|
only tasks matching the pattern are displayed.
|
142
144
|
|
143
|
-
[<tt>--trace</tt> (-t)]
|
145
|
+
[<tt>--trace</tt>{=_output_} (-t)]
|
144
146
|
Turn on invoke/execute tracing. Also enable full backtrace on
|
145
|
-
errors.
|
147
|
+
errors. The _output_ parameter is optional, but if specified it
|
148
|
+
controls where the trace output is sent. If _output_ is
|
149
|
+
<tt>stdout</tt>, then trace output is directed to stardard output.
|
150
|
+
If _output_ is <tt>stderr</tt>, or if it is missing, then trace
|
151
|
+
output is sent to standard error.
|
146
152
|
|
147
153
|
[<tt>--verbose</tt> (-v)]
|
148
154
|
Echo the Sys commands to standard output.
|
@@ -0,0 +1,110 @@
|
|
1
|
+
= Rake 0.9.4 Released
|
2
|
+
|
3
|
+
Rake version 0.9.4 contains a number of bug fixes.
|
4
|
+
|
5
|
+
== Changes
|
6
|
+
|
7
|
+
=== New Features (in 0.9.3)
|
8
|
+
|
9
|
+
* Multitask tasks now use a thread pool. Use -j to limit the number of
|
10
|
+
available threads.
|
11
|
+
|
12
|
+
* Use -m to turn regular tasks into multitasks (use at your own risk).
|
13
|
+
|
14
|
+
* You can now do "Rake.add_rakelib 'dir'" in your Rakefile to
|
15
|
+
programatically add rake task libraries.
|
16
|
+
|
17
|
+
* You can specific backtrace suppression patterns (see
|
18
|
+
--supress-backtrace)
|
19
|
+
|
20
|
+
* Directory tasks can now take prerequisites and actions
|
21
|
+
|
22
|
+
* Use --backtrace to request a full backtrace without the task trace.
|
23
|
+
|
24
|
+
* You can say "--backtrace=stdout" and "--trace=stdout" to route trace
|
25
|
+
output to standard output rather than standard error.
|
26
|
+
|
27
|
+
* Optional 'phony' target (enable with 'require 'rake/phony'") for
|
28
|
+
special purpose builds.
|
29
|
+
|
30
|
+
* Task#clear now clears task comments as well as actions and
|
31
|
+
prerequisites. Task#clear_comment will specifically target comments.
|
32
|
+
|
33
|
+
* The --all option will force -T and -D to consider all the tasks,
|
34
|
+
with and without descriptions.
|
35
|
+
|
36
|
+
=== Bug Fixes (0.9.3)
|
37
|
+
|
38
|
+
* Semi-colons in windows rakefile paths now work.
|
39
|
+
|
40
|
+
* Improved Control-C support when invoking multiple test suites.
|
41
|
+
|
42
|
+
* egrep method now reads files in text mode (better support for
|
43
|
+
Windows)
|
44
|
+
|
45
|
+
* Better deprecation line number reporting.
|
46
|
+
|
47
|
+
* The -W option now works with all tasks, whether they have a
|
48
|
+
description or not.
|
49
|
+
|
50
|
+
* File globs in rake should not be sorted alphabetically, independent
|
51
|
+
of file system and platform.
|
52
|
+
|
53
|
+
* Numerous internal improvements.
|
54
|
+
|
55
|
+
* Documentation typos and fixes.
|
56
|
+
|
57
|
+
=== Bug Fixes (0.9.4)
|
58
|
+
|
59
|
+
* Exit status with failing tests is not correctly set to non-zero.
|
60
|
+
|
61
|
+
* Simplified syntax for phony task (for older versions of RDoc).
|
62
|
+
|
63
|
+
* Stand alone FileList usage gets glob function (without loading in
|
64
|
+
extra dependencies)
|
65
|
+
|
66
|
+
== What is Rake
|
67
|
+
|
68
|
+
Rake is a build tool similar to the make program in many ways. But
|
69
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
70
|
+
declare tasks and dependencies. You have the full power of a modern
|
71
|
+
scripting language built right into your build tool.
|
72
|
+
|
73
|
+
== Availability
|
74
|
+
|
75
|
+
The easiest way to get and install rake is via RubyGems ...
|
76
|
+
|
77
|
+
gem install rake (you may need root/admin privileges)
|
78
|
+
|
79
|
+
Otherwise, you can get it from the more traditional places:
|
80
|
+
|
81
|
+
Home Page:: http://github.com/jimweirich/rake
|
82
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
83
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
84
|
+
|
85
|
+
== Thanks
|
86
|
+
|
87
|
+
As usual, it was input from users that drove a alot of these changes. The
|
88
|
+
following people either contributed patches, made suggestions or made
|
89
|
+
otherwise helpful comments. Thanks to ...
|
90
|
+
|
91
|
+
* Aaron Patterson
|
92
|
+
* Dylan Smith
|
93
|
+
* Jo Liss
|
94
|
+
* Jonas Pfenniger
|
95
|
+
* Kazuki Tsujimoto
|
96
|
+
* Michael Bishop
|
97
|
+
* Michael Elufimov
|
98
|
+
* NAKAMURA Usaku
|
99
|
+
* Ryan Davis
|
100
|
+
* Sam Grönblom
|
101
|
+
* Sam Phippen
|
102
|
+
* Sergio Wong
|
103
|
+
* Tay Ray Chuan
|
104
|
+
* grosser
|
105
|
+
* quix
|
106
|
+
|
107
|
+
Also, many thanks to Eric Hodel for assisting with getting this release
|
108
|
+
out the door.
|
109
|
+
|
110
|
+
-- Jim Weirich
|
@@ -0,0 +1,114 @@
|
|
1
|
+
= Rake 0.9.5 Released
|
2
|
+
|
3
|
+
Rake version 0.9.5 contains a number of bug fixes.
|
4
|
+
|
5
|
+
== Changes
|
6
|
+
|
7
|
+
=== New Features (in 0.9.3)
|
8
|
+
|
9
|
+
* Multitask tasks now use a thread pool. Use -j to limit the number of
|
10
|
+
available threads.
|
11
|
+
|
12
|
+
* Use -m to turn regular tasks into multitasks (use at your own risk).
|
13
|
+
|
14
|
+
* You can now do "Rake.add_rakelib 'dir'" in your Rakefile to
|
15
|
+
programatically add rake task libraries.
|
16
|
+
|
17
|
+
* You can specific backtrace suppression patterns (see
|
18
|
+
--supress-backtrace)
|
19
|
+
|
20
|
+
* Directory tasks can now take prerequisites and actions
|
21
|
+
|
22
|
+
* Use --backtrace to request a full backtrace without the task trace.
|
23
|
+
|
24
|
+
* You can say "--backtrace=stdout" and "--trace=stdout" to route trace
|
25
|
+
output to standard output rather than standard error.
|
26
|
+
|
27
|
+
* Optional 'phony' target (enable with 'require 'rake/phony'") for
|
28
|
+
special purpose builds.
|
29
|
+
|
30
|
+
* Task#clear now clears task comments as well as actions and
|
31
|
+
prerequisites. Task#clear_comment will specifically target comments.
|
32
|
+
|
33
|
+
* The --all option will force -T and -D to consider all the tasks,
|
34
|
+
with and without descriptions.
|
35
|
+
|
36
|
+
=== Bug Fixes (0.9.3)
|
37
|
+
|
38
|
+
* Semi-colons in windows rakefile paths now work.
|
39
|
+
|
40
|
+
* Improved Control-C support when invoking multiple test suites.
|
41
|
+
|
42
|
+
* egrep method now reads files in text mode (better support for
|
43
|
+
Windows)
|
44
|
+
|
45
|
+
* Better deprecation line number reporting.
|
46
|
+
|
47
|
+
* The -W option now works with all tasks, whether they have a
|
48
|
+
description or not.
|
49
|
+
|
50
|
+
* File globs in rake should not be sorted alphabetically, independent
|
51
|
+
of file system and platform.
|
52
|
+
|
53
|
+
* Numerous internal improvements.
|
54
|
+
|
55
|
+
* Documentation typos and fixes.
|
56
|
+
|
57
|
+
=== Bug Fixes (0.9.4)
|
58
|
+
|
59
|
+
* Exit status with failing tests is not correctly set to non-zero.
|
60
|
+
|
61
|
+
* Simplified syntax for phony task (for older versions of RDoc).
|
62
|
+
|
63
|
+
* Stand alone FileList usage gets glob function (without loading in
|
64
|
+
extra dependencies)
|
65
|
+
|
66
|
+
=== Bug Fixes (0.9.5)
|
67
|
+
|
68
|
+
* --trace and --backtrace no longer swallow following task names.
|
69
|
+
|
70
|
+
== What is Rake
|
71
|
+
|
72
|
+
Rake is a build tool similar to the make program in many ways. But
|
73
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
74
|
+
declare tasks and dependencies. You have the full power of a modern
|
75
|
+
scripting language built right into your build tool.
|
76
|
+
|
77
|
+
== Availability
|
78
|
+
|
79
|
+
The easiest way to get and install rake is via RubyGems ...
|
80
|
+
|
81
|
+
gem install rake (you may need root/admin privileges)
|
82
|
+
|
83
|
+
Otherwise, you can get it from the more traditional places:
|
84
|
+
|
85
|
+
Home Page:: http://github.com/jimweirich/rake
|
86
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
87
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
88
|
+
|
89
|
+
== Thanks
|
90
|
+
|
91
|
+
As usual, it was input from users that drove a alot of these changes. The
|
92
|
+
following people either contributed patches, made suggestions or made
|
93
|
+
otherwise helpful comments. Thanks to ...
|
94
|
+
|
95
|
+
* Aaron Patterson
|
96
|
+
* Dylan Smith
|
97
|
+
* Jo Liss
|
98
|
+
* Jonas Pfenniger
|
99
|
+
* Kazuki Tsujimoto
|
100
|
+
* Michael Bishop
|
101
|
+
* Michael Elufimov
|
102
|
+
* NAKAMURA Usaku
|
103
|
+
* Ryan Davis
|
104
|
+
* Sam Grönblom
|
105
|
+
* Sam Phippen
|
106
|
+
* Sergio Wong
|
107
|
+
* Tay Ray Chuan
|
108
|
+
* grosser
|
109
|
+
* quix
|
110
|
+
|
111
|
+
Also, many thanks to Eric Hodel for assisting with getting this release
|
112
|
+
out the door.
|
113
|
+
|
114
|
+
-- Jim Weirich
|
data/lib/rake/application.rb
CHANGED
@@ -336,7 +336,7 @@ module Rake
|
|
336
336
|
options.show_all_tasks = value
|
337
337
|
}
|
338
338
|
],
|
339
|
-
['--backtrace
|
339
|
+
['--backtrace=[OUT]', "Enable full backtrace. OUT can be stderr (default) or stdout.",
|
340
340
|
lambda { |value|
|
341
341
|
options.backtrace = true
|
342
342
|
select_trace_output(options, 'backtrace', value)
|
@@ -467,7 +467,7 @@ module Rake
|
|
467
467
|
select_tasks_to_show(options, :tasks, value)
|
468
468
|
}
|
469
469
|
],
|
470
|
-
['--trace', '-t
|
470
|
+
['--trace=[OUT]', '-t', "Turn on invoke/execute tracing, enable full backtrace. OUT can be stderr (default) or stdout.",
|
471
471
|
lambda { |value|
|
472
472
|
options.trace = true
|
473
473
|
options.backtrace = true
|
data/lib/rake/file_list.rb
CHANGED
@@ -385,7 +385,7 @@ module Rake
|
|
385
385
|
end
|
386
386
|
|
387
387
|
# Get a sorted list of files matching the pattern. This method
|
388
|
-
# should be prefered to Dir[pattern] and Dir.glob
|
388
|
+
# should be prefered to Dir[pattern] and Dir.glob(pattern) because
|
389
389
|
# the files returned are guaranteed to be sorted.
|
390
390
|
def glob(pattern, *args)
|
391
391
|
Dir.glob(pattern, *args).sort
|
data/lib/rake/version.rb
CHANGED
@@ -309,6 +309,37 @@ class TestRakeApplication < Rake::TestCase
|
|
309
309
|
assert @app.options.trace
|
310
310
|
end
|
311
311
|
|
312
|
+
def test_handle_options_trace_default_is_stderr
|
313
|
+
ARGV.clear
|
314
|
+
ARGV << "--trace"
|
315
|
+
|
316
|
+
@app.handle_options
|
317
|
+
|
318
|
+
assert_equal STDERR, @app.options.trace_output
|
319
|
+
assert @app.options.trace
|
320
|
+
end
|
321
|
+
|
322
|
+
def test_handle_options_trace_overrides_to_stdout
|
323
|
+
ARGV.clear
|
324
|
+
ARGV << "--trace=stdout"
|
325
|
+
|
326
|
+
@app.handle_options
|
327
|
+
|
328
|
+
assert_equal STDOUT, @app.options.trace_output
|
329
|
+
assert @app.options.trace
|
330
|
+
end
|
331
|
+
|
332
|
+
def test_handle_options_trace_does_not_eat_following_task_names
|
333
|
+
assert !@app.options.trace
|
334
|
+
|
335
|
+
ARGV.clear
|
336
|
+
ARGV << "--trace" << "sometask"
|
337
|
+
|
338
|
+
@app.handle_options
|
339
|
+
assert ARGV.include?("sometask")
|
340
|
+
assert @app.options.trace
|
341
|
+
end
|
342
|
+
|
312
343
|
def test_good_run
|
313
344
|
ran = false
|
314
345
|
|
@@ -228,7 +228,7 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
228
228
|
end
|
229
229
|
|
230
230
|
def test_trace_with_stdout
|
231
|
-
flags('--trace=stdout', '-tstdout'
|
231
|
+
flags('--trace=stdout', '-tstdout') do |opts|
|
232
232
|
assert opts.trace, "should enable trace option"
|
233
233
|
assert opts.backtrace, "should enabled backtrace option"
|
234
234
|
assert_equal $stdout, opts.trace_output
|
@@ -238,7 +238,7 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
238
238
|
end
|
239
239
|
|
240
240
|
def test_trace_with_stderr
|
241
|
-
flags('--trace=stderr', '-tstderr'
|
241
|
+
flags('--trace=stderr', '-tstderr') do |opts|
|
242
242
|
assert opts.trace, "should enable trace option"
|
243
243
|
assert opts.backtrace, "should enabled backtrace option"
|
244
244
|
assert_equal $stderr, opts.trace_output
|
@@ -254,13 +254,21 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
254
254
|
assert_match(/un(known|recognized).*\btrace\b.*xyzzy/i, ex.message)
|
255
255
|
end
|
256
256
|
|
257
|
+
def test_trace_with_following_task_name
|
258
|
+
flags(['--trace', 'taskname'], ['-t', 'taskname']) do |opts|
|
259
|
+
assert opts.trace, "should enable trace option"
|
260
|
+
assert opts.backtrace, "should enabled backtrace option"
|
261
|
+
assert_equal $stderr, opts.trace_output
|
262
|
+
assert Rake::FileUtilsExt.verbose_flag
|
263
|
+
assert_equal ['taskname'], @app.top_level_tasks
|
264
|
+
end
|
265
|
+
end
|
257
266
|
|
258
267
|
def test_backtrace
|
259
268
|
flags('--backtrace') do |opts|
|
260
269
|
assert opts.backtrace, "should enable backtrace option"
|
261
270
|
assert_equal $stderr, opts.trace_output
|
262
271
|
assert ! opts.trace, "should not enable trace option"
|
263
|
-
assert ! Rake::FileUtilsExt.verbose_flag
|
264
272
|
end
|
265
273
|
end
|
266
274
|
|
@@ -269,7 +277,6 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
269
277
|
assert opts.backtrace, "should enable backtrace option"
|
270
278
|
assert_equal $stdout, opts.trace_output
|
271
279
|
assert ! opts.trace, "should not enable trace option"
|
272
|
-
assert ! Rake::FileUtilsExt.verbose_flag
|
273
280
|
end
|
274
281
|
end
|
275
282
|
|
@@ -278,7 +285,6 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
278
285
|
assert opts.backtrace, "should enable backtrace option"
|
279
286
|
assert_equal $stderr, opts.trace_output
|
280
287
|
assert ! opts.trace, "should not enable trace option"
|
281
|
-
assert ! Rake::FileUtilsExt.verbose_flag
|
282
288
|
end
|
283
289
|
end
|
284
290
|
|
@@ -289,6 +295,15 @@ class TestRakeApplicationOptions < Rake::TestCase
|
|
289
295
|
assert_match(/un(known|recognized).*\bbacktrace\b.*xyzzy/i, ex.message)
|
290
296
|
end
|
291
297
|
|
298
|
+
def test_backtrace_with_following_task_name
|
299
|
+
flags(['--backtrace', 'taskname']) do |opts|
|
300
|
+
assert ! opts.trace, "should enable trace option"
|
301
|
+
assert opts.backtrace, "should enabled backtrace option"
|
302
|
+
assert_equal $stderr, opts.trace_output
|
303
|
+
assert_equal ['taskname'], @app.top_level_tasks
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
292
307
|
def test_trace_rules
|
293
308
|
flags('--rules') do |opts|
|
294
309
|
assert opts.trace_rules
|
data/test/test_rake_file_task.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
require File.expand_path('../helper', __FILE__)
|
2
2
|
require 'fileutils'
|
3
3
|
|
4
|
-
def load_phony
|
5
|
-
load File.dirname(__FILE__) + "/../lib/rake/phony.rb"
|
6
|
-
end
|
7
|
-
|
8
4
|
class TestRakeFileTask < Rake::TestCase
|
9
5
|
include Rake
|
10
6
|
|
@@ -119,4 +115,8 @@ class TestRakeFileTask < Rake::TestCase
|
|
119
115
|
assert( ! File.exist?(NEWFILE), "NEWFILE should be deleted")
|
120
116
|
end
|
121
117
|
|
118
|
+
def load_phony
|
119
|
+
load File.join(@orig_PWD, "lib/rake/phony.rb")
|
120
|
+
end
|
121
|
+
|
122
122
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -65,6 +65,8 @@ extra_rdoc_files:
|
|
65
65
|
- doc/release_notes/rake-0.9.2.2.rdoc
|
66
66
|
- doc/release_notes/rake-0.9.2.rdoc
|
67
67
|
- doc/release_notes/rake-0.9.3.rdoc
|
68
|
+
- doc/release_notes/rake-0.9.4.rdoc
|
69
|
+
- doc/release_notes/rake-0.9.5.rdoc
|
68
70
|
files:
|
69
71
|
- .gemtest
|
70
72
|
- install.rb
|
@@ -74,6 +76,7 @@ files:
|
|
74
76
|
- Rakefile
|
75
77
|
- TODO
|
76
78
|
- bin/rake
|
79
|
+
- lib/rake.rb
|
77
80
|
- lib/rake/alt_system.rb
|
78
81
|
- lib/rake/application.rb
|
79
82
|
- lib/rake/backtrace.rb
|
@@ -126,7 +129,6 @@ files:
|
|
126
129
|
- lib/rake/thread_pool.rb
|
127
130
|
- lib/rake/version.rb
|
128
131
|
- lib/rake/win32.rb
|
129
|
-
- lib/rake.rb
|
130
132
|
- test/file_creation.rb
|
131
133
|
- test/helper.rb
|
132
134
|
- test/test_private_reader.rb
|
@@ -175,11 +177,11 @@ files:
|
|
175
177
|
- test/test_sys.rb
|
176
178
|
- test/test_thread_history_display.rb
|
177
179
|
- doc/command_line_usage.rdoc
|
180
|
+
- doc/example/Rakefile1
|
181
|
+
- doc/example/Rakefile2
|
178
182
|
- doc/example/a.c
|
179
183
|
- doc/example/b.c
|
180
184
|
- doc/example/main.c
|
181
|
-
- doc/example/Rakefile1
|
182
|
-
- doc/example/Rakefile2
|
183
185
|
- doc/glossary.rdoc
|
184
186
|
- doc/jamis.rb
|
185
187
|
- doc/proto_rake.rdoc
|
@@ -208,6 +210,8 @@ files:
|
|
208
210
|
- doc/release_notes/rake-0.9.2.2.rdoc
|
209
211
|
- doc/release_notes/rake-0.9.2.rdoc
|
210
212
|
- doc/release_notes/rake-0.9.3.rdoc
|
213
|
+
- doc/release_notes/rake-0.9.4.rdoc
|
214
|
+
- doc/release_notes/rake-0.9.5.rdoc
|
211
215
|
homepage: http://rake.rubyforge.org
|
212
216
|
licenses: []
|
213
217
|
post_install_message:
|