rake 10.4.2 → 13.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.rdoc +16 -7
  3. data/Gemfile +10 -0
  4. data/History.rdoc +2022 -287
  5. data/README.rdoc +40 -25
  6. data/Rakefile +25 -65
  7. data/bin/bundle +105 -0
  8. data/bin/console +7 -0
  9. data/bin/rake +20 -24
  10. data/bin/rdoc +29 -0
  11. data/bin/rubocop +29 -0
  12. data/bin/setup +6 -0
  13. data/doc/glossary.rdoc +10 -11
  14. data/doc/jamis.rb +1 -0
  15. data/doc/rake.1 +139 -124
  16. data/doc/rakefile.rdoc +2 -33
  17. data/exe/rake +27 -0
  18. data/lib/rake.rb +35 -43
  19. data/lib/rake/application.rb +125 -91
  20. data/lib/rake/backtrace.rb +3 -2
  21. data/lib/rake/clean.rb +8 -6
  22. data/lib/rake/cloneable.rb +1 -0
  23. data/lib/rake/cpu_counter.rb +10 -28
  24. data/lib/rake/default_loader.rb +1 -0
  25. data/lib/rake/dsl_definition.rb +6 -12
  26. data/lib/rake/early_time.rb +1 -0
  27. data/lib/rake/ext/core.rb +1 -0
  28. data/lib/rake/ext/string.rb +24 -21
  29. data/lib/rake/file_creation_task.rb +4 -3
  30. data/lib/rake/file_list.rb +35 -28
  31. data/lib/rake/file_task.rb +12 -4
  32. data/lib/rake/file_utils.rb +38 -32
  33. data/lib/rake/file_utils_ext.rb +8 -18
  34. data/lib/rake/invocation_chain.rb +1 -0
  35. data/lib/rake/invocation_exception_mixin.rb +1 -0
  36. data/lib/rake/late_time.rb +2 -1
  37. data/lib/rake/linked_list.rb +24 -15
  38. data/lib/rake/loaders/makefile.rb +23 -9
  39. data/lib/rake/multi_task.rb +2 -1
  40. data/lib/rake/name_space.rb +1 -1
  41. data/lib/rake/packagetask.rb +40 -17
  42. data/lib/rake/phony.rb +2 -1
  43. data/lib/rake/private_reader.rb +1 -0
  44. data/lib/rake/promise.rb +13 -12
  45. data/lib/rake/pseudo_status.rb +1 -0
  46. data/lib/rake/rake_module.rb +30 -1
  47. data/lib/rake/rake_test_loader.rb +18 -13
  48. data/lib/rake/rule_recursion_overflow_error.rb +2 -2
  49. data/lib/rake/scope.rb +3 -2
  50. data/lib/rake/task.rb +82 -31
  51. data/lib/rake/task_argument_error.rb +1 -0
  52. data/lib/rake/task_arguments.rb +15 -4
  53. data/lib/rake/task_manager.rb +54 -33
  54. data/lib/rake/tasklib.rb +2 -14
  55. data/lib/rake/testtask.rb +40 -63
  56. data/lib/rake/thread_history_display.rb +4 -3
  57. data/lib/rake/thread_pool.rb +16 -17
  58. data/lib/rake/trace_output.rb +2 -1
  59. data/lib/rake/version.rb +4 -1
  60. data/lib/rake/win32.rb +10 -15
  61. data/rake.gemspec +43 -0
  62. metadata +33 -270
  63. data/.autotest +0 -7
  64. data/.gemtest +0 -0
  65. data/.rubocop.yml +0 -27
  66. data/.togglerc +0 -7
  67. data/Manifest.txt +0 -166
  68. data/doc/release_notes/rake-0.4.14.rdoc +0 -23
  69. data/doc/release_notes/rake-0.4.15.rdoc +0 -35
  70. data/doc/release_notes/rake-0.5.0.rdoc +0 -53
  71. data/doc/release_notes/rake-0.5.3.rdoc +0 -78
  72. data/doc/release_notes/rake-0.5.4.rdoc +0 -46
  73. data/doc/release_notes/rake-0.6.0.rdoc +0 -141
  74. data/doc/release_notes/rake-0.7.0.rdoc +0 -119
  75. data/doc/release_notes/rake-0.7.1.rdoc +0 -59
  76. data/doc/release_notes/rake-0.7.2.rdoc +0 -121
  77. data/doc/release_notes/rake-0.7.3.rdoc +0 -47
  78. data/doc/release_notes/rake-0.8.0.rdoc +0 -114
  79. data/doc/release_notes/rake-0.8.2.rdoc +0 -165
  80. data/doc/release_notes/rake-0.8.3.rdoc +0 -112
  81. data/doc/release_notes/rake-0.8.4.rdoc +0 -147
  82. data/doc/release_notes/rake-0.8.5.rdoc +0 -53
  83. data/doc/release_notes/rake-0.8.6.rdoc +0 -37
  84. data/doc/release_notes/rake-0.8.7.rdoc +0 -55
  85. data/doc/release_notes/rake-0.9.0.rdoc +0 -112
  86. data/doc/release_notes/rake-0.9.1.rdoc +0 -52
  87. data/doc/release_notes/rake-0.9.2.2.rdoc +0 -55
  88. data/doc/release_notes/rake-0.9.2.rdoc +0 -49
  89. data/doc/release_notes/rake-0.9.3.rdoc +0 -102
  90. data/doc/release_notes/rake-0.9.4.rdoc +0 -60
  91. data/doc/release_notes/rake-0.9.5.rdoc +0 -55
  92. data/doc/release_notes/rake-0.9.6.rdoc +0 -64
  93. data/doc/release_notes/rake-10.0.0.rdoc +0 -178
  94. data/doc/release_notes/rake-10.0.1.rdoc +0 -58
  95. data/doc/release_notes/rake-10.0.2.rdoc +0 -53
  96. data/doc/release_notes/rake-10.0.3.rdoc +0 -191
  97. data/doc/release_notes/rake-10.1.0.rdoc +0 -61
  98. data/lib/rake/alt_system.rb +0 -110
  99. data/lib/rake/contrib/.document +0 -1
  100. data/lib/rake/contrib/compositepublisher.rb +0 -21
  101. data/lib/rake/contrib/ftptools.rb +0 -137
  102. data/lib/rake/contrib/publisher.rb +0 -81
  103. data/lib/rake/contrib/rubyforgepublisher.rb +0 -18
  104. data/lib/rake/contrib/sshpublisher.rb +0 -61
  105. data/lib/rake/contrib/sys.rb +0 -4
  106. data/lib/rake/ext/module.rb +0 -2
  107. data/lib/rake/ext/pathname.rb +0 -25
  108. data/lib/rake/ext/time.rb +0 -16
  109. data/lib/rake/gempackagetask.rb +0 -4
  110. data/lib/rake/pathmap.rb +0 -3
  111. data/lib/rake/rdoctask.rb +0 -4
  112. data/lib/rake/ruby182_test_unit_fix.rb +0 -29
  113. data/lib/rake/runtest.rb +0 -27
  114. data/rakelib/publish.rake +0 -20
  115. data/rakelib/test_times.rake +0 -25
  116. data/test/file_creation.rb +0 -34
  117. data/test/helper.rb +0 -130
  118. data/test/support/rakefile_definitions.rb +0 -478
  119. data/test/support/ruby_runner.rb +0 -34
  120. data/test/test_private_reader.rb +0 -42
  121. data/test/test_rake.rb +0 -40
  122. data/test/test_rake_application.rb +0 -643
  123. data/test/test_rake_application_options.rb +0 -466
  124. data/test/test_rake_backtrace.rb +0 -119
  125. data/test/test_rake_clean.rb +0 -61
  126. data/test/test_rake_cpu_counter.rb +0 -68
  127. data/test/test_rake_definitions.rb +0 -84
  128. data/test/test_rake_directory_task.rb +0 -76
  129. data/test/test_rake_dsl.rb +0 -40
  130. data/test/test_rake_early_time.rb +0 -31
  131. data/test/test_rake_extension.rb +0 -59
  132. data/test/test_rake_file_creation_task.rb +0 -56
  133. data/test/test_rake_file_list.rb +0 -655
  134. data/test/test_rake_file_list_path_map.rb +0 -8
  135. data/test/test_rake_file_task.rb +0 -197
  136. data/test/test_rake_file_utils.rb +0 -309
  137. data/test/test_rake_ftp_file.rb +0 -74
  138. data/test/test_rake_functional.rb +0 -482
  139. data/test/test_rake_invocation_chain.rb +0 -64
  140. data/test/test_rake_late_time.rb +0 -18
  141. data/test/test_rake_linked_list.rb +0 -84
  142. data/test/test_rake_makefile_loader.rb +0 -46
  143. data/test/test_rake_multi_task.rb +0 -64
  144. data/test/test_rake_name_space.rb +0 -57
  145. data/test/test_rake_package_task.rb +0 -79
  146. data/test/test_rake_path_map.rb +0 -168
  147. data/test/test_rake_path_map_explode.rb +0 -34
  148. data/test/test_rake_path_map_partial.rb +0 -18
  149. data/test/test_rake_pathname_extensions.rb +0 -15
  150. data/test/test_rake_pseudo_status.rb +0 -21
  151. data/test/test_rake_rake_test_loader.rb +0 -20
  152. data/test/test_rake_reduce_compat.rb +0 -26
  153. data/test/test_rake_require.rb +0 -40
  154. data/test/test_rake_rules.rb +0 -388
  155. data/test/test_rake_scope.rb +0 -44
  156. data/test/test_rake_task.rb +0 -393
  157. data/test/test_rake_task_argument_parsing.rb +0 -119
  158. data/test/test_rake_task_arguments.rb +0 -127
  159. data/test/test_rake_task_lib.rb +0 -9
  160. data/test/test_rake_task_manager.rb +0 -178
  161. data/test/test_rake_task_manager_argument_resolution.rb +0 -19
  162. data/test/test_rake_task_with_arguments.rb +0 -172
  163. data/test/test_rake_test_task.rb +0 -146
  164. data/test/test_rake_thread_pool.rb +0 -145
  165. data/test/test_rake_top_level_functions.rb +0 -71
  166. data/test/test_rake_win32.rb +0 -72
  167. data/test/test_thread_history_display.rb +0 -101
  168. data/test/test_trace_output.rb +0 -52
