rake 10.0.0.beta.1 → 10.0.0.beta.2
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 +40 -20
- data/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/doc/release_notes/rake-0.9.3.rdoc +70 -23
- data/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/lib/rake/application.rb +0 -5
- data/lib/rake/task.rb +1 -1
- data/lib/rake/thread_history_display.rb +1 -1
- data/lib/rake/version.rb +1 -1
- data/test/test_rake_file_task.rb +2 -2
- data/test/test_rake_reduce_compat.rb +0 -7
- data/test/test_rake_task.rb +1 -1
- data/test/test_rake_task_manager_argument_resolution.rb +0 -12
- data/test/test_rake_task_with_arguments.rb +0 -8
- metadata +6 -2
data/doc/command_line_usage.rdoc
CHANGED
@@ -11,12 +11,20 @@ Options are:
|
|
11
11
|
during the execution of the <b>rake</b> command. You can access
|
12
12
|
the value by using ENV['<em>name</em>'].
|
13
13
|
|
14
|
-
[<tt>--
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
14
|
+
[<tt>--all</tt> (-A)]
|
15
|
+
Used in combination with the -T and -D options, will force
|
16
|
+
those options to show all the tasks, even the ones without comments.
|
17
|
+
|
18
|
+
[<tt>--backtrace</tt> _output_ (-n)]
|
19
|
+
Enable a full backtrace (i.e. like --trace, but without the task
|
20
|
+
tracing details). The backtrace output will be directed to stderr
|
21
|
+
by default. If the options _output_ parameter is set to "stdout",
|
22
|
+
then the output will be directed to standard output.
|
23
|
+
|
24
|
+
[<tt>--comments</tt>]
|
25
|
+
Used in combination with the -W options to force the output to
|
26
|
+
contain commented options only. This is the reverse of
|
27
|
+
<tt>--all</tt>.
|
20
28
|
|
21
29
|
[<tt>--describe</tt> _pattern_ (-D)]
|
22
30
|
Describe the tasks (matching optional PATTERN), then exit.
|
@@ -38,14 +46,27 @@ Options are:
|
|
38
46
|
Display some help text and exit.
|
39
47
|
|
40
48
|
[<tt>--jobs</tt> _number_ (-j)]
|
41
|
-
Specifies the
|
42
|
-
value is equal to the number of CPUs.
|
43
|
-
|
49
|
+
Specifies the number of active concurrent tasks used. The
|
50
|
+
suggested value is equal to the number of CPUs. The concurrent
|
51
|
+
tasks are used to execute the <tt>multitask</tt> prerequisites.
|
52
|
+
Also see the <tt>-m</tt> option which turns all tasks into
|
53
|
+
multitasks.
|
54
|
+
|
44
55
|
Sample values:
|
45
56
|
(no -j) : unlimited concurrent tasks (standard rake behavior)
|
46
57
|
-j : 2 concurrent tasks (exact number may change)
|
47
58
|
-j 16 : 16 concurrent tasks
|
48
59
|
|
60
|
+
[<tt>--job-stats</tt> _level_]
|
61
|
+
|
62
|
+
Display job statistics at the completion of the run. By default,
|
63
|
+
this will display the requested number of active tasks (from the
|
64
|
+
-j options) and the maximum number of tasks in play at any given
|
65
|
+
time.
|
66
|
+
|
67
|
+
If the optional _level_ is <tt>history</tt>, then a complete trace
|
68
|
+
of task history will be displayed on standard output.
|
69
|
+
|
49
70
|
[<tt>--libdir</tt> _directory_ (-I)]
|
50
71
|
Add _directory_ to the list of directories searched for require.
|
51
72
|
|
@@ -81,6 +102,11 @@ Options are:
|
|
81
102
|
[<tt>--silent (-s)</tt>]
|
82
103
|
Like --quiet, but also suppresses the 'in directory' announcement.
|
83
104
|
|
105
|
+
[<tt>--suppress-backtrace _pattern_ </tt>]
|
106
|
+
Line matching the regular expression _pattern_ will be removed
|
107
|
+
from the backtrace output. Note that the --backtrace option is the
|
108
|
+
full backtrace without these lines suppressed.
|
109
|
+
|
84
110
|
[<tt>--system</tt> (-g)]
|
85
111
|
Use the system wide (global) rakefiles. The project Rakefile is
|
86
112
|
ignored. By default, the system wide rakefiles are used only if no
|
@@ -97,16 +123,6 @@ Options are:
|
|
97
123
|
are defined using the "desc" command. If a pattern is given, then
|
98
124
|
only tasks matching the pattern are displayed.
|
99
125
|
|
100
|
-
[<tt>--no-top-level-dsl</tt> (-X)]
|
101
|
-
Do not put the Rake DSL commands into the top level scope.
|
102
|
-
|
103
|
-
[<tt>--top-level-dsl</tt>]
|
104
|
-
Put the Rake DSL commands into the top level scope (default).
|
105
|
-
|
106
|
-
NOTE: Although currently Rake defaults to its DSL in the top level
|
107
|
-
scope, the plan is to deprecate this in the future and default ot
|
108
|
-
having the DSL commands *not* appear in the top level scope.
|
109
|
-
|
110
126
|
[<tt>--trace</tt> (-t)]
|
111
127
|
Turn on invoke/execute tracing. Also enable full backtrace on
|
112
128
|
errors.
|
@@ -119,7 +135,11 @@ Options are:
|
|
119
135
|
|
120
136
|
[<tt>--where</tt> <em>pattern</em> (-W)]
|
121
137
|
Display tasks that match <em>pattern</em> and the file and line
|
122
|
-
number where the task is defined.
|
138
|
+
number where the task is defined. By default this option will
|
139
|
+
display all tasks, not just the tasks that have descriptions.
|
140
|
+
|
141
|
+
[<tt>--no-deprecation-warnings</tt> (-W)]
|
142
|
+
Do not display the deprecation warnings.
|
123
143
|
|
124
144
|
In addition, any command line option of the form
|
125
145
|
<em>VAR</em>=<em>VALUE</em> will be added to the environment hash
|
@@ -0,0 +1,55 @@
|
|
1
|
+
= Rake 0.9.3 Released
|
2
|
+
|
3
|
+
Rake version 0.9.3 is mainly bug fixes.
|
4
|
+
|
5
|
+
== Changes
|
6
|
+
|
7
|
+
* The rake test loader now removes arguments it has processed. Issue #51
|
8
|
+
* Rake::TaskArguments now responds to #values_at
|
9
|
+
* RakeFileUtils.verbose_flag = nil silences output the same as 0.8.7
|
10
|
+
* Rake tests are now directory-independent
|
11
|
+
* Rake tests are no longer require flexmock
|
12
|
+
* Commands constant is no longer polluting top level namespace.
|
13
|
+
* Show only the interesting portion of the backtrace by default (James M. Lawrence).
|
14
|
+
* Added --reduce-compat option to remove backward compatible DSL hacks (James M. Lawrence).
|
15
|
+
|
16
|
+
== What is Rake
|
17
|
+
|
18
|
+
Rake is a build tool similar to the make program in many ways. But
|
19
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
20
|
+
declare tasks and dependencies. You have the full power of a modern
|
21
|
+
scripting language built right into your build tool.
|
22
|
+
|
23
|
+
== Availability
|
24
|
+
|
25
|
+
The easiest way to get and install rake is via RubyGems ...
|
26
|
+
|
27
|
+
gem install rake (you may need root/admin privileges)
|
28
|
+
|
29
|
+
Otherwise, you can get it from the more traditional places:
|
30
|
+
|
31
|
+
Home Page:: http://rake.rubyforge.org/
|
32
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
33
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
34
|
+
|
35
|
+
== Thanks
|
36
|
+
|
37
|
+
As usual, it was input from users that drove a alot of these changes. The
|
38
|
+
following people either contributed patches, made suggestions or made
|
39
|
+
otherwise helpful comments. Thanks to ...
|
40
|
+
|
41
|
+
* James M. Lawrence (quix)
|
42
|
+
* Roger Pack
|
43
|
+
* Cezary Baginski
|
44
|
+
* Sean Scot August Moon
|
45
|
+
* R.T. Lechow
|
46
|
+
* Alex Chaffee
|
47
|
+
* James Tucker
|
48
|
+
* Matthias Lüdtke
|
49
|
+
* Santiago Pastorino
|
50
|
+
|
51
|
+
Also, bit thanks to Eric Hodel for assisting with getting this release
|
52
|
+
out the door (where "assisting" includes, but is not by any means
|
53
|
+
limited to, "pushing" me to get it done).
|
54
|
+
|
55
|
+
-- Jim Weirich
|
@@ -1,17 +1,59 @@
|
|
1
1
|
= Rake 0.9.3 Released
|
2
2
|
|
3
|
-
Rake version 0.9.3
|
3
|
+
Rake version 0.9.3 contains some new, backwards compatible features and
|
4
|
+
a number of bug fixes.
|
4
5
|
|
5
6
|
== Changes
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
*
|
10
|
-
|
11
|
-
|
12
|
-
*
|
13
|
-
|
14
|
-
*
|
8
|
+
=== New Features
|
9
|
+
|
10
|
+
* Multitask tasks now use a thread pool. Use -j to limit the number of
|
11
|
+
available threads.
|
12
|
+
|
13
|
+
* Use -m to turn regular tasks into multitasks (use at your own risk).
|
14
|
+
|
15
|
+
* You can now do "Rake.add_rakelib 'dir'" in your Rakefile to
|
16
|
+
programatically add rake task libraries.
|
17
|
+
|
18
|
+
* You can specific backtrace suppression patterns (see
|
19
|
+
--supress-backtrace)
|
20
|
+
|
21
|
+
* Directory tasks can now take prerequisites and actions
|
22
|
+
|
23
|
+
* Use --backtrace to request a full backtrace without the task trace.
|
24
|
+
|
25
|
+
* You can say "--backtrace=stdout" and "--trace=stdout" to route trace
|
26
|
+
output to standard output rather than standard error.
|
27
|
+
|
28
|
+
* Optional 'phony' target (enable with 'require 'rake/phony'") for
|
29
|
+
special purpose builds.
|
30
|
+
|
31
|
+
* Task#clear now clears task comments as well as actions and
|
32
|
+
prerequisites. Task#clear_comment will specifically target comments.
|
33
|
+
|
34
|
+
* The --all option will force -T and -D to consider all the tasks,
|
35
|
+
with and without descriptions.
|
36
|
+
|
37
|
+
=== Bug Fixes
|
38
|
+
|
39
|
+
* Semi-colons in windows rakefile paths now work.
|
40
|
+
|
41
|
+
* Improved Control-C support when invoking multiple test suites.
|
42
|
+
|
43
|
+
* egrep method now reads files in text mode (better support for
|
44
|
+
Windows)
|
45
|
+
|
46
|
+
* Better deprecation line number reporting.
|
47
|
+
|
48
|
+
* The -W option now works with all tasks, whether they have a
|
49
|
+
description or not.
|
50
|
+
|
51
|
+
* File globs in rake should not be sorted alphabetically, independent
|
52
|
+
of file system and platform.
|
53
|
+
|
54
|
+
* Numerous internal improvements.
|
55
|
+
|
56
|
+
* Documentation typos and fixes.
|
15
57
|
|
16
58
|
== What is Rake
|
17
59
|
|
@@ -28,7 +70,7 @@ The easiest way to get and install rake is via RubyGems ...
|
|
28
70
|
|
29
71
|
Otherwise, you can get it from the more traditional places:
|
30
72
|
|
31
|
-
Home Page:: http://
|
73
|
+
Home Page:: http://github.com/jimweirich/rake
|
32
74
|
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
33
75
|
GitHub:: git://github.com/jimweirich/rake.git
|
34
76
|
|
@@ -38,18 +80,23 @@ As usual, it was input from users that drove a alot of these changes. The
|
|
38
80
|
following people either contributed patches, made suggestions or made
|
39
81
|
otherwise helpful comments. Thanks to ...
|
40
82
|
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
83
|
+
* Aaron Patterson
|
84
|
+
* Dylan Smith
|
85
|
+
* Jo Liss
|
86
|
+
* Jonas Pfenniger
|
87
|
+
* Kazuki Tsujimoto
|
88
|
+
* Michael Bishop
|
89
|
+
* Michael Elufimov
|
90
|
+
* NAKAMURA Usaku
|
91
|
+
* Ryan Davis
|
92
|
+
* Sam Grönblom
|
93
|
+
* Sam Phippen
|
94
|
+
* Sergio Wong
|
95
|
+
* Tay Ray Chuan
|
96
|
+
* grosser
|
97
|
+
* quix
|
98
|
+
|
99
|
+
Also, many thanks to Eric Hodel for assisting with getting this release
|
100
|
+
out the door.
|
54
101
|
|
55
102
|
-- Jim Weirich
|
@@ -0,0 +1,178 @@
|
|
1
|
+
= Rake 10.0 Released
|
2
|
+
|
3
|
+
"Jim, when will Rake reach version 1.0?"
|
4
|
+
|
5
|
+
Over the past several years I've been asked that question at
|
6
|
+
conferences, panels and over twitter. Due to historical reasons (or
|
7
|
+
maybe just plain laziness) Rake has (incorrectly) been treating the
|
8
|
+
second digit of the version as the major release number. So in my head
|
9
|
+
Rake was already at version 9.
|
10
|
+
|
11
|
+
Well, it's time to fix things. This next version of Rake drops old,
|
12
|
+
crufty, backwards compatibility hacks such as top level constants, DSL
|
13
|
+
methods defined in Object and numerous other features that are just no
|
14
|
+
longer desired. It's also time to drop the leading zero from the
|
15
|
+
version number as well and call this new version of rake what it
|
16
|
+
really is: Version 10.
|
17
|
+
|
18
|
+
So, welcome to Rake 10.0!
|
19
|
+
|
20
|
+
Rake 10 is actually feature identical to the latest version of Rake 9
|
21
|
+
(that would be the version spelled 0.9.3), *except* that Rake 10 drops
|
22
|
+
all the sundry deprecated features that have accumulated over the years.
|
23
|
+
|
24
|
+
If your Rakefile is up to date and current with all the new features
|
25
|
+
of Rake 10, you are ready to go. If your Rakefile still uses a few
|
26
|
+
deprecated feeatures, feel free to use Rake 9 (0.9.3) with the same
|
27
|
+
feature set. Just be aware that future features will be in Rake 10
|
28
|
+
family line.
|
29
|
+
|
30
|
+
== Changes in 10.0
|
31
|
+
|
32
|
+
As mentioned above, there are no new features in Rake 10. However,
|
33
|
+
there are a number of features missing:
|
34
|
+
|
35
|
+
* Classic namespaces are now gone. Rake is no longer able to reflect
|
36
|
+
the options settings in the global variables ($rakefile, $show_tasks,
|
37
|
+
$show_prereqs, $trace, $dryrun and $silent). The
|
38
|
+
<tt>--classic-namespace</tt> option is no longer supported.
|
39
|
+
|
40
|
+
* Global constants are no longer supported. This includes
|
41
|
+
<tt>Task</tt>, <tt>FileTask</tt>, <tt>FileCreationTask</tt> and
|
42
|
+
<tt>RakeApp</tt>). The constant missing hook to warn about using
|
43
|
+
global rake constants has been removed.
|
44
|
+
|
45
|
+
* The Rake DSL methods (task, file, directory, etc) are in their own
|
46
|
+
module (Rake::DSL). The stub versions of these methods (that printed
|
47
|
+
warnings) in Object have been removed. However, the DSL methods are
|
48
|
+
added to the top-level <tt>main</tt> object. Since <tt>main</tt> is
|
49
|
+
not in the inheritance tree, the presence of the DSL methods in main
|
50
|
+
should be low impact on other libraries.
|
51
|
+
|
52
|
+
If you want to use the Rake DSL commands from your own code, just
|
53
|
+
include <tt>Rake::DSL</tt> into your own classes and modules.
|
54
|
+
|
55
|
+
* The deprecated syntax for task arguments (the one using
|
56
|
+
<tt>:needs</tt>) has been removed.
|
57
|
+
|
58
|
+
* The <tt>--reduce-compat</tt> flag has been removed (it's not needed
|
59
|
+
anymore).
|
60
|
+
|
61
|
+
* The deprecated <tt>rake/sys.rb</tt> library has been removed.
|
62
|
+
|
63
|
+
* The deprecated <tt>rake/rdoctask.rb</tt> library has been removed.
|
64
|
+
RDoc supplies its own rake task now.
|
65
|
+
|
66
|
+
* The deprecated <tt>rake/gempackagetask.rb</tt> library has been
|
67
|
+
removed. Gem supplies its own package task now.
|
68
|
+
|
69
|
+
There is one small behavioral change:
|
70
|
+
|
71
|
+
* Non-file tasks now always report the current time as their time
|
72
|
+
stamp. This is different from the previous behavior where non-file
|
73
|
+
tasks reported current time only if there were no prerequisites, and
|
74
|
+
the max prerequisite timestamp otherwise. This lead to inconsistent
|
75
|
+
and surprising behavior when adding prerequisites to tasks that in
|
76
|
+
turn were prequisites to file tasks. The new behavior is more
|
77
|
+
consistent and predictable.
|
78
|
+
|
79
|
+
== Changes (from 0.9.3)
|
80
|
+
|
81
|
+
Since Rake 10 includes the changes from the last version of Rake 9,
|
82
|
+
we'll repeat the changes for version 0.9.3 here.
|
83
|
+
|
84
|
+
=== New Features
|
85
|
+
|
86
|
+
* Multitask tasks now use a thread pool. Use -j to limit the number of
|
87
|
+
available threads.
|
88
|
+
|
89
|
+
* Use -m to turn regular tasks into multitasks (use at your own risk).
|
90
|
+
|
91
|
+
* You can now do "Rake.add_rakelib 'dir'" in your Rakefile to
|
92
|
+
programatically add rake task libraries.
|
93
|
+
|
94
|
+
* You can specific backtrace suppression patterns (see
|
95
|
+
--supress-backtrace)
|
96
|
+
|
97
|
+
* Directory tasks can now take prerequisites and actions
|
98
|
+
|
99
|
+
* Use --backtrace to request a full backtrace without the task trace.
|
100
|
+
|
101
|
+
* You can say "--backtrace=stdout" and "--trace=stdout" to route trace
|
102
|
+
output to standard output rather than standard error.
|
103
|
+
|
104
|
+
* Optional 'phony' target (enable with 'require 'rake/phony'") for
|
105
|
+
special purpose builds.
|
106
|
+
|
107
|
+
* Task#clear now clears task comments as well as actions and
|
108
|
+
prerequisites. Task#clear_comment will specifically target comments.
|
109
|
+
|
110
|
+
* The --all option will force -T and -D to consider all the tasks,
|
111
|
+
with and without descriptions.
|
112
|
+
|
113
|
+
=== Bug Fixes
|
114
|
+
|
115
|
+
* Semi-colons in windows rakefile paths now work.
|
116
|
+
|
117
|
+
* Improved Control-C support when invoking multiple test suites.
|
118
|
+
|
119
|
+
* egrep method now reads files in text mode (better support for
|
120
|
+
Windows)
|
121
|
+
|
122
|
+
* Better deprecation line number reporting.
|
123
|
+
|
124
|
+
* The -W option now works with all tasks, whether they have a
|
125
|
+
description or not.
|
126
|
+
|
127
|
+
* File globs in rake should not be sorted alphabetically, independent
|
128
|
+
of file system and platform.
|
129
|
+
|
130
|
+
* Numerous internal improvements.
|
131
|
+
|
132
|
+
* Documentation typos and fixes.
|
133
|
+
|
134
|
+
== What is Rake
|
135
|
+
|
136
|
+
Rake is a build tool similar to the make program in many ways. But
|
137
|
+
instead of cryptic make recipes, Rake uses standard Ruby code to
|
138
|
+
declare tasks and dependencies. You have the full power of a modern
|
139
|
+
scripting language built right into your build tool.
|
140
|
+
|
141
|
+
== Availability
|
142
|
+
|
143
|
+
The easiest way to get and install rake is via RubyGems ...
|
144
|
+
|
145
|
+
gem install rake (you may need root/admin privileges)
|
146
|
+
|
147
|
+
Otherwise, you can get it from the more traditional places:
|
148
|
+
|
149
|
+
Home Page:: http://github.com/jimweirich/rake
|
150
|
+
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
151
|
+
GitHub:: git://github.com/jimweirich/rake.git
|
152
|
+
|
153
|
+
== Thanks
|
154
|
+
|
155
|
+
As usual, it was input from users that drove a alot of these changes. The
|
156
|
+
following people either contributed patches, made suggestions or made
|
157
|
+
otherwise helpful comments. Thanks to ...
|
158
|
+
|
159
|
+
* Aaron Patterson
|
160
|
+
* Dylan Smith
|
161
|
+
* Jo Liss
|
162
|
+
* Jonas Pfenniger
|
163
|
+
* Kazuki Tsujimoto
|
164
|
+
* Michael Bishop
|
165
|
+
* Michael Elufimov
|
166
|
+
* NAKAMURA Usaku
|
167
|
+
* Ryan Davis
|
168
|
+
* Sam Grönblom
|
169
|
+
* Sam Phippen
|
170
|
+
* Sergio Wong
|
171
|
+
* Tay Ray Chuan
|
172
|
+
* grosser
|
173
|
+
* quix
|
174
|
+
|
175
|
+
Also, many thanks to Eric Hodel for assisting with getting this release
|
176
|
+
out the door.
|
177
|
+
|
178
|
+
-- Jim Weirich
|
data/lib/rake/application.rb
CHANGED
@@ -407,11 +407,6 @@ module Rake
|
|
407
407
|
"Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')",
|
408
408
|
lambda { |value| options.rakelib = value.split(File::PATH_SEPARATOR) }
|
409
409
|
],
|
410
|
-
['--reduce-compat', "Remove DSL in Object; remove Module#const_missing which defines ::Task etc.",
|
411
|
-
# Load-time option.
|
412
|
-
# Handled in bin/rake where Rake::REDUCE_COMPAT is defined (or not).
|
413
|
-
lambda { |_| }
|
414
|
-
],
|
415
410
|
['--require', '-r MODULE', "Require MODULE before executing rakefile.",
|
416
411
|
lambda { |value|
|
417
412
|
begin
|
data/lib/rake/task.rb
CHANGED
@@ -237,7 +237,7 @@ module Rake
|
|
237
237
|
# Timestamp for this task. Basic tasks return the current time for their
|
238
238
|
# time stamp. Other tasks can be more sophisticated.
|
239
239
|
def timestamp
|
240
|
-
|
240
|
+
Time.now
|
241
241
|
end
|
242
242
|
|
243
243
|
# Add a description to the task. The description can consist of an option
|
data/lib/rake/version.rb
CHANGED
data/test/test_rake_file_task.rb
CHANGED
@@ -59,7 +59,7 @@ class TestRakeFileTask < Rake::TestCase
|
|
59
59
|
|
60
60
|
task(name => :phony)
|
61
61
|
|
62
|
-
assert
|
62
|
+
assert t1.needed?, "unless the non-file task has a timestamp"
|
63
63
|
end
|
64
64
|
|
65
65
|
def test_file_times_old_depends_on_new
|
@@ -83,7 +83,7 @@ class TestRakeFileTask < Rake::TestCase
|
|
83
83
|
|
84
84
|
Task[:obj].invoke
|
85
85
|
Task[NEWFILE].invoke
|
86
|
-
assert
|
86
|
+
assert @runs.include?(NEWFILE)
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_existing_file_depends_on_non_existing_file
|
@@ -13,10 +13,6 @@ class TestRakeReduceCompat < Rake::TestCase
|
|
13
13
|
rake task_name.to_s
|
14
14
|
end
|
15
15
|
|
16
|
-
def invoke_reduce_compat(task_name)
|
17
|
-
rake "--reduce-compat", task_name.to_s
|
18
|
-
end
|
19
|
-
|
20
16
|
def test_no_deprecated_dsl
|
21
17
|
rakefile %q{
|
22
18
|
task :check_task do
|
@@ -30,8 +26,5 @@ class TestRakeReduceCompat < Rake::TestCase
|
|
30
26
|
|
31
27
|
assert_equal "nil", invoke_normal(:check_task).chomp
|
32
28
|
assert_equal "nil", invoke_normal(:check_file).chomp
|
33
|
-
|
34
|
-
assert_equal "nil", invoke_reduce_compat(:check_task).chomp
|
35
|
-
assert_equal "nil", invoke_reduce_compat(:check_file).chomp
|
36
29
|
end
|
37
30
|
end
|
data/test/test_rake_task.rb
CHANGED
@@ -238,7 +238,7 @@ class TestRakeTask < Rake::TestCase
|
|
238
238
|
def b.timestamp() Time.now + 10 end
|
239
239
|
def c.timestamp() Time.now + 5 end
|
240
240
|
|
241
|
-
assert_in_delta now
|
241
|
+
assert_in_delta now, a.timestamp, 0.1, 'computer too slow?'
|
242
242
|
end
|
243
243
|
|
244
244
|
def test_always_multitask
|
@@ -2,18 +2,6 @@ require File.expand_path('../helper', __FILE__)
|
|
2
2
|
|
3
3
|
class TestRakeTaskManagerArgumentResolution < Rake::TestCase
|
4
4
|
|
5
|
-
def setup
|
6
|
-
super
|
7
|
-
|
8
|
-
Rake.application.options.ignore_deprecate = true
|
9
|
-
end
|
10
|
-
|
11
|
-
def teardown
|
12
|
-
Rake.application.options.ignore_deprecate = false
|
13
|
-
|
14
|
-
super
|
15
|
-
end
|
16
|
-
|
17
5
|
def test_good_arg_patterns
|
18
6
|
assert_equal [:t, [], []], task(:t)
|
19
7
|
assert_equal [:t, [], [:x]], task(:t => :x)
|
@@ -40,14 +40,6 @@ class TestRakeTaskWithArguments < Rake::TestCase
|
|
40
40
|
assert_equal ["pre"], t.prerequisites
|
41
41
|
end
|
42
42
|
|
43
|
-
def test_illegal_keys_in_task_name_hash
|
44
|
-
ignore_deprecations do
|
45
|
-
assert_raises RuntimeError do
|
46
|
-
t = task(:t, :x, :y => 1, :needs => [:pre])
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
43
|
def test_arg_list_is_empty_if_no_args_given
|
52
44
|
t = task(:t) { |tt, args| assert_equal({}, args.to_hash) }
|
53
45
|
t.invoke(1, 2, 3)
|
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: 10.0.0.beta.
|
4
|
+
version: 10.0.0.beta.2
|
5
5
|
prerelease: 7
|
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-10-
|
12
|
+
date: 2012-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -62,8 +62,10 @@ extra_rdoc_files:
|
|
62
62
|
- doc/release_notes/rake-0.8.7.rdoc
|
63
63
|
- doc/release_notes/rake-0.9.0.rdoc
|
64
64
|
- doc/release_notes/rake-0.9.1.rdoc
|
65
|
+
- doc/release_notes/rake-0.9.2.2.rdoc
|
65
66
|
- doc/release_notes/rake-0.9.2.rdoc
|
66
67
|
- doc/release_notes/rake-0.9.3.rdoc
|
68
|
+
- doc/release_notes/rake-10.0.0.rdoc
|
67
69
|
files:
|
68
70
|
- .gemtest
|
69
71
|
- install.rb
|
@@ -195,8 +197,10 @@ files:
|
|
195
197
|
- doc/release_notes/rake-0.8.7.rdoc
|
196
198
|
- doc/release_notes/rake-0.9.0.rdoc
|
197
199
|
- doc/release_notes/rake-0.9.1.rdoc
|
200
|
+
- doc/release_notes/rake-0.9.2.2.rdoc
|
198
201
|
- doc/release_notes/rake-0.9.2.rdoc
|
199
202
|
- doc/release_notes/rake-0.9.3.rdoc
|
203
|
+
- doc/release_notes/rake-10.0.0.rdoc
|
200
204
|
homepage: http://rake.rubyforge.org
|
201
205
|
licenses: []
|
202
206
|
post_install_message:
|