rake 11.3.0 → 13.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/macos.yml +22 -0
  3. data/.github/workflows/ubuntu-rvm.yml +28 -0
  4. data/.github/workflows/ubuntu.yml +20 -0
  5. data/.github/workflows/windows.yml +20 -0
  6. data/CONTRIBUTING.rdoc +11 -4
  7. data/Gemfile +8 -1
  8. data/History.rdoc +171 -37
  9. data/README.rdoc +9 -11
  10. data/Rakefile +21 -13
  11. data/bin/bundle +105 -0
  12. data/bin/rake +29 -0
  13. data/bin/rdoc +29 -0
  14. data/bin/rubocop +29 -0
  15. data/doc/jamis.rb +1 -0
  16. data/doc/rake.1 +139 -124
  17. data/doc/rakefile.rdoc +2 -4
  18. data/exe/rake +1 -1
  19. data/lib/rake/application.rb +119 -79
  20. data/lib/rake/backtrace.rb +3 -2
  21. data/lib/rake/clean.rb +7 -5
  22. data/lib/rake/cloneable.rb +1 -0
  23. data/lib/rake/cpu_counter.rb +3 -2
  24. data/lib/rake/default_loader.rb +1 -0
  25. data/lib/rake/dsl_definition.rb +5 -4
  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 +22 -21
  29. data/lib/rake/file_creation_task.rb +4 -3
  30. data/lib/rake/file_list.rb +13 -14
  31. data/lib/rake/file_task.rb +12 -4
  32. data/lib/rake/file_utils.rb +17 -22
  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 +1 -0
  38. data/lib/rake/loaders/makefile.rb +5 -4
  39. data/lib/rake/multi_task.rb +2 -1
  40. data/lib/rake/name_space.rb +1 -1
  41. data/lib/rake/packagetask.rb +28 -16
  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 -12
  48. data/lib/rake/rule_recursion_overflow_error.rb +2 -1
  49. data/lib/rake/scope.rb +3 -2
  50. data/lib/rake/task.rb +70 -27
  51. data/lib/rake/task_argument_error.rb +1 -0
  52. data/lib/rake/task_arguments.rb +10 -4
  53. data/lib/rake/task_manager.rb +54 -39
  54. data/lib/rake/tasklib.rb +2 -1
  55. data/lib/rake/testtask.rb +28 -16
  56. data/lib/rake/thread_history_display.rb +4 -3
  57. data/lib/rake/thread_pool.rb +15 -14
  58. data/lib/rake/trace_output.rb +1 -0
  59. data/lib/rake/version.rb +3 -2
  60. data/lib/rake/win32.rb +9 -8
  61. data/lib/rake.rb +34 -33
  62. data/rake.gemspec +22 -9
  63. metadata +25 -108
  64. data/.gitignore +0 -14
  65. data/.rubocop.yml +0 -18
  66. data/.travis.yml +0 -28
  67. data/appveyor.yml +0 -22
  68. data/doc/release_notes/README.md +0 -4
  69. data/doc/release_notes/rake-0.4.14.rdoc +0 -23
  70. data/doc/release_notes/rake-0.4.15.rdoc +0 -35
  71. data/doc/release_notes/rake-0.5.0.rdoc +0 -53
  72. data/doc/release_notes/rake-0.5.3.rdoc +0 -78
  73. data/doc/release_notes/rake-0.5.4.rdoc +0 -46
  74. data/doc/release_notes/rake-0.6.0.rdoc +0 -141
  75. data/doc/release_notes/rake-0.7.0.rdoc +0 -119
  76. data/doc/release_notes/rake-0.7.1.rdoc +0 -59
  77. data/doc/release_notes/rake-0.7.2.rdoc +0 -121
  78. data/doc/release_notes/rake-0.7.3.rdoc +0 -47
  79. data/doc/release_notes/rake-0.8.0.rdoc +0 -114
  80. data/doc/release_notes/rake-0.8.2.rdoc +0 -165
  81. data/doc/release_notes/rake-0.8.3.rdoc +0 -112
  82. data/doc/release_notes/rake-0.8.4.rdoc +0 -147
  83. data/doc/release_notes/rake-0.8.5.rdoc +0 -53
  84. data/doc/release_notes/rake-0.8.6.rdoc +0 -37
  85. data/doc/release_notes/rake-0.8.7.rdoc +0 -55
  86. data/doc/release_notes/rake-0.9.0.rdoc +0 -112
  87. data/doc/release_notes/rake-0.9.1.rdoc +0 -52
  88. data/doc/release_notes/rake-0.9.2.2.rdoc +0 -55
  89. data/doc/release_notes/rake-0.9.2.rdoc +0 -49
  90. data/doc/release_notes/rake-0.9.3.rdoc +0 -102
  91. data/doc/release_notes/rake-0.9.4.rdoc +0 -60
  92. data/doc/release_notes/rake-0.9.5.rdoc +0 -55
  93. data/doc/release_notes/rake-0.9.6.rdoc +0 -64
  94. data/doc/release_notes/rake-10.0.0.rdoc +0 -178
  95. data/doc/release_notes/rake-10.0.1.rdoc +0 -58
  96. data/doc/release_notes/rake-10.0.2.rdoc +0 -53
  97. data/doc/release_notes/rake-10.0.3.rdoc +0 -191
  98. data/doc/release_notes/rake-10.1.0.rdoc +0 -61
  99. data/lib/rake/contrib/compositepublisher.rb +0 -21
  100. data/lib/rake/contrib/ftptools.rb +0 -137
  101. data/lib/rake/contrib/sshpublisher.rb +0 -60
  102. data/lib/rake/ext/pathname.rb +0 -25
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- *.bak
2
- *.rbc
3
- *.swp
4
- *~
5
- .#*
6
- .DS_Store
7
- .idea
8
- .rbx
9
- /.rdoc
10
- /TAGS
11
- /coverage
12
- /html
13
- /pkg
14
- Gemfile.lock
data/.rubocop.yml DELETED
@@ -1,18 +0,0 @@
1
- StringLiterals:
2
- Enabled: false
3
-
4
- SpaceAroundEqualsInParameterDefault:
5
- Enabled: false
6
-
7
- HashSyntax:
8
- Enabled: false
9
-
10
- LineLength:
11
- Enabled: true
12
- Max: 90
13
-
14
- WhileUntilModifier:
15
- Enabled: false
16
-
17
- IfUnlessModifier:
18
- Enabled: false
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.10
7
- - 2.2.5
8
- - 2.3.1
9
- - ruby-head
10
- - jruby-1.7.20
11
- - jruby-9.0.5.0
12
- - jruby-9.1.0.0
13
- - jruby-head
14
- - rbx-2
15
- - rbx
16
- before_install:
17
- - gem update bundler --no-document
18
- before_script:
19
- - unset JRUBY_OPTS
20
- script: ruby -Ilib exe/rake
21
- matrix:
22
- allow_failures:
23
- - rvm: jruby-head
24
- - rvm: rbx
25
- notifications:
26
- email:
27
- - hsbt@ruby-lang.org
28
- - drbrain@segment7.net
data/appveyor.yml DELETED
@@ -1,22 +0,0 @@
1
- ---
2
- version: "{build}"
3
- clone_depth: 10
4
- install:
5
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
6
- - ruby --version
7
- - gem --version
8
- - gem install minitest bundler --no-document
9
- build_script:
10
- - net user
11
- - net localgroup
12
- test_script:
13
- - ruby -Ilib exe/rake
14
- environment:
15
- matrix:
16
- - ruby_version: "193"
17
- - ruby_version: "200"
18
- - ruby_version: "200-x64"
19
- - ruby_version: "21"
20
- - ruby_version: "21-x64"
21
- - ruby_version: "22"
22
- - ruby_version: "22-x64"
@@ -1,4 +0,0 @@
1
- # Note: this release notes will never been updated
2
-
3
- The maintenance policy for release notes has been changed.
4
- Please see [History.rdoc](https://github.com/ruby/rake/blob/master/History.rdoc).
@@ -1,23 +0,0 @@
1
- = Rake 0.4.14 Released
2
-
3
- == Changes
4
-
5
- Version 0.4.14 is a compatibility fix to allow Rake's test task to
6
- work under Ruby 1.8.2. A change in the Test::Unit autorun feature
7
- prevented Rake from running any tests. This release fixes the
8
- problem.
9
-
10
- Rake 0.4.14 is the recommended release for anyone using Ruby 1.8.2.
11
-
12
- == What is Rake
13
-
14
- Rake is a build tool similar to the make program in many ways. But
15
- instead of cryptic make recipes, Rake uses standard Ruby code to
16
- declare tasks and dependencies. You have the full power of a modern
17
- scripting language built right into your build tool.
18
-
19
- == Availability
20
-
21
- Home Page:: http://rake.rubyforge.org/
22
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
23
-
@@ -1,35 +0,0 @@
1
- = Rake 0.4.15 Released
2
-
3
- == Changes
4
-
5
- Version 0.4.15 is a bug fix update for the Ruby 1.8.2 compatibility
6
- changes. This release includes:
7
-
8
- * Fixed a bug that prevented the TESTOPTS flag from working with the
9
- revised for 1.8.2 test task.
10
-
11
- * Updated the docs on --trace to indicate that it also enables a full
12
- backtrace on errors.
13
-
14
- * Several fixes for new warnings generated.
15
-
16
- == Mini-Roadmap
17
-
18
- I will continue to issue Rake updates in the 0.4.xx series as new
19
- Ruby-1.8.2 issues become manifest. Once the codebase stabilizes, I
20
- will release a 0.5.0 version incorporating all the changes. If you
21
- are not using Ruby-1.8.2 and wish to avoid version churn, I recommend
22
- staying with a release prior to Rake-0.4.14.
23
-
24
- == What is Rake
25
-
26
- Rake is a build tool similar to the make program in many ways. But
27
- instead of cryptic make recipes, Rake uses standard Ruby code to
28
- declare tasks and dependencies. You have the full power of a modern
29
- scripting language built right into your build tool.
30
-
31
- == Availability
32
-
33
- Home Page:: http://rake.rubyforge.org/
34
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
35
-
@@ -1,53 +0,0 @@
1
- = Rake 0.5.0 Released
2
-
3
- It has been a long time in coming, but we finally have a new version
4
- of Rake available.
5
-
6
- == Changes
7
-
8
- * Fixed bug where missing intermediate file dependencies could cause
9
- an abort with --trace or --dry-run. (Brian Candler)
10
-
11
- * Recursive rules are now supported (Tilman Sauerbeck).
12
-
13
- * Added tar.gz and tar.bz2 support to package task (Tilman Sauerbeck).
14
-
15
- * Added warning option for the Test Task (requested by Eric Hodel).
16
-
17
- * The jamis rdoc template is only used if it exists.
18
-
19
- * Added fix for Ruby 1.8.2 test/unit and rails problem.
20
-
21
- * Added contributed rake man file. (Jani Monoses)
22
-
23
- * Fixed documentation that was lacking the Rake module name (Tilman
24
- Sauerbeck).
25
-
26
- == What is Rake
27
-
28
- Rake is a build tool similar to the make program in many ways. But
29
- instead of cryptic make recipes, Rake uses standard Ruby code to
30
- declare tasks and dependencies. You have the full power of a modern
31
- scripting language built right into your build tool.
32
-
33
- == Availability
34
-
35
- The easiest way to get and install rake is via RubyGems ...
36
-
37
- gem install rake (you may need root/admin privileges)
38
-
39
- Otherwise, you can get it from the more traditional places:
40
-
41
- Home Page:: http://rake.rubyforge.org/
42
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
43
-
44
- == Thanks
45
-
46
- Lots of people provided input to this release. Thanks to Tilman
47
- Sauerbeck for numerous patches, documentation fixes and suggestions.
48
- And for also pushing me to get this release out. Also, thanks to
49
- Brian Candler for the finding and fixing --trace/dry-run fix. That
50
- was an obscure bug. Also to Eric Hodel for some good suggestions.
51
-
52
- -- Jim Weirich
53
-
@@ -1,78 +0,0 @@
1
- = Rake 0.5.3 Released
2
-
3
- Although it has only been two weeks since the last release, we have
4
- enough updates to the Rake program to make it time for another
5
- release.
6
-
7
- == Changes
8
-
9
- Here are the changes for version 0.5.3 ...
10
-
11
- * FileLists have been extensively changed so that they mimic the
12
- behavior of real arrays even more closely. In particular,
13
- operations on FileLists that return a new collection (e.g. collect,
14
- reject) will now return a FileList rather than an array. In
15
- addition, several places where FileLists were not properly expanded
16
- before use have been fixed.
17
-
18
- * A method (+ext+) to simplify the handling of file extensions was
19
- added to String and to Array.
20
-
21
- * The 'testrb' script in test/unit tends to silently swallow syntax
22
- errors in test suites. Because of that, the default test loader is
23
- now a rake-provided script. You can still use 'testrb' by setting
24
- the loader flag in the test task to :testrb. (See the API documents
25
- for TestTask for all the loader flag values).
26
-
27
- * FileUtil methods (e.g. cp, mv, install) are now declared to be
28
- private. This will cut down on the interference with user defined
29
- methods of the same name.
30
-
31
- * Fixed the verbose flag in the TestTask so that the test code is
32
- controlled by the flag. Also shortened up some failure messages.
33
- (Thanks to Tobias Luetke for the suggestion).
34
-
35
- * Rules will now properly detect a task that can generate a source
36
- file. Previously rules would only consider source files that were
37
- already present.
38
-
39
- * Added an +import+ command that allows Rake to dynamically import
40
- dependendencies into a running Rake session. The +import+ command
41
- can run tasks to update the dependency file before loading them.
42
- Dependency files can be in rake or make format, allowing rake to
43
- work with tools designed to generate dependencies for make.
44
-
45
- == What is Rake
46
-
47
- Rake is a build tool similar to the make program in many ways. But
48
- instead of cryptic make recipes, Rake uses standard Ruby code to
49
- declare tasks and dependencies. You have the full power of a modern
50
- scripting language built right into your build tool.
51
-
52
- == Availability
53
-
54
- The easiest way to get and install rake is via RubyGems ...
55
-
56
- gem install rake (you may need root/admin privileges)
57
-
58
- Otherwise, you can get it from the more traditional places:
59
-
60
- Home Page:: http://rake.rubyforge.org/
61
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
62
-
63
- == Thanks
64
-
65
- As usual, it was input from users that drove a alot of these changes.
66
- Thanks to ...
67
-
68
- * Brian Gernhardt for the rules fix (especially for the patience to
69
- explain the problem to me until I got what he was talking about).
70
- * Stefan Lang for pointing out problems in the dark corners of the
71
- FileList implementation.
72
- * Alexey Verkhovsky pointing out the silently swallows syntax errors
73
- in tests.
74
- * Tobias Luetke for beautifying the test task output.
75
- * Sam Roberts for some of the ideas behind dependency loading.
76
-
77
- -- Jim Weirich
78
-
@@ -1,46 +0,0 @@
1
- = Rake 0.5.4 Released
2
-
3
- Time for some minor bug fixes and small enhancements
4
-
5
- == Changes
6
-
7
- Here are the changes for version 0.5.4 ...
8
-
9
- * Added double quotes to the test runner. This allows the location of
10
- the tests (and runner) to be in a directory path that contains
11
- spaces (e.g. "C:/Program Files/ruby/bin").
12
-
13
- * Added .svn to default ignore list. Now subversion project metadata
14
- is automatically ignored by Rake's FileList.
15
-
16
- * Updated FileList#include to support nested arrays and filelists.
17
- FileLists are flat lists of file names. Using a FileList in an
18
- include will flatten out the nested file names.
19
-
20
- == What is Rake
21
-
22
- Rake is a build tool similar to the make program in many ways. But
23
- instead of cryptic make recipes, Rake uses standard Ruby code to
24
- declare tasks and dependencies. You have the full power of a modern
25
- scripting language built right into your build tool.
26
-
27
- == Availability
28
-
29
- The easiest way to get and install rake is via RubyGems ...
30
-
31
- gem install rake (you may need root/admin privileges)
32
-
33
- Otherwise, you can get it from the more traditional places:
34
-
35
- Home Page:: http://rake.rubyforge.org/
36
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
37
-
38
- == Thanks
39
-
40
- As usual, it was input from users that drove a alot of these changes.
41
- Thanks to ...
42
-
43
- * Tilman Sauerbeck for the nested FileList suggestion.
44
- * Josh Knowles for pointing out the spaces in directory name problem.
45
-
46
- -- Jim Weirich
@@ -1,141 +0,0 @@
1
- = Rake 0.6.0 Released
2
-
3
- Its time for some long requested enhancements and lots of bug fixes
4
- ... And a whole new web page.
5
-
6
- == New Web Page
7
-
8
- The primary documentation for rake has moved from the RubyForge based
9
- wiki to its own Hieraki based web site. Constant spam on the wiki
10
- made it a difficult to keep clean. The new site will be easier to
11
- update and organize.
12
-
13
- Check out the new documentation at: http://docs.rubyrake.org
14
-
15
- We will be adding new documentation to the site as time goes on.
16
-
17
- In addition to the new docs page, make sure you check out Martin
18
- Fowlers article on rake at http://martinfowler.com/articles/rake.html
19
-
20
- == Changes
21
-
22
- === New Features
23
-
24
- * Multiple prerequisites on Rake rules now allowed. However, keep the
25
- following in mind:
26
-
27
- 1. All the prerequisites of a rule must be available before a rule
28
- is triggered, where "enabled" means (a) an existing file, (b) a
29
- defined rule, or (c) another rule which also must be
30
- trigger-able.
31
- 2. Rules are checked in order of definition, so it is important to
32
- order your rules properly. If a file can be created by two
33
- different rules, put the more specific rule first (otherwise the
34
- more general rule will trigger first and the specific one will
35
- never be triggered).
36
- 3. The <tt>source</tt> method now returns the name of the first
37
- prerequisite listed in the rule. <tt>sources</tt> returns the
38
- names of all the rule prerequisites, ordered as they are defined
39
- in the rule. If the task has other prerequisites not defined in
40
- the rule (but defined in an explicit task definition), then they
41
- will _not_ be included in the sources list.
42
-
43
- * FileLists may now use the egrep command. This popular enhancement
44
- is now a core part of the FileList object. If you want to get a
45
- list of all your to-dos, fixmes and TBD comments, add the following
46
- to your Rakefile.
47
-
48
- desc "Look for TODO and FIXME tags in the code"
49
- task :todo do
50
- FileList['**/*.rb'].egrep /#.*(FIXME|TODO|TBD)/
51
- end
52
-
53
- * The <tt>investigation</tt> method was added to task object to dump
54
- out some important values. This makes it a bit easier to debug Rake
55
- tasks.
56
-
57
- For example, if you are having problems with a particular task, just
58
- print it out:
59
-
60
- task :huh do
61
- puts Rake::Task['huh'].investigation
62
- end
63
-
64
- * The Rake::TestTask class now supports a "ruby_opts" option to pass
65
- arbitrary ruby options to a test subprocess.
66
-
67
- === Some Incompatibilities
68
-
69
- * When using the <tt>ruby</tt> command to start a Ruby subprocess, the
70
- Ruby interpreter that is currently running rake is used by default.
71
- This makes it easier to use rake in an environment with multiple
72
- ruby installation. (Previously, the first ruby command found in the
73
- PATH was used).
74
-
75
- If you wish to chose a different Ruby interpreter, you can
76
- explicitly choose the interpreter via the <tt>sh</tt> command.
77
-
78
- * The major rake classes (Task, FileTask, FileCreationTask, RakeApp)
79
- have been moved out of the toplevel scope and are now accessible as
80
- Rake::Task, Rake::FileTask, Rake::FileCreationTask and
81
- Rake::Application. If your Rakefile
82
- directly references any one of these tasks, you may:
83
-
84
- 1. Update your Rakefile to use the new classnames
85
- 2. Use the --classic-namespace option on the rake command to get the
86
- old behavior,
87
- 3. Add <code>require 'rake/classic_namespace'</code> to the
88
- Rakefile to get the old behavior.
89
-
90
- <tt>rake</tt> will print a rather annoying warning whenever a
91
- deprecated class name is referenced without enabling classic
92
- namespace.
93
-
94
- === Bug Fixes
95
-
96
- * Several unit tests and functional tests were fixed to run better
97
- under windows.
98
-
99
- * Directory tasks are now a specialized version of a File task. A
100
- directory task will only be triggered if it doesn't exist. It will
101
- not be triggered if it is out of date w.r.t. any of its
102
- prerequisites.
103
-
104
- * Fixed a bug in the Rake::GemPackageTask class so that the gem now
105
- properly contains the platform name.
106
-
107
- * Fixed a bug where a prerequisite on a <tt>file</tt> task would cause
108
- an exception if the prerequisite did not exist.
109
-
110
- == What is Rake
111
-
112
- Rake is a build tool similar to the make program in many ways. But
113
- instead of cryptic make recipes, Rake uses standard Ruby code to
114
- declare tasks and dependencies. You have the full power of a modern
115
- scripting language built right into your build tool.
116
-
117
- == Availability
118
-
119
- The easiest way to get and install rake is via RubyGems ...
120
-
121
- gem install rake (you may need root/admin privileges)
122
-
123
- Otherwise, you can get it from the more traditional places:
124
-
125
- Home Page:: http://rake.rubyforge.org/
126
- Download:: http://rubyforge.org/project/showfiles.php?group_id=50
127
-
128
- == Thanks
129
-
130
- As usual, it was input from users that drove a alot of these changes.
131
- The following people either contributed patches, made suggestions or
132
- made otherwise helpful comments. Thanks to ...
133
-
134
- * Greg Fast (better ruby_opt test options)
135
- * Kelly Felkins (requested by better namespace support)
136
- * Martin Fowler (suggested Task.investigation)
137
- * Stuart Jansen (send initial patch for multiple prerequisites).
138
- * Masao Mutch (better support for non-ruby Gem platforms)
139
- * Philipp Neubeck (patch for file task exception fix)
140
-
141
- -- Jim Weirich