data/bin/setup ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
data/doc/glossary.rdoc CHANGED
@@ -1,12 +1,12 @@
1
1
  = Glossary
2
2
 
3
3
  action ::
4
- Code to be executed in order to perform a task. Actions in a rakefile are
5
- specified in a code block (usually delimited by +do+/+end+ pairs.
4
+ Code to be executed in order to perform a task. Actions in a Rakefile are
5
+ specified in a code block. (Usually delimited by +do+/+end+ pairs.)
6
6
 
7
7
  execute ::
8
- When a task is executed, all of its actions are performed, in the order they
9
- were defined. Note that unlike <tt>invoke</tt>, <tt>execute</tt> always
8
+ When a task is executed, all of its actions are performed in the order they
9
+ were defined. Note that, unlike <tt>invoke</tt>, <tt>execute</tt> always
10
10
  executes the actions (without invoking or executing the prerequisites).
11
11
 
12
12
  file task (Rake::FileTask) ::
@@ -22,15 +22,15 @@ file task (Rake::FileTask) ::
22
22
 
23
23
  invoke ::
24
24
  When a task is invoked, first we check to see if it has been invoked before.
25
- If it has been, then nothing else is done. If this is the first time its
25
+ If it has been, then nothing else is done. If this is the first time it has
26
26
  been invoked, then we invoke each of its prerequisites. Finally, we check
27
27
  to see if we need to execute the actions of this task by calling
28
- Rake::Task#needed?. Finally, if the task is needed, we execute its actions.
28
+ Rake::Task#needed?. If the task is needed, we execute its actions.
29
29
 
30
- NOTE: Prerequisites are invoked even if the task is not needed.
30
+ NOTE: Prerequisites are still invoked even if the task is not needed.
31
31
 
32
32
  prerequisites ::
33
- Every task has a set (possibly empty) of prerequisites. A prerequisite P to
33
+ Every task has a (possibly empty) set of prerequisites. A prerequisite P to
34
34
  Task T is itself a task that must be invoked before Task T.
35
35
 
36
36
  rule ::
@@ -38,6 +38,5 @@ rule ::
38
38
  defined. Rules generally synthesize file tasks.
39
39
 
40
40
  task (Rake::Task) ::
41
- Basic unit of work in a rakefile. A task has a name, a set of prerequisites
42
- and a list of actions to be performed.
43
-
41
+ The basic unit of work in a Rakefile. A task has a name, a set of
42
+ prerequisites, and a list of actions to be performed.
data/doc/jamis.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module RDoc
2
3
  module Page
3
4
 
data/doc/rake.1 CHANGED
@@ -1,141 +1,156 @@
1
- .\" Hey, EMACS: -*- nroff -*-
2
- .\" First parameter, NAME, should be all caps
3
- .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4
- .\" other parameters are allowed: see man(7), man(1)
5
- .TH RAKE 1 "August 27, 2014" "rake 10.3.2" "Rake User Commands"
6
- .\" Please adjust this date whenever revising the manpage.
7
- .\"
8
- .\" Some roff macros, for reference:
9
- .\" .nh disable hyphenation
10
- .\" .hy enable hyphenation
11
- .\" .ad l left justify
12
- .\" .ad b justify to both left and right margins
13
- .\" .nf disable filling
14
- .\" .fi enable filling
15
- .\" .br insert line break
16
- .\" .sp <n> insert n+1 empty lines
17
- .\" for manpage-specific macros, see man(7)
18
- .SH NAME
19
- rake \- a make-like build utility for Ruby
20
- .SH SYNOPSIS
21
- \fBrake\fR [\fI\-f rakefile\fR] {\fIOPTIONS\fR} \fITARGETS...\fR
22
- .br
23
- .SH DESCRIPTION
24
- .B rake
25
- is a make-like build utility for Ruby. Tasks and dependencies are specified in
26
- standard Ruby syntax.
27
- .SH OPTIONS
28
- .TP
29
- \fB\-m\fR, \fB\-\-multitask\fR
1
+ .Dd June 12, 2016
2
+ .Dt RAKE 1
3
+ .Os rake 11.2.2
4
+ .Sh NAME
5
+ .Nm rake
6
+ .Nd make-like build utility for Ruby
7
+ .Sh SYNOPSIS
8
+ .Nm
9
+ .Op Fl f Ar rakefile
10
+ .Op Ar options
11
+ .Ar targets ...
12
+ .Sh DESCRIPTION
13
+ .Nm
14
+ is a
15
+ .Xr make 1 Ns -like
16
+ build utility for Ruby.
17
+ Tasks and dependencies are specified in standard Ruby syntax.
18
+ .Sh OPTIONS
19
+ .Bl -tag -width Ds
20
+ .It Fl m , Fl -multitask
30
21
  Treat all tasks as multitasks.
31
- .TP
32
- \fB\-B\fR, \fB\-\-build\-all\fR
22
+ .It Fl B , Fl -build-all
33
23
  Build all prerequisites, including those which are up\-to\-date.
34
-
35
- .TP
36
- \fB\-j\fR, \fB\-\-jobs\fR [\fINUMBER\fR]
24
+ .It Fl j , Fl -jobs Ar num_jobs
37
25
  Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).
38
-
39
- .SS Modules
40
- .TP
41
- \fB\-I\fR, \fB\-\-libdir\fR \fILIBDIR\fR
42
- Include \fILIBDIR\fR in the search path for required modules.
43
- .TP
44
- \fB\-r\fR, \fB\-\-require\fR \fIMODULE\fR
45
- Require \fIMODULE\fR before executing rakefile.
46
-
47
- .SS Rakefile location
48
- .TP
49
- \fB\-f\fR, \fB\-\-rakefile\fR [\fIFILENAME\fR]
50
- Use \fIFILENAME\fR as the rakefile to search for.
51
- .TP
52
- \fB\-N\fR, \fB\-\-no\-search\fR, \fB\-\-nosearch\fR
26
+ .El
27
+ .Ss Modules
28
+ .Bl -tag -width Ds
29
+ .It Fl I , Fl -libdir Ar libdir
30
+ Include
31
+ .Ar libdir
32
+ in the search path for required modules.
33
+ .It Fl r , Fl -require Ar module
34
+ Require
35
+ .Ar module
36
+ before executing
37
+ .Pa rakefile .
38
+ .El
39
+ .Ss Rakefile location
40
+ .Bl -tag -width Ds
41
+ .It Fl f , Fl -rakefile Ar filename
42
+ Use
43
+ .Ar filename
44
+ as the rakefile to search for.
45
+ .It Fl N , Fl -no-search , Fl -nosearch
53
46
  Do not search parent directories for the Rakefile.
54
- .TP
55
- \fB\-G\fR, \fB\-\-no\-system\fR, \fB\-\-nosystem\fR
47
+ .It Fl G , Fl -no-system , Fl -nosystem
56
48
  Use standard project Rakefile search paths, ignore system wide rakefiles.
57
- .TP
58
- \fB\-R\fR, \fB\-\-rakelibdir\fR \fIRAKELIBDIR\fR
59
- Auto\-import any .rake files in \fIRAKELIBDIR\fR (default is 'rakelib')
60
- .HP
61
- \fB\-\-rakelib\fR
62
- .TP
63
- \fB\-g\fR, \fB\-\-system\fR
64
- Using system wide (global) rakefiles (usually '\fI~/.rake/*.rake\fR').
65
-
66
- .SS Debugging
67
- .TP
68
- \fB\-\-backtrace\fR=\fI\,[OUT]\/\fR
69
- Enable full backtrace. \fIOUT\fR can be stderr (default) or stdout.
70
- .TP
71
- \fB\-t\fR, \fB\-\-trace\fR=\fI\,[OUT]\/\fR
72
- Turn on invoke/execute tracing, enable full backtrace. \fIOUT\fR can be stderr (default) or stdout.
73
- .TP
74
- \fB\-\-suppress\-backtrace\fR \fIPATTERN\fR
75
- Suppress backtrace lines matching regexp \fIPATTERN\fR. Ignored if \fI\-\-trace\fR is on.
76
- .TP
77
- \fB\-\-rules\fR
49
+ .It Fl R , Fl -rakelib Ar rakelibdir , Fl -rakelibdir Ar rakelibdir
50
+ Auto-import any .rake files in
51
+ .Ar rakelibdir
52
+ (default is
53
+ .Sq rakelib )
54
+ .It Fl g , Fl -system
55
+ Use system-wide (global) rakefiles (usually
56
+ .Pa ~/.rake/*.rake ) .
57
+ .El
58
+ .Ss Debugging
59
+ .Bl -tag -width Ds
60
+ .It Fl -backtrace Ns = Ns Ar out
61
+ Enable full backtrace.
62
+ .Ar out
63
+ can be
64
+ .Dv stderr
65
+ (default) or
66
+ .Dv stdout .
67
+ .It Fl t , Fl -trace Ns = Ns Ar out
68
+ Turn on invoke/execute tracing, enable full backtrace.
69
+ .Ar out
70
+ can be
71
+ .Dv stderr
72
+ (default) or
73
+ .Dv stdout .
74
+ .It Fl -suppress-backtrace Ar pattern
75
+ Suppress backtrace lines matching regexp
76
+ .Ar pattern .
77
+ Ignored if
78
+ .Fl -trace
79
+ is on.
80
+ .It Fl -rules
78
81
  Trace the rules resolution.
79
-
80
- .TP
81
- \fB\-n\fR, \fB\-\-dry\-run\fR
82
+ .It Fl n , Fl -dry-run
82
83
  Do a dry run without executing actions.
83
- .TP
84
- \fB\-T\fR, \fB\-\-tasks\fR [\fIPATTERN\fR]
85
- Display the tasks (matching optional \fIPATTERN\fR) with descriptions, then exit.
86
- .TP
87
- \fB\-D\fR, \fB\-\-describe\fR [\fIPATTERN\fR]
88
- Describe the tasks (matching optional \fIPATTERN\fR), then exit.
89
- .TP
90
- \fB\-W\fR, \fB\-\-where\fR [\fIPATTERN\fR]
91
- Describe the tasks (matching optional \fIPATTERN\fR), then exit.
92
- .TP
93
- \fB\-P\fR, \fB\-\-prereqs\fR
84
+ .It Fl T , Fl -tasks Op Ar pattern
85
+ Display the tasks (matching optional
86
+ .Ar pattern )
87
+ with descriptions, then exit.
88
+ .It Fl D , Fl -describe Op Ar pattern
89
+ Describe the tasks (matching optional
90
+ .Ar pattern ) ,
91
+ then exit.
92
+ .It Fl W , Fl -where Op Ar pattern
93
+ Describe the tasks (matching optional
94
+ .Ar pattern ) ,
95
+ then exit.
96
+ .It Fl P , Fl -prereqs
94
97
  Display the tasks and dependencies, then exit.
95
-
96
- .TP
97
- \fB\-e\fR, \fB\-\-execute\fR \fICODE\fR
98
+ .It Fl e , Fl -execute Ar code
98
99
  Execute some Ruby code and exit.
99
- .TP
100
- \fB\-p\fR, \fB\-\-execute\-print\fR \fICODE\fR
100
+ .It Fl p , Fl -execute-print Ar code
101
101
  Execute some Ruby code, print the result, then exit.
102
- .TP
103
- \fB\-E\fR, \fB\-\-execute\-continue\fR \fICODE\fR
102
+ .It Fl E , Fl -execute-continue Ar code
104
103
  Execute some Ruby code, then continue with normal task processing.
105
-
106
- .SS Information
107
- .TP
108
- \fB\-v\fR, \fB\-\-verbose\fR
104
+ .El
105
+ .Ss Information
106
+ .Bl -tag -width Ds
107
+ .It Fl v , Fl -verbose
109
108
  Log message to standard output.
110
- .TP
111
- \fB\-q\fR, \fB\-\-quiet\fR
109
+ .It Fl q , Fl -quiet
112
110
  Do not log messages to standard output.
113
- .TP
114
- \fB\-s\fR, \fB\-\-silent\fR
115
- Like \fB\-\-quiet\fR, but also suppresses the 'in directory' announcement.
116
- .TP
117
- \fB\-X\fR, \fB\-\-no\-deprecation\-warnings\fR
111
+ .It Fl s , Fl -silent
112
+ Like
113
+ .Fl -quiet ,
114
+ but also suppresses the
115
+ .Sq in directory
116
+ announcement.
117
+ .It Fl X , Fl -no-deprecation-warnings
118
118
  Disable the deprecation warnings.
119
- .TP
120
- \fB\-\-comments\fR
119
+ .It Fl -comments
121
120
  Show commented tasks only
122
- .TP
123
- \fB\-A\fR, \fB\-\-all\fR
124
- Show all tasks, even uncommented ones (in combination with \fB\-T\fR or \fB\-D\fR)
125
- .TP
126
- \fB\-\-job\-stats\fR [\fILEVEL\fR]
127
- Display job statistics. \fILEVEL=history\fR displays a complete job list
128
- .TP
129
- \fB\-V\fR, \fB\-\-version\fR
121
+ .It Fl A , Fl -all
122
+ Show all tasks, even uncommented ones (in combination with
123
+ .Fl T
124
+ or
125
+ .Fl D )
126
+ .It Fl -job-stats Op Ar level
127
+ Display job statistics.
128
+ If
129
+ .Ar level
130
+ is
131
+ .Sq history ,
132
+ displays a complete job list.
133
+ .It Fl V , Fl -version
130
134
  Display the program version.
131
- .TP
132
- \fB\-h\fR, \fB\-H\fR, \fB\-\-help\fR
135
+ .It Fl h , Fl H , Fl -help
133
136
  Display a help message.
134
-
135
- .SH SEE ALSO
136
- The complete documentation for \fBrake\fR has been installed at \fI/usr/share/doc/rake-doc/html/index.html\fR. It is also available online at \fIhttp://docs.seattlerb.org/rake\fR.
137
- .SH AUTHOR
138
- .B rake
139
- was written by Jim Weirich <jim@weirichhouse.org>
140
- .PP
141
- This manual was created by Caitlin Matos <caitlin.matos@zoho.com> for the Debian project (but may be used by others). It was inspired by the manual by Jani Monoses <jani@iv.ro> for the Ubuntu project.
137
+ .El
138
+ .Sh SEE ALSO
139
+ The complete documentation for
140
+ .Nm rake
141
+ has been installed at
142
+ .Pa /usr/share/doc/rake-doc/html/index.html .
143
+ It is also available online at
144
+ .Lk https://ruby.github.io/rake .
145
+ .Sh AUTHORS
146
+ .An -nosplit
147
+ .Nm
148
+ was written by
149
+ .An Jim Weirich Aq Mt jim@weirichhouse.org .
150
+ .Pp
151
+ This manual was created by
152
+ .An Caitlin Matos Aq Mt caitlin.matos@zoho.com
153
+ for the Debian project (but may be used by others).
154
+ It was inspired by the manual by
155
+ .An Jani Monoses Aq Mt jani@iv.ro
156
+ for the Ubuntu project.
data/doc/rakefile.rdoc CHANGED
@@ -197,35 +197,6 @@ argument string should be quoted. Something like this:
197
197
  (Quoting rules vary between operating systems and shells, so make sure
198
198
  you consult the proper docs for your OS/shell).
199
199
 
200
- === Task Arguments and the Environment
201
-
202
- Task argument values can also be picked up from the environment. For
203
- example, if the "release" task expected a parameter named
204
- "release_version", then either
205
-
206
- rake release[0.8.2]
207
-
208
- or
209
-
210
- RELEASE_VERSION=0.8.2 rake release
211
-
212
- or, alternatively
213
-
214
- rake release RELEASE_VERSION=0.8.2
215
-
216
- will work. Environment variable names must either match the task
217
- parameter exactly, or match an all-uppercase version of the task
218
- parameter.
219
-
220
- *NOTE:* A variable declared within a rake command will
221
- not persist in the environment:
222
-
223
- $ export VALUE=old
224
- $ rake print_value VALUE=new
225
- new
226
- $ rake print_value
227
- old
228
-
229
200
  === Tasks that Expect Parameters
230
201
 
231
202
  Parameters are only given to tasks that are setup to expect them. In
@@ -252,9 +223,7 @@ behaviour can now accept a second parameter:
252
223
  The first argument of the block "t" is always bound to the current
253
224
  task object. The second argument "args" is an open-struct like object
254
225
  that allows access to the task arguments. Extra command line
255
- arguments to a task are ignored. Missing command line arguments are
256
- picked up from matching environment variables. If there are no
257
- matching environment variables, they are given the nil value.
226
+ arguments to a task are ignored.
258
227
 
259
228
  If you wish to specify default values for the arguments, you can use
260
229
  the with_defaults method in the task body. Here is the above example
@@ -441,7 +410,7 @@ display a list of tasks that have a description. If you use +desc+ to
441
410
  describe your major tasks, you have a semi-automatic way of generating
442
411
  a summary of your Rake file.
443
412
 
444
- traken$ rake -T
413
+ $ rake -T
445
414
  (in /home/.../rake)
446
415
  rake clean # Remove any temporary products.
447
416
  rake clobber # Remove any generated file.
data/exe/rake ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ #--
4
+ # Copyright (c) 2003, 2004, 2005, 2006, 2007 Jim Weirich
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to
8
+ # deal in the Software without restriction, including without limitation the
9
+ # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ # sell copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ # IN THE SOFTWARE.
23
+ #++
24
+
25
+ require "rake"
26
+
27
+ Rake.application.run
data/lib/rake.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
3
4
  #
@@ -20,54 +21,45 @@
20
21
  # IN THE SOFTWARE.
21
22
  #++
22
23
 
23
- module Rake
24
- VERSION = '10.4.2'
25
- end
24
+ module Rake; end
26
25
 
27
- require 'rake/version'
26
+ require "rake/version"
28
27
 
29
- # :stopdoc:
30
- # TODO: Remove in Rake 11
31
- RAKEVERSION = Rake::VERSION
32
- # :startdoc:
33
-
34
- require 'rbconfig'
35
- require 'fileutils'
36
- require 'singleton'
37
- require 'monitor'
38
- require 'optparse'
39
- require 'ostruct'
28
+ require "rbconfig"
29
+ require "fileutils"
30
+ require "singleton"
31
+ require "monitor"
32
+ require "optparse"
33
+ require "ostruct"
40
34
 
41
- require 'rake/ext/module'
42
- require 'rake/ext/string'
43
- require 'rake/ext/time'
35
+ require "rake/ext/string"
44
36
 
45
- require 'rake/win32'
37
+ require "rake/win32"
46
38
 
47
- require 'rake/linked_list'
48
- require 'rake/cpu_counter'
49
- require 'rake/scope'
50
- require 'rake/task_argument_error'
51
- require 'rake/rule_recursion_overflow_error'
52
- require 'rake/rake_module'
53
- require 'rake/trace_output'
54
- require 'rake/pseudo_status'
55
- require 'rake/task_arguments'
56
- require 'rake/invocation_chain'
57
- require 'rake/task'
58
- require 'rake/file_task'
59
- require 'rake/file_creation_task'
60
- require 'rake/multi_task'
61
- require 'rake/dsl_definition'
62
- require 'rake/file_utils_ext'
63
- require 'rake/file_list'
64
- require 'rake/default_loader'
65
- require 'rake/early_time'
66
- require 'rake/late_time'
67
- require 'rake/name_space'
68
- require 'rake/task_manager'
69
- require 'rake/application'
70
- require 'rake/backtrace'
39
+ require "rake/linked_list"
40
+ require "rake/cpu_counter"
41
+ require "rake/scope"
42
+ require "rake/task_argument_error"
43
+ require "rake/rule_recursion_overflow_error"
44
+ require "rake/rake_module"
45
+ require "rake/trace_output"
46
+ require "rake/pseudo_status"
47
+ require "rake/task_arguments"
48
+ require "rake/invocation_chain"
49
+ require "rake/task"
50
+ require "rake/file_task"
51
+ require "rake/file_creation_task"
52
+ require "rake/multi_task"
53
+ require "rake/dsl_definition"
54
+ require "rake/file_utils_ext"
55
+ require "rake/file_list"
56
+ require "rake/default_loader"
57
+ require "rake/early_time"
58
+ require "rake/late_time"
59
+ require "rake/name_space"
60
+ require "rake/task_manager"
61
+ require "rake/application"
62
+ require "rake/backtrace"
71
63
 
72
64
  $trace = false
73
65