Browse files

Use https://github.com/ruby/rake

Nobody has ownership of this repository anymore so we have moved to
https://github.com/ruby/rake.  Please open all issues and pull requests
there.

😒
  • Loading branch information...
1 parent 7d4c517 commit 87934af8fb09ab327f67ee6e5ceb62987d4fe177 @drbrain drbrain committed Nov 24, 2014
Showing with 4 additions and 17,614 deletions.
  1. +0 βˆ’7 .autotest
  2. +0 βˆ’14 .gitignore
  3. +0 βˆ’27 .rubocop.yml
  4. +0 βˆ’7 .togglerc
  5. +0 βˆ’21 .travis.yml
  6. +0 βˆ’34 CONTRIBUTING.rdoc
  7. +0 βˆ’642 History.rdoc
  8. +0 βˆ’21 MIT-LICENSE
  9. +0 βˆ’166 Manifest.txt
  10. +4 βˆ’137 README.rdoc
  11. +0 βˆ’81 Rakefile
  12. +0 βˆ’33 bin/rake
  13. +0 βˆ’158 doc/command_line_usage.rdoc
  14. +0 βˆ’2 doc/example/.cvsignore
  15. +0 βˆ’38 doc/example/Rakefile1
  16. +0 βˆ’35 doc/example/Rakefile2
  17. +0 βˆ’6 doc/example/a.c
  18. +0 βˆ’6 doc/example/b.c
  19. +0 βˆ’11 doc/example/main.c
  20. +0 βˆ’43 doc/glossary.rdoc
  21. +0 βˆ’591 doc/jamis.rb
  22. +0 βˆ’127 doc/proto_rake.rdoc
  23. +0 βˆ’141 doc/rake.1
  24. +0 βˆ’653 doc/rakefile.rdoc
  25. +0 βˆ’151 doc/rational.rdoc
  26. +0 βˆ’23 doc/release_notes/rake-0.4.14.rdoc
  27. +0 βˆ’35 doc/release_notes/rake-0.4.15.rdoc
  28. +0 βˆ’53 doc/release_notes/rake-0.5.0.rdoc
  29. +0 βˆ’78 doc/release_notes/rake-0.5.3.rdoc
  30. +0 βˆ’46 doc/release_notes/rake-0.5.4.rdoc
  31. +0 βˆ’141 doc/release_notes/rake-0.6.0.rdoc
  32. +0 βˆ’119 doc/release_notes/rake-0.7.0.rdoc
  33. +0 βˆ’59 doc/release_notes/rake-0.7.1.rdoc
  34. +0 βˆ’121 doc/release_notes/rake-0.7.2.rdoc
  35. +0 βˆ’47 doc/release_notes/rake-0.7.3.rdoc
  36. +0 βˆ’114 doc/release_notes/rake-0.8.0.rdoc
  37. +0 βˆ’165 doc/release_notes/rake-0.8.2.rdoc
  38. +0 βˆ’112 doc/release_notes/rake-0.8.3.rdoc
  39. +0 βˆ’147 doc/release_notes/rake-0.8.4.rdoc
  40. +0 βˆ’53 doc/release_notes/rake-0.8.5.rdoc
  41. +0 βˆ’37 doc/release_notes/rake-0.8.6.rdoc
  42. +0 βˆ’55 doc/release_notes/rake-0.8.7.rdoc
  43. +0 βˆ’112 doc/release_notes/rake-0.9.0.rdoc
  44. +0 βˆ’52 doc/release_notes/rake-0.9.1.rdoc
  45. +0 βˆ’55 doc/release_notes/rake-0.9.2.2.rdoc
  46. +0 βˆ’49 doc/release_notes/rake-0.9.2.rdoc
  47. +0 βˆ’102 doc/release_notes/rake-0.9.3.rdoc
  48. +0 βˆ’60 doc/release_notes/rake-0.9.4.rdoc
  49. +0 βˆ’55 doc/release_notes/rake-0.9.5.rdoc
  50. +0 βˆ’64 doc/release_notes/rake-0.9.6.rdoc
  51. +0 βˆ’178 doc/release_notes/rake-10.0.0.rdoc
  52. +0 βˆ’58 doc/release_notes/rake-10.0.1.rdoc
  53. +0 βˆ’53 doc/release_notes/rake-10.0.2.rdoc
  54. +0 βˆ’191 doc/release_notes/rake-10.0.3.rdoc
  55. +0 βˆ’61 doc/release_notes/rake-10.1.0.rdoc
  56. +0 βˆ’79 lib/rake.rb
  57. +0 βˆ’110 lib/rake/alt_system.rb
  58. +0 βˆ’789 lib/rake/application.rb
  59. +0 βˆ’23 lib/rake/backtrace.rb
  60. +0 βˆ’76 lib/rake/clean.rb
  61. +0 βˆ’16 lib/rake/cloneable.rb
  62. 0 lib/rake/contrib/.document
  63. +0 βˆ’21 lib/rake/contrib/compositepublisher.rb
  64. +0 βˆ’137 lib/rake/contrib/ftptools.rb
  65. +0 βˆ’81 lib/rake/contrib/publisher.rb
  66. +0 βˆ’18 lib/rake/contrib/rubyforgepublisher.rb
  67. +0 βˆ’61 lib/rake/contrib/sshpublisher.rb
  68. +0 βˆ’4 lib/rake/contrib/sys.rb
  69. +0 βˆ’125 lib/rake/cpu_counter.rb
  70. +0 βˆ’14 lib/rake/default_loader.rb
  71. +0 βˆ’199 lib/rake/dsl_definition.rb
  72. +0 βˆ’21 lib/rake/early_time.rb
  73. +0 βˆ’25 lib/rake/ext/core.rb
  74. +0 βˆ’2 lib/rake/ext/module.rb
  75. +0 βˆ’25 lib/rake/ext/pathname.rb
  76. +0 βˆ’173 lib/rake/ext/string.rb
  77. +0 βˆ’16 lib/rake/ext/time.rb
  78. +0 βˆ’24 lib/rake/file_creation_task.rb
  79. +0 βˆ’428 lib/rake/file_list.rb
  80. +0 βˆ’46 lib/rake/file_task.rb
  81. +0 βˆ’128 lib/rake/file_utils.rb
  82. +0 βˆ’144 lib/rake/file_utils_ext.rb
  83. +0 βˆ’4 lib/rake/gempackagetask.rb
  84. +0 βˆ’56 lib/rake/invocation_chain.rb
  85. +0 βˆ’16 lib/rake/invocation_exception_mixin.rb
  86. +0 βˆ’17 lib/rake/late_time.rb
  87. +0 βˆ’103 lib/rake/linked_list.rb
  88. +0 βˆ’40 lib/rake/loaders/makefile.rb
  89. +0 βˆ’13 lib/rake/multi_task.rb
  90. +0 βˆ’38 lib/rake/name_space.rb
  91. +0 βˆ’199 lib/rake/packagetask.rb
  92. +0 βˆ’3 lib/rake/pathmap.rb
  93. +0 βˆ’15 lib/rake/phony.rb
  94. +0 βˆ’20 lib/rake/private_reader.rb
  95. +0 βˆ’99 lib/rake/promise.rb
  96. +0 βˆ’29 lib/rake/pseudo_status.rb
  97. +0 βˆ’38 lib/rake/rake_module.rb
  98. +0 βˆ’22 lib/rake/rake_test_loader.rb
  99. +0 βˆ’4 lib/rake/rdoctask.rb
  100. +0 βˆ’29 lib/rake/ruby182_test_unit_fix.rb
  101. +0 βˆ’20 lib/rake/rule_recursion_overflow_error.rb
  102. +0 βˆ’27 lib/rake/runtest.rb
  103. +0 βˆ’42 lib/rake/scope.rb
  104. +0 βˆ’383 lib/rake/task.rb
  105. +0 βˆ’7 lib/rake/task_argument_error.rb
  106. +0 βˆ’98 lib/rake/task_arguments.rb
  107. +0 βˆ’310 lib/rake/task_manager.rb
  108. +0 βˆ’24 lib/rake/tasklib.rb
  109. +0 βˆ’212 lib/rake/testtask.rb
  110. +0 βˆ’48 lib/rake/thread_history_display.rb
  111. +0 βˆ’164 lib/rake/thread_pool.rb
  112. +0 βˆ’22 lib/rake/trace_output.rb
  113. +0 βˆ’7 lib/rake/version.rb
  114. +0 βˆ’56 lib/rake/win32.rb
  115. +0 βˆ’20 rakelib/publish.rake
  116. +0 βˆ’25 rakelib/test_times.rake
  117. +0 βˆ’34 test/file_creation.rb
  118. +0 βˆ’130 test/helper.rb
  119. +0 βˆ’478 test/support/rakefile_definitions.rb
  120. +0 βˆ’34 test/support/ruby_runner.rb
  121. +0 βˆ’42 test/test_private_reader.rb
  122. +0 βˆ’40 test/test_rake.rb
  123. +0 βˆ’643 test/test_rake_application.rb
  124. +0 βˆ’466 test/test_rake_application_options.rb
  125. +0 βˆ’119 test/test_rake_backtrace.rb
  126. +0 βˆ’61 test/test_rake_clean.rb
  127. +0 βˆ’68 test/test_rake_cpu_counter.rb
  128. +0 βˆ’84 test/test_rake_definitions.rb
  129. +0 βˆ’76 test/test_rake_directory_task.rb
  130. +0 βˆ’40 test/test_rake_dsl.rb
  131. +0 βˆ’31 test/test_rake_early_time.rb
  132. +0 βˆ’59 test/test_rake_extension.rb
  133. +0 βˆ’56 test/test_rake_file_creation_task.rb
  134. +0 βˆ’655 test/test_rake_file_list.rb
  135. +0 βˆ’8 test/test_rake_file_list_path_map.rb
  136. +0 βˆ’197 test/test_rake_file_task.rb
  137. +0 βˆ’309 test/test_rake_file_utils.rb
  138. +0 βˆ’74 test/test_rake_ftp_file.rb
  139. +0 βˆ’482 test/test_rake_functional.rb
  140. +0 βˆ’64 test/test_rake_invocation_chain.rb
  141. +0 βˆ’18 test/test_rake_late_time.rb
  142. +0 βˆ’84 test/test_rake_linked_list.rb
  143. +0 βˆ’46 test/test_rake_makefile_loader.rb
  144. +0 βˆ’64 test/test_rake_multi_task.rb
  145. +0 βˆ’57 test/test_rake_name_space.rb
  146. +0 βˆ’79 test/test_rake_package_task.rb
  147. +0 βˆ’168 test/test_rake_path_map.rb
  148. +0 βˆ’34 test/test_rake_path_map_explode.rb
  149. +0 βˆ’18 test/test_rake_path_map_partial.rb
  150. +0 βˆ’15 test/test_rake_pathname_extensions.rb
  151. +0 βˆ’21 test/test_rake_pseudo_status.rb
  152. +0 βˆ’20 test/test_rake_rake_test_loader.rb
  153. +0 βˆ’26 test/test_rake_reduce_compat.rb
  154. +0 βˆ’40 test/test_rake_require.rb
  155. +0 βˆ’388 test/test_rake_rules.rb
  156. +0 βˆ’44 test/test_rake_scope.rb
  157. +0 βˆ’393 test/test_rake_task.rb
  158. +0 βˆ’119 test/test_rake_task_argument_parsing.rb
  159. +0 βˆ’127 test/test_rake_task_arguments.rb
  160. +0 βˆ’9 test/test_rake_task_lib.rb
  161. +0 βˆ’178 test/test_rake_task_manager.rb
  162. +0 βˆ’19 test/test_rake_task_manager_argument_resolution.rb
  163. +0 βˆ’172 test/test_rake_task_with_arguments.rb
  164. +0 βˆ’141 test/test_rake_test_task.rb
  165. +0 βˆ’146 test/test_rake_thread_pool.rb
  166. +0 βˆ’71 test/test_rake_top_level_functions.rb
  167. +0 βˆ’72 test/test_rake_win32.rb
  168. +0 βˆ’101 test/test_thread_history_display.rb
  169. +0 βˆ’52 test/test_trace_output.rb
View
7 .autotest
@@ -1,7 +0,0 @@
-require 'autotest/restart'
-
-Autotest.add_hook :initialize do |at|
- at.testlib = ''
- at.add_exception '.git'
-end
-
View
14 .gitignore
@@ -1,14 +0,0 @@
-*.bak
-*.rbc
-*.swp
-*~
-.#*
-.DS_Store
-.idea
-.rbx
-/.rdoc
-/TAGS
-/coverage
-/html
-/pkg
-Gemfile.lock
View
27 .rubocop.yml
@@ -1,27 +0,0 @@
-StringLiterals:
- Enabled: false
-
-MultilineBlocks:
- Enabled: false
-
-SingleLineBlocks:
- Enabled: false
-
-NewLambdaLiteral:
- Enabled: false
-
-SpaceAroundEqualsInParameterDefault:
- Enabled: false
-
-HashSyntax:
- Enabled: false
-
-LineLength:
- Enabled: true
- Max: 90
-
-WhileUntilModifier:
- Enabled: false
-
-IfUnlessModifier:
- Enabled: false
View
7 .togglerc
@@ -1,7 +0,0 @@
-(add-to-list
- 'toggle-mapping-styles
- '(rake . (
- ("test/test_rake_\\1.rb" . "lib/rake/\\1.rb")
- ) ))
-
-(buffer-toggle-style 'rake)
View
21 .travis.yml
@@ -1,21 +0,0 @@
----
-after_script:
-- ruby -Ilib bin/rake travis:after -t
-before_script:
-- gem install hoe-travis --no-rdoc --no-ri
-- gem install minitest -v '~> 5.0' --no-rdoc --no-ri
-- ruby -Ilib bin/rake travis:before -t
-language: ruby
-notifications:
- email:
- - drbrain@segment7.net
-rvm:
- - 1.8.7
- - 1.9.3
- - 2.0.0
- - 2.1.0
- - jruby
-script: ruby -Ilib bin/rake
-matrix:
- allow_failures:
- - rvm: jruby
View
34 CONTRIBUTING.rdoc
@@ -1,34 +0,0 @@
-= Source Repository
-
-Rake is currently hosted at github. The github web page is
-http://github.com/ruby/rake . The public git clone URL is
-
- git://github.com/ruby/rake.git
-
-= Running the Rake Test Suite
-
-If you wish to run the unit and functional tests that come with Rake:
-
-* CD into the top project directory of rake.
-* Type one of the following:
-
- rake newb # If you have never run rake's tests
- rake # If you have run rake's tests
-
-= Issues and Bug Reports
-
-Feel free to submit commits or feature requests. If you send a patch,
-remember to update the corresponding unit tests. In fact, I prefer
-new feature to be submitted in the form of new unit tests.
-
-For other information, feel free to ask on the ruby-talk mailing list.
-
-If you have found a bug in rake please try with the latest version of rake
-before filing an issue. Also check History.rdoc for bug fixes that may have
-addressed your issue.
-
-When submitting pull requests please check the rake Travis-CI page for test
-failures:
-
- https://travis-ci.org/ruby/rake
-
View
642 History.rdoc
@@ -1,642 +0,0 @@
-=== 10.4
-
-Enhancements:
-
-* Upgraded to minitest 5. Pull request #292 by Teo Ljungberg.
-* Added support for Pathname in rake tasks. Pull request #271 by Randy
- Coulman.
-* Rake now ignores falsy dependencies which allows for easier programmatic
- creation of tasks. Pull request #273 by Manav.
-* Rake no longer edits ARGV. This allows you to re-exec rake from a rake
- task. Issue #277 by Matt Palmer.
-
-Bug fixes:
-
-* Updated rake manpage. Issue #283 by Nathan Long, pull request #291 by
- skittleys.
-* Add Rake::LATE to allow rebuilding of files that depend on deleted files.
- Bug #286, pull request #287 by David Grayson.
-* Fix relinking of files when repackaging. Bug #276 by Muenze.
-
-=== 10.3.3
-
-Enhancements:
-
-* Added to use Pathnames when working with Rake. Pull request #271 by Randy Coulman.
-* Use Etc.nprocessors for counting to cpu numbers.
-
-Bug fixes:
-
-* Fixed some typos. Pull request #280 by Jed Northridge.
-* Also try counting CPUs via cpuinfo if host_os was not matched. Pull request
- #282 by Edouard B.
-
-=== 10.3.2 / 2014-05-15
-
-Bug fixes:
-
-* Rake no longer infinitely loops when showing exception causes that refer to
- each other. Bug #272 by Chris Bandy.
-* Fixed documentation typos. Bug #275 by Jake Worth.
-
-=== 10.3.1 / 2014-04-17
-
-Bug fixes:
-
-* Really stop reporting an error when cleaning already-deleted files. Pull
- request #269 by Randy Coulman
-* Fixed infinite loop when cleaning already-deleted files on windows.
-
-=== 10.3 / 2014-04-15
-
-Enhancements:
-
-* Added --build-all option to rake which treats all file prerequisites as
- out-of-date. Pull request #254 by Andrew Gilbert.
-* Added Rake::NameSpace#scope. Issue #263 by Jon San Miguel.
-
-Bug fixes:
-
-* Suppress org.jruby package files in rake error messages for JRuby users.
- Issue #213 by Charles Nutter.
-* Fixed typo, removed extra "h". Pull request #267 by Hsing-Hui Hsu.
-* Rake no longer reports an error when cleaning already-deleted files. Pull
- request #266 by Randy Coulman.
-* Consume stderr while determining CPU count to avoid hang. Issue #268 by
- Albert Sun.
-
-=== 10.2.2 / 2014-03-27
-
-Bug fixes:
-
-* Restored Ruby 1.8.7 compatibility
-
-=== 10.2.1 / 2014-03-25
-
-Bug fixes:
-
-* File tasks including a ':' are now top-level tasks again. Issue #262 by
- Josh Holtrop.
-* Use sysctl for CPU count for all BSDs. Pull request #261 by Joshua Stein.
-* Fixed CPU detection for unknown platforms.
-
-=== 10.2.0 / 2014-03-24
-
-Enhancements:
-
-* Rake now requires Ruby 1.9 or newer. For me, this is a breaking change, but
- it seems that Jim planned to release it with Rake 10.2. See also pull
- request #247 by Philip Arndt.
-* Rake now allows you to declare tasks under a namespace like:
-
- task 'a:b' do ... end
-
- Pull request #232 by Judson Lester.
-* Task#source defaults to the first prerequisite in non-rule tasks. Pull
- request #215 by Avdi Grimm.
-* Rake now automatically rebuilds and reloads imported files. Pull request
- #209 by Randy Coulman.
-* The rake task arguments can contain escaped commas. Pull request #214 by
- Filip Hrbek.
-* Rake now prints the exception class on errors. Patch #251 by David Cornu.
-
-Bug fixes:
-
-* Fixed typos. Pull request #256 by Valera Rozuvan, #250 via Jake Worth, #260
- by Zachary Scott.
-* Fixed documentation for calling tasks with arguments. Pull request #235 by
- John Varghese.
-* Clarified `rake -f` usage message. Pull request #252 by Marco Pfatschbacher.
-* Fixed a test failure on windows. Pull request #231 by Hiroshi Shirosaki.
-* Fixed corrupted rake.1.gz. Pull request #225 by Michel Boaventura.
-* Fixed bug in can_detect_signals? in test. Patch from #243 by Alexey
- Borzenkov.
-
-=== 10.1.1 and earlier
-
-Additions to the old CHANGES file were not made consistently so some
-versions are missing from this file. These changes are usually described in
-the individual release notes files.
-
-=== 0.9.3
-
-* The rake test loader now removes arguments it has processed. Issue #51
-* Rake::TaskArguments now responds to #values_at
-* RakeFileUtils.verbose_flag = nil silences output the same as 0.8.7
-* Rake tests are now directory-independent
-* Rake tests are no longer require flexmock
-* Commands constant is no longer polluting top level namespace.
-* Show only the interesting portion of the backtrace by default (James M. Lawrence).
-* Added --reduce-compat optiont to remove backward compatible DSL hacks (James M. Lawrence).
-* lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
- open files in binary mode. (NAKAMURA Usaku)
-
-=== 0.9.2
-
-* Unknown
-
-=== 0.9.1
-
-* Added deprecation warnings to the Rake DSL methods.
-
-=== 0.9.0
-
-* *Incompatible* *change*: Rake DSL commands ('task', 'file', etc.) are
- no longer private methods in Object. If you need to call 'task :xzy' inside
- your class, include Rake::DSL into the class. The DSL is still available at
- the top level scope (via the top level object which extends Rake::DSL).
-
-* Rake now warns when the deprecated :needs syntax used.
-
-* Rake history is now UTF-8 encoded.
-
-* Rake now uses case-insensitive comparisons to find the Rakefile on Windows.
- Based on patch by Roger Pack.
-
-* Rake now requires (instead of loads) files in the test task. Patch by Cezary
- Baginski.
-
-* Fixed typos. Patches by Sean Scot August Moon and R.T. Lechow.
-
-* Rake now prints the Rakefile directory only when it's different from the
- current directory. Patch by Alex Chaffee.
-
-* Improved rakefile_location discovery on Windows. Patch by James Tucker.
-
-* Rake now recognizes "Windows Server" as a windows system. Patch by Matthias
- LΓΌdtke
-
-* Rake::RDocTask is deprecated. Use RDoc::Task from RDoc 2.4.2+ (require
- 'rdoc/task')
-
-* Rake::GemPackageTask is deprecated. Use Gem::PackageTask (require
- 'rubygems/package_task')
-
-* Rake now outputs various messages to $stderr instead of $stdout.
-
-* Rake no longer emits warnings for Config. Patch by Santiago Pastorino.
-
-* Split rake.rb into individual files.
-
-* Support for the --where (-W) flag for showing where a task is defined.
-
-* Fixed quoting in test task.
- (http://onestepback.org/redmine/issues/show/44,
- http://www.pivotaltracker.com/story/show/1223138)
-
-* Fixed the silent option parsing problem.
- (http://onestepback.org/redmine/issues/show/47)
-
-* Fixed :verbose=>false flag on sh and ruby commands.
-
-* Rake command line options may be given by default in a RAKEOPT
- environment variable.
-
-* Errors in Rake will now display the task invocation chain in effect
- at the time of the error.
-
-* Accepted change by warnickr to not expand test patterns in shell
- (allowing more files in the test suite).
-
-* Fixed that file tasks did not perform prereq lookups in scope
- (Redmine #57).
-
-=== 0.8.7
-
-* Fixed EXEEXT for JRuby on windows.
-
-=== 0.8.6
-
-* Minor fixes to the RDoc generation (removed dependency on darkfish
- and removed inline source option).
-
-* Now allow # comments to comment a task definition.
-
-=== 0.8.5
-
-* Better support for the system command on Windows.
-
-=== 0.8.4
-
-* Preserve case when locating rakefiles (patch from James
- M. Lawrence/quix)
-
-* Better support for windows paths in the test task (patch from Simon
- Chiang/bahuvrihi)
-
-* Windows system dir search order is now: HOME, HOMEDRIVE + HOMEPATH,
- APPDATA, USERPROFILE (patch from Luis Lavena)
-
-* MingGW is now recognized as a windows platform. (patch from Luis
- Lavena)
-
-* Numerous fixes to the windows test suite (patch from Luis Lavena).
-
-* Improved Rakefile case insensitivity testing (patch from Luis
- Lavena).
-
-* Fixed stray ARGV option problem that was interfering with
- Test::Unit::Runner.
-
-* Fixed default verbose mode (was accidently changed to false).
-
-* Removed reference to manage_gem to fix the warning produced by the
- gem package task.
-
-=== 0.8.3
-
-* Enhanced the system directory detection in windows. We now check
- HOMEDRIVE/HOMEPATH and USERPROFILE if APPDATA isn't found. (Patch
- supplied by James Tucker). Rake no long aborts if it can't find the
- directory.
-
-* Added fix to handle ruby installations in directories with spaces in
- their name.
-
-=== 0.8.2
-
-* Fixed bug in package task so that it will include the subdir
- directory in the package for testing. (Bug found by Adam Majer)
-
-* Added ENV var to rakefile to prevent OS X from including extended
- attribute junk in a tar file. (Bug found by Adam Majer)
-
-* Fixed filename dependency order bug in test_inspect_pending and
- test_to_s_pending. (Bug found by Adam Majer)
-
-* Fixed check for file utils options to make them immune to the
- symbol/string differences. (Patch supplied by Edwin Pratomo)
-
-* Fixed bug with rules involving multiple source (Patch supplied by
- Emanuel IndermΓΌhle)
-
-* Switched from getoptlong to optparse (patches supplied by Edwin
- Pratomo)
-
-* The -T option will now attempt to dynamically sense the size of the
- terminal. RAKE_COLUMNS will override any dynamic sensing.
-
-* FileList#clone and FileList#dup have better sematics w.r.t. taint
- and freeze.
-
-* Added ability clear prerequisites, and/or actions from an existing
- task.
-
-* Added the ability to reenable a task to be invoked a second time.
-
-* Changed RDoc test task to have no default template. This makes it
- easier for the tempate to pick up the template from the environment.
-
-* Changed from using Mutex to Monitor. Evidently Mutex causes thread
- join errors when Ruby is compiled with -disable-pthreads. (Patch
- supplied by Ittay Dror)
-
-* Fixed bug in makefile parser that had problems with extra spaces in
- file task names. (Patch supplied by Ittay Dror)
-
-* Added a performance patch for reading large makefile dependency
- files. (Patch supplied by Ittay Dror)
-
-* Default values for task arguments can easily be specified with the
- :with_defaults method. (Idea for default argument merging supplied
- by (Adam Q. Salter)
-
-* The -T output will only self-truncate if the output is a tty.
- However, if RAKE_COLUMNS is explicitly set, it will be honored in
- any case. (Patch provided by Gavin Stark).
-
-* Numerous fixes for running under windows. A big thanks to Bheeshmar
- Redheendran for spending a good part of the afternoon at the
- Lonestar Ruby Conference to help me work out these issues.
-
-=== 0.8.1
-
-* Removed requires on parsedate.rb (in Ftptools)
-* Removed ftools from rake.rb. Made it options in sys.rb
-
-=== 0.8.0
-
-* Added task parameters (e.g. "rake build[version7]")
-* Made task parameters passable to prerequisites.
-* Comments are limited to 80 columns or so (suggested by Jamis Buck).
-* Added -D to display full comments (suggested by Jamis Buck).
-* The rake program will set the status value used in any explicit
- exit(n) calls. (patch provided by Stephen Touset)
-* Fixed error in functional tests that were not including session (and
- silently skipping the functionl tests.
-* Removed --usage and make -h the same as -H.
-* Make a prettier inspect for tasks.
-
-=== 0.7.3
-
-* Added existing and existing! methods to FileList
-* FileLists now claim to be Arrays (via is_a?) to get better support
- from the FileUtil module.
-* Added init and top_level for custom rake applications.
-
-=== 0.7.2
-
-* Error messages are now send to stderr rather than stdout (from
- Payton Quackenbush).
-* Better error handling on invalid command line arguments (from Payton
- Quackenbush).
-* Added rcov task and updated unit testing for better code coverage.
-* Fixed some bugs where the application object was going to the global
- appliation instead of using its own data.
-* Added square and curly bracket patterns to FileList#include (Tilman
- Sauerbeck).
-* Added plain filename support to rule dependents (suggested by Nobu
- Nakada).
-* Added pathmap support to rule dependents.
-* Added a 'tasks' method to a namespace to get a list of tasks
- associated with the namespace.
-* Fixed the method name leak from FileUtils (bug found by Glenn
- Vanderburg).
-* Added rake_extension to handle detection of extension collisions.
-* Added test for noop, bad_option and verbose flags to sh command.
-* Removed dependency on internal fu_xxx functions from FileUtils.
-* Added a 'shame' task to the Rakefile.
-* Added tar_command and zip_command options to the Package task.
-* Added a description to the gem task in GemPackageTask.
-* Fixed a bug when rules have multiple prerequisites (patch by Joel
- VanderWerf)
-* Added a protected 'require "rubygems"' to test/test_application to
- unbreak cruisecontrol.rb.
-* Added the handful of RakeFileUtils to the private method as well.
-* Added block based exclusion.
-* The clean task will no longer delete 'core' if it is a directory.
-* Removed rake_dup. Now we just simply rescue a bad dup.
-* Refactored the FileList reject logic to remove duplication.
-* Removed if __FILE__ at the end of the rake.rb file.
-
-=== 0.7.1
-
-* Added optional filter parameter to the --tasks command line option.
-* Added flatten to allow rule transform procs to return lists of
- prereqs (Joel VanderWerf provided patch).
-* Added pathmap to String and FileList.
-* The -r option will now load .rake files (but a straight require
- doesn't yet). NOTE: This is experimental ... it may be
- discontinued.
-* The -f option without a value will disable the search for a
- Rakefile. The assumption is that the -r files are adequate.
-* Fixed the safe_ln function to fall back to cp in more error
- scenarios.
-
-=== 0.7.0
-
-* Added Rake.original_dir to return the original starting directory of
- the rake application.
-* Added safe_ln support for openAFS (from Ludvig Omholt).
-* Added --trace reminder on short exception messages (David Heinemeier
- Hansson suggestion).
-* Added multitask declaration that executes prerequisites in
- parallel. (Doug Young providied an initial implementation).
-* Fixed missing_const hack to be compatible with Rails. (Jamis Buck
- supplied test case).
-* Made the RDoc task default to internal (in-process) RDoc formatting.
- The old behavior is still available by setting the +external+ flag
- to true.
-* Rakefiles are now loaded with the expanded path to prevent
- accidental polution from the Ruby load path.
-* The +namespace+ command now returns a NameSpace object that can be
- used to lookup tasks defined in that namespace. This allows for
- better anonymous namespace behavior.
-* Task objects my now be used in prerequisite lists directly.
-
-=== 0.6.1
-
-* Rebuilt 0.6.0 gem without signing.
-
-=== 0.6.0
-
-* Fixed file creation bug in the unit tests (caused infinite loop on
- windows).
-* Fixed bug where session based functional tests were run under
- windows.
-* Fixed bug in directory tasks so that updating a directory will not
- retrigger file tasks depending on the directory (see
- FileCreationTask and EarlyTime).
-* Added egrep to FileList
-* ruby command now runs same ruby version as rake.
-* Added investigation to task object. (suggested by Martin Fowler)
-* Added ruby_opts to the test task to allow arbitrary ruby options to
- be passed to the test script. (Greg Fast)
-* Fixed the test loader to ignore options. (Greg Fast)
-* Moved Task, FileTask, FileCreationTask and RakeApp into the Rake
- module namespace. Old style namespace behavior can be invoked via
- the --classic-namespace option. (requested by Kelly Felkins).
-* GemTask is now sensitive to the gem platform (Masao Mutoh).
-* A non-existing file prerequisite will no longer cause an exception
- (Philipp Neubeck).
-* Multiple prerequisites on Rake rules now allowed (initial patch
- supplied by Stuart Jansen).
-
-=== 0.5.4
-
-* Added double quotes to the test runner.
-* Added .svn to default ignore list.
-* Updated FileList#include to support nested arrays and filelists.
-
-=== 0.5.3
-
-* Added support for importing Rakefile and other dependencies.
-* Fixed bug so that now rules can chain off of existing tasks as well
- as existing files.
-* Fixed verbose flag bug in the testing task. Shortened some failure
- messages.
-* Make FileUtils methods private at the top level module to avoid
- accidental method leaking into other objects.
-* Added test loader option to test task. "testrb" is no longer the
- default test loader. It is now eating syntax errors that should
- halt the unit tests.
-* Revamped FileList so that it works more like and array (addressed
- flatten bug). Added many tests around file list.
-* Added +ext+ method to both String and FileList.
-
-=== 0.5.0
-
-* Fixed documentation that was lacking the Rake module name (Tilman
- Sauerbeck).
-* Added tar.gz and tar.bz2 support to package task (Tilman Sauerbeck).
-* Recursive rules are now supported (Tilman Sauerbeck).
-* Added warning option for the Test Task (requested by Eric Hodel).
-* The jamis rdoc template is only used if it exists.
-* Added fix for Ruby 1.8.2 test/unit and rails problem.
-* Added contributed rake man file (Jani Monoses).
-* Added Brian Candler's fix for problems in --trace and --dry-run
- mode.
-
-=== 0.4.15
-
-* Fixed a bug that prevented the TESTOPTS flag from working with the
- revised for 1.8.2 test task.
-* Updated the docs on --trace to indicate that it also enables a full
- backtrace on errors.
-
-=== 0.4.14
-
-* Modified the TestTask to workaround the Ruby 1.8.2 change in
- autoexecuting unit tests.
-
-=== 0.4.13
-
-* Fixed the dry-run flag so it is operating again.
-* Multiple arguments to sh and ruby commands will not be interpreted
- by the shell (patch provided by Jonathan Paisley).
-
-=== 0.4.12
-
-* Added --silent (-s) to suppress the (in directory) rake message.
-
-=== 0.4.11
-
-* Changed the "don't know how to rake" message (finally)
-* Changes references to a literal "Rakefile" to reference the global
- variable $rakefile (which contains the actual name of the rakefile).
-
-=== 0.4.10
-
-* Added block support to the "sh" command, allowing users to take
- special actions on the result of the system call. E.g.
-
- sh "shell_command" do |ok, res|
- puts "Program returned #{res.exitstatus}" if ! ok
- end
-
-=== 0.4.9
-
-* Switched to Jamis Buck's RDoc template.
-* Removed autorequire from Rake's gem spec. This prevents the Rake
- libraries from loading while using rails.
-
-=== 0.4.8
-
-* Added support for .rb versions of Rakefile.
-* Removed \\\n's from test task.
-* Fixed Ruby 1.9 compatibility issue with FileList.
-
-=== 0.4.7
-
-* Fixed problem in FileList that caused Ruby 1.9 to go into infinite
- recursion. Since to_a was removed from Object, it does not need to
- added back into the list of methods to rewrite in FileList. (Thanks
- to Kent Sibilev for pointing this out).
-
-=== 0.4.6
-* Removed test version of ln in FileUtils that prevented safe_ln from
- using ln.
-
-=== 0.4.5
-* Upgraded comments in TestTask.
-* FileList to_s and inspect now automatically resolve pending changes.
-* FileList#exclude properly returns the FileList.
-
-=== 0.4.4
-* Fixed initialization problem with @comment.
-* Now using multi -r technique in TestTask. Switch Rakefile back to
- using the built-in test task macros because the rake runtime is no
- longer needed.
-* Added 'TEST=filename' and 'TESTOPTS=options' to the Test Task
- macros.
-* Allow a +test_files+ attribute in test tasks. This allows more
- flexibility in specifying test files.
-
-=== 0.4.3
-* Fixed Comment leakage.
-
-=== 0.4.2
-* Added safe_ln that falls back to a copy if a file link is not supported.
-* Package builder now uses safe_ln.
-
-=== 0.4.1
-* Task comments are now additive, combined with "/".
-* Works with (soon to be released) rubygems 0.6.2 (or 0.7.0)
-
-=== 0.4.0
-* FileList now uses deferred loading. The file system is not searched
- until the first call that needs the file names.
-* VAR=VALUE options are now accepted on the command line and are
- treated like environment variables. The values may be tested in a
- Rakefile by referencing ENV['VAR'].
-* File.mtime is now used (instead of File.new().mtime).
-
-=== 0.3.2.x
-
-* Removed some hidden dependencies on rubygems. Tests now will test
- gems only if they are installed.
-* Removed Sys from some example files. I believe that is that last
- reference to Sys outside of the contrib area.
-* Updated all copyright notices to include 2004.
-
-=== 0.3.2
-
-* GEM Installation now works with the application stub.
-
-=== 0.3.1
-
-* FileLists now automatically ignore CVS, .bak, !
-* GEM Installation now works.
-
-=== 0.3.0
-
-Promoted 0.2.10.
-
-=== 0.2.10
-General
-
-* Added title to Rake's rdocs
-* Contrib packages are no longer included in the documentation.
-
-RDoc Issues
-
-* Removed default for the '--main' option
-* Fixed rendering of the rdoc options
-* Fixed clean/clobber confusion with rerdoc
-* 'title' attribute added
-
-Package Task Library Issues
-
-* Version (or explicit :noversion) is required.
-* +package_file+ attribute is now writable
-
-FileList Issues
-
-* Dropped bang version of exclude. Now using ant-like include/exclude semantics.
-* Enabled the "yield self" idiom in FileList#initialize.
-
-=== 0.2.9
-
-This version contains numerous changes as the RubyConf.new(2003)
-presentation was being prepared. The changes include:
-
-* The monolithic rubyapp task library is in the process of being
- dropped in favor of lighter weight task libraries.
-
-=== 0.2.7
-
-* Added "desc" for task descriptions.
-* -T will now display tasks with descriptions.
-* -P will display tasks and prerequisites.
-* Dropped the Sys module in favor of the 1.8.x FileUtils module. Sys
- is still supported in the contrib area.
-
-=== 0.2.6
-
-* Moved to RubyForge
-
-=== 0.2.5
-
-* Switched to standard ruby app builder.
-* Added no_match option to file matcher.
-
-=== 0.2.4
-
-* Fixed indir, which neglected to actually change directories.
-
-=== 0.2.3
-
-* Added rake module for a help target
-* Added 'for_files' to Sys
-* Added a $rakefile constant
-* Added test for selecting proper rule with multiple targets.
View
21 MIT-LICENSE
@@ -1,21 +0,0 @@
-Copyright (c) Jim Weirich
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
View
166 Manifest.txt
@@ -1,166 +0,0 @@
-.autotest
-.rubocop.yml
-.togglerc
-CONTRIBUTING.rdoc
-History.rdoc
-MIT-LICENSE
-Manifest.txt
-README.rdoc
-Rakefile
-bin/rake
-doc/command_line_usage.rdoc
-doc/example/Rakefile1
-doc/example/Rakefile2
-doc/example/a.c
-doc/example/b.c
-doc/example/main.c
-doc/glossary.rdoc
-doc/jamis.rb
-doc/proto_rake.rdoc
-doc/rake.1
-doc/rakefile.rdoc
-doc/rational.rdoc
-doc/release_notes/rake-0.4.14.rdoc
-doc/release_notes/rake-0.4.15.rdoc
-doc/release_notes/rake-0.5.0.rdoc
-doc/release_notes/rake-0.5.3.rdoc
-doc/release_notes/rake-0.5.4.rdoc
-doc/release_notes/rake-0.6.0.rdoc
-doc/release_notes/rake-0.7.0.rdoc
-doc/release_notes/rake-0.7.1.rdoc
-doc/release_notes/rake-0.7.2.rdoc
-doc/release_notes/rake-0.7.3.rdoc
-doc/release_notes/rake-0.8.0.rdoc
-doc/release_notes/rake-0.8.2.rdoc
-doc/release_notes/rake-0.8.3.rdoc
-doc/release_notes/rake-0.8.4.rdoc
-doc/release_notes/rake-0.8.5.rdoc
-doc/release_notes/rake-0.8.6.rdoc
-doc/release_notes/rake-0.8.7.rdoc
-doc/release_notes/rake-0.9.0.rdoc
-doc/release_notes/rake-0.9.1.rdoc
-doc/release_notes/rake-0.9.2.2.rdoc
-doc/release_notes/rake-0.9.2.rdoc
-doc/release_notes/rake-0.9.3.rdoc
-doc/release_notes/rake-0.9.4.rdoc
-doc/release_notes/rake-0.9.5.rdoc
-doc/release_notes/rake-0.9.6.rdoc
-doc/release_notes/rake-10.0.0.rdoc
-doc/release_notes/rake-10.0.1.rdoc
-doc/release_notes/rake-10.0.2.rdoc
-doc/release_notes/rake-10.0.3.rdoc
-doc/release_notes/rake-10.1.0.rdoc
-lib/rake.rb
-lib/rake/alt_system.rb
-lib/rake/application.rb
-lib/rake/backtrace.rb
-lib/rake/clean.rb
-lib/rake/cloneable.rb
-lib/rake/contrib/.document
-lib/rake/contrib/compositepublisher.rb
-lib/rake/contrib/ftptools.rb
-lib/rake/contrib/publisher.rb
-lib/rake/contrib/rubyforgepublisher.rb
-lib/rake/contrib/sshpublisher.rb
-lib/rake/contrib/sys.rb
-lib/rake/cpu_counter.rb
-lib/rake/default_loader.rb
-lib/rake/dsl_definition.rb
-lib/rake/early_time.rb
-lib/rake/ext/core.rb
-lib/rake/ext/module.rb
-lib/rake/ext/pathname.rb
-lib/rake/ext/string.rb
-lib/rake/ext/time.rb
-lib/rake/file_creation_task.rb
-lib/rake/file_list.rb
-lib/rake/file_task.rb
-lib/rake/file_utils.rb
-lib/rake/file_utils_ext.rb
-lib/rake/gempackagetask.rb
-lib/rake/invocation_chain.rb
-lib/rake/invocation_exception_mixin.rb
-lib/rake/late_time.rb
-lib/rake/linked_list.rb
-lib/rake/loaders/makefile.rb
-lib/rake/multi_task.rb
-lib/rake/name_space.rb
-lib/rake/packagetask.rb
-lib/rake/pathmap.rb
-lib/rake/phony.rb
-lib/rake/private_reader.rb
-lib/rake/promise.rb
-lib/rake/pseudo_status.rb
-lib/rake/rake_module.rb
-lib/rake/rake_test_loader.rb
-lib/rake/rdoctask.rb
-lib/rake/ruby182_test_unit_fix.rb
-lib/rake/rule_recursion_overflow_error.rb
-lib/rake/runtest.rb
-lib/rake/scope.rb
-lib/rake/task.rb
-lib/rake/task_argument_error.rb
-lib/rake/task_arguments.rb
-lib/rake/task_manager.rb
-lib/rake/tasklib.rb
-lib/rake/testtask.rb
-lib/rake/thread_history_display.rb
-lib/rake/thread_pool.rb
-lib/rake/trace_output.rb
-lib/rake/version.rb
-lib/rake/win32.rb
-rakelib/publish.rake
-rakelib/test_times.rake
-test/file_creation.rb
-test/helper.rb
-test/support/rakefile_definitions.rb
-test/support/ruby_runner.rb
-test/test_private_reader.rb
-test/test_rake.rb
-test/test_rake_application.rb
-test/test_rake_application_options.rb
-test/test_rake_backtrace.rb
-test/test_rake_clean.rb
-test/test_rake_cpu_counter.rb
-test/test_rake_definitions.rb
-test/test_rake_directory_task.rb
-test/test_rake_dsl.rb
-test/test_rake_early_time.rb
-test/test_rake_extension.rb
-test/test_rake_file_creation_task.rb
-test/test_rake_file_list.rb
-test/test_rake_file_list_path_map.rb
-test/test_rake_file_task.rb
-test/test_rake_file_utils.rb
-test/test_rake_ftp_file.rb
-test/test_rake_functional.rb
-test/test_rake_invocation_chain.rb
-test/test_rake_late_time.rb
-test/test_rake_linked_list.rb
-test/test_rake_makefile_loader.rb
-test/test_rake_multi_task.rb
-test/test_rake_name_space.rb
-test/test_rake_package_task.rb
-test/test_rake_path_map.rb
-test/test_rake_path_map_explode.rb
-test/test_rake_path_map_partial.rb
-test/test_rake_pathname_extensions.rb
-test/test_rake_pseudo_status.rb
-test/test_rake_rake_test_loader.rb
-test/test_rake_reduce_compat.rb
-test/test_rake_require.rb
-test/test_rake_rules.rb
-test/test_rake_scope.rb
-test/test_rake_task.rb
-test/test_rake_task_argument_parsing.rb
-test/test_rake_task_arguments.rb
-test/test_rake_task_lib.rb
-test/test_rake_task_manager.rb
-test/test_rake_task_manager_argument_resolution.rb
-test/test_rake_task_with_arguments.rb
-test/test_rake_test_task.rb
-test/test_rake_thread_pool.rb
-test/test_rake_top_level_functions.rb
-test/test_rake_win32.rb
-test/test_thread_history_display.rb
-test/test_trace_output.rb
View
141 README.rdoc
@@ -1,140 +1,7 @@
-= RAKE -- Ruby Make
+This repository is retired. Use:
-home :: https://github.com/ruby/rake
-bugs :: https://github.com/ruby/rake/issues
-docs :: http://docs.seattlerb.org/rake
+https://github.com/ruby/rake
-== Description
-
-Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
-specified in standard Ruby syntax.
-
-Rake has the following features:
-
-* Rakefiles (rake's version of Makefiles) are completely defined in
- standard Ruby syntax. No XML files to edit. No quirky Makefile
- syntax to worry about (is that a tab or a space?)
-
-* Users can specify tasks with prerequisites.
-
-* Rake supports rule patterns to synthesize implicit tasks.
-
-* Flexible FileLists that act like arrays but know about manipulating
- file names and paths.
-
-* A library of prepackaged tasks to make building rakefiles easier. For example,
- tasks for building tarballs and publishing to FTP or SSH sites. (Formerly
- tasks for building RDoc and Gems were included in rake but they're now
- available in RDoc and RubyGems respectively.)
-
-* Supports parallel execution of tasks.
-
-== Installation
-
-=== Gem Installation
-
-Download and install rake with the following.
-
- gem install rake
-
-== Usage
-
-=== Simple Example
-
-First, you must write a "Rakefile" file which contains the build rules. Here's
-a simple example:
-
- task default: %w[test]
-
- task :test do
- ruby "test/unittest.rb"
- end
-
-This Rakefile has two tasks:
-
-* A task named "test", which -- upon invocation -- will run a unit test file
- in Ruby.
-* A task named "default". This task does nothing by itself, but it has exactly
- one dependency, namely the "test" task. Invoking the "default" task will
- cause Rake to invoke the "test" task as well.
-
-Running the "rake" command without any options will cause it to run the
-"default" task in the Rakefile:
-
- % ls
- Rakefile test/
- % rake
- (in /home/some_user/Projects/rake)
- ruby test/unittest.rb
- ....unit test output here...
-
-Type "rake --help" for all available options.
-
-== Resources
-
-=== Rake Information
-
-* {Rake command-line}[rdoc-ref:doc/command_line_usage.rdoc]
-* {Writing Rakefiles}[rdoc-ref:doc/rakefile.rdoc]
-* The original {Rake announcement}[rdoc-ref:doc/rational.rdoc]
-* Rake {glossary}[rdoc-ref:doc/glossary.rdoc]
-
-=== Presentations and Articles about Rake
-
-* Avdi Grimm's rake series:
- 1. {Rake Basics}[http://devblog.avdi.org/2014/04/21/rake-part-1-basics/]
- 2. {Rake File Lists}[http://devblog.avdi.org/2014/04/22/rake-part-2-file-lists/]
- 3. {Rake Rules}[http://devblog.avdi.org/2014/04/23/rake-part-3-rules/]
- 4. {Rake Pathmap}[http://devblog.avdi.org/2014/04/24/rake-part-4-pathmap/]
- 5. {File Operations}[http://devblog.avdi.org/2014/04/25/rake-part-5-file-operations/]
- 6. {Clean and Clobber}[http://devblog.avdi.org/2014/04/28/rake-part-6-clean-and-clobber/]
- 7. {MultiTask}[http://devblog.avdi.org/2014/04/29/rake-part-7-multitask/]
-* Jim Weirich's 2003 RubyConf presentation:
- http://onestepback.org/articles/buildingwithrake/
-* Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
-
-== Other Make Re-envisionings ...
-
-Rake is a late entry in the make replacement field. Here are links to
-other projects with similar (and not so similar) goals.
-
-* http://directory.fsf.org/bras.html -- Bras, one of earliest
- implementations of "make in a scripting language".
-* http://www.a-a-p.org -- Make in Python
-* http://www.aromatic.com/tools/jam.txt -- JAM, Java Automated Make
-* http://ant.apache.org -- The Ant project
-* http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
-* http://rubydoc.info/gems/rant/0.5.7/frames -- Rant, another Ruby make tool.
-
-== Credits
-
-[<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
-
-[<b>nobu.nokada@softhome.net</b>] For the initial patch for rule support.
-
-[<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
-
-[<b>Eric Hodel</b>] For aid in maintaining rake.
-
-== License
-
-Rake is available under an MIT-style license.
-
-:include: MIT-LICENSE
-
----
-
-= Other stuff
-
-Author:: Jim Weirich <jim.weirich@gmail.com>
-Requires:: Ruby 1.8.7 or later
-License:: Copyright Jim Weirich.
- Released under an MIT-style license. See the MIT-LICENSE
- file included in the distribution.
-
-== Warranty
-
-This software is provided "as is" and without any express or implied
-warranties, including, without limitation, the implied warranties of
-merchantability and fitness for a particular purpose.
+Thank you.
+😒
View
81 Rakefile
@@ -1,81 +0,0 @@
-# Rakefile for rake -*- ruby -*-
-
-# Copyright 2003, 2004, 2005 by Jim Weirich (jim@weirichhouse.org)
-# All rights reserved.
-
-# This file may be distributed under an MIT style license. See
-# MIT-LICENSE for details.
-
-require 'rbconfig'
-
-system_rake = File.join RbConfig::CONFIG['rubylibdir'], 'rake.rb'
-
-# Use our rake, not the installed rake from system
-if $".include? system_rake or $".grep(/rake\/name_space\.rb$/).empty? then
- exec Gem.ruby, '-Ilib', 'bin/rake', *ARGV
-end
-
-require 'hoe'
-
-Hoe.plugin :git
-Hoe.plugin :minitest
-Hoe.plugin :travis
-
-hoe = Hoe.spec 'rake' do
- developer 'Eric Hodel', 'drbrain@segment7.net'
- developer 'Jim Weirich', ''
-
- require_ruby_version '>= 1.8.7'
- require_rubygems_version '>= 1.3.2'
-
- dependency 'minitest', '~> 5.0', :developer
-
- license "MIT"
-
- self.readme_file = 'README.rdoc'
- self.history_file = 'History.rdoc'
-
- self.extra_rdoc_files.concat FileList[
- 'MIT-LICENSE',
- 'doc/**/*.rdoc',
- '*.rdoc',
- ]
-
- self.local_rdoc_dir = 'html'
- self.rsync_args = '-avz --delete'
- rdoc_locations << 'docs.seattlerb.org:/data/www/docs.seattlerb.org/rake/'
-
- self.clean_globs += [
- '**/*.o',
- '**/*.rbc',
- '*.dot',
- 'TAGS',
- 'doc/example/main',
- ]
-end
-
-hoe.test_prelude = 'gem "minitest", "~> 5.0"'
-
-# Use custom rdoc task due to existence of doc directory
-
-Rake::Task['docs'].clear
-Rake::Task['clobber_docs'].clear
-
-begin
- require 'rdoc/task'
-
- RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc|
- doc.main = hoe.readme_file
- doc.title = 'Rake -- Ruby Make'
-
- rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc]
- rdoc_files.add hoe.extra_rdoc_files
-
- doc.rdoc_files = rdoc_files
-
- doc.rdoc_dir = 'html'
- end
-rescue LoadError
- warn 'run `rake newb` to install rdoc'
-end
-
View
33 bin/rake
@@ -1,33 +0,0 @@
-#!/usr/bin/env ruby
-
-#--
-# Copyright (c) 2003, 2004, 2005, 2006, 2007 Jim Weirich
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-#++
-
-begin
- require 'rubygems'
- gem 'rake'
-rescue LoadError
-end
-
-require 'rake'
-
-Rake.application.run
View
158 doc/command_line_usage.rdoc
@@ -1,158 +0,0 @@
-= Rake Command Line Usage
-
-Rake is invoked from the command line using:
-
- % rake [options ...] [VAR=VALUE ...] [targets ...]
-
-Options are:
-
-[<tt><em>name</em>=<em>value</em></tt>]
- Set the environment variable <em>name</em> to <em>value</em>
- during the execution of the <b>rake</b> command. You can access
- the value by using ENV['<em>name</em>'].
-
-[<tt>--all</tt> (-A)]
- Used in combination with the -T and -D options, will force
- those options to show all the tasks, even the ones without comments.
-
-[<tt>--backtrace</tt>{=_output_} (-n)]
- Enable a full backtrace (i.e. like --trace, but without the task
- tracing details). The _output_ parameter is optional, but if
- specified it controls where the backtrace output is sent. If
- _output_ is <tt>stdout</tt>, then backtrace output is directed to
- standard output. If _output_ is <tt>stderr</tt>, or if it is
- missing, then the backtrace output is sent to standard error.
-
-[<tt>--comments</tt>]
- Used in combination with the -W options to force the output to
- contain commented options only. This is the reverse of
- <tt>--all</tt>.
-
-[<tt>--describe</tt> _pattern_ (-D)]
- Describe the tasks (matching optional PATTERN), then exit.
-
-[<tt>--dry-run</tt> (-n)]
- Do a dry run. Print the tasks invoked and executed, but do not
- actually execute any of the actions.
-
-[<tt>--execute</tt> _code_ (-e)]
- Execute some Ruby code and exit.
-
-[<tt>--execute-print</tt> _code_ (-p)]
- Execute some Ruby code, print the result, and exit.
-
-[<tt>--execute-continue</tt> _code_ (-E)]
- Execute some Ruby code, then continue with normal task processing.
-
-[<tt>--help</tt> (-H)]
- Display some help text and exit.
-
-[<tt>--jobs</tt> _number_ (-j)]
-
- Specifies the maximum number of concurrent threads allowed. Rake
- will allocate threads as needed up to this maximum number.
-
- If omitted, Rake will attempt to estimate the number of CPUs on
- the system and add 4 to that number.
-
- The concurrent threads are used to execute the <tt>multitask</tt>
- prerequisites. Also see the <tt>-m</tt> option which turns all
- tasks into multitasks.
-
- Sample values:
- (no -j) : Allow up to (# of CPUs + 4) number of threads
- --jobs : Allow unlimited number of threads
- --jobs=1 : Allow only one thread (the main thread)
- --jobs=16 : Allow up to 16 concurrent threads
-
-[<tt>--job-stats</tt> _level_]
-
- Display job statistics at the completion of the run. By default,
- this will display the requested number of active threads (from the
- -j options) and the maximum number of threads in play at any given
- time.
-
- If the optional _level_ is <tt>history</tt>, then a complete trace
- of task history will be displayed on standard output.
-
-[<tt>--libdir</tt> _directory_ (-I)]
- Add _directory_ to the list of directories searched for require.
-
-[<tt>--multitask</tt> (-m)]
- Treat all tasks as multitasks. ('make/drake' semantics)
-
-[<tt>--nosearch</tt> (-N)]
- Do not search for a Rakefile in parent directories.
-
-[<tt>--prereqs</tt> (-P)]
- Display a list of all tasks and their immediate prerequisites.
-
-[<tt>--quiet</tt> (-q)]
- Do not echo commands from FileUtils.
-
-[<tt>--rakefile</tt> _filename_ (-f)]
- Use _filename_ as the name of the rakefile. The default rakefile
- names are +rakefile+ and +Rakefile+ (with +rakefile+ taking
- precedence). If the rakefile is not found in the current
- directory, +rake+ will search parent directories for a match. The
- directory where the Rakefile is found will become the current
- directory for the actions executed in the Rakefile.
-
-[<tt>--rakelibdir</tt> _rakelibdir_ (-R)]
- Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
-
-[<tt>--require</tt> _name_ (-r)]
- Require _name_ before executing the Rakefile.
-
-[<tt>--rules</tt>]
- Trace the rules resolution.
-
-[<tt>--silent (-s)</tt>]
- Like --quiet, but also suppresses the 'in directory' announcement.
-
-[<tt>--suppress-backtrace _pattern_ </tt>]
- Line matching the regular expression _pattern_ will be removed
- from the backtrace output. Note that the --backtrace option is the
- full backtrace without these lines suppressed.
-
-[<tt>--system</tt> (-g)]
- Use the system wide (global) rakefiles. The project Rakefile is
- ignored. By default, the system wide rakefiles are used only if no
- project Rakefile is found. On Unix-like system, the system wide
- rake files are located in $HOME/.rake. On a windows system they
- are stored in $APPDATA/Rake.
-
-[<tt>--no-system</tt> (-G)]
- Use the project level Rakefile, ignoring the system-wide (global)
- rakefiles.
-
-[<tt>--tasks</tt> <em>pattern</em> (-T)]
- Display a list of the major tasks and their comments. Comments
- are defined using the "desc" command. If a pattern is given, then
- only tasks matching the pattern are displayed.
-
-[<tt>--trace</tt>{=_output_} (-t)]
- Turn on invoke/execute tracing. Also enable full backtrace on
- errors. The _output_ parameter is optional, but if specified it
- controls where the trace output is sent. If _output_ is
- <tt>stdout</tt>, then trace output is directed to standard output.
- If _output_ is <tt>stderr</tt>, or if it is missing, then trace
- output is sent to standard error.
-
-[<tt>--verbose</tt> (-v)]
- Echo the Sys commands to standard output.
-
-[<tt>--version</tt> (-V)]
- Display the program version and exit.
-
-[<tt>--where</tt> <em>pattern</em> (-W)]
- Display tasks that match <em>pattern</em> and the file and line
- number where the task is defined. By default this option will
- display all tasks, not just the tasks that have descriptions.
-
-[<tt>--no-deprecation-warnings</tt> (-X)]
- Do not display the deprecation warnings.
-
-In addition, any command line option of the form
-<em>VAR</em>=<em>VALUE</em> will be added to the environment hash
-<tt>ENV</tt> and may be tested in the Rakefile.
View
2 doc/example/.cvsignore
@@ -1,2 +0,0 @@
-*.o
-main
View
38 doc/example/Rakefile1
@@ -1,38 +0,0 @@
-# Example Rakefile -*- ruby -*-
-
-task :default => [:main]
-
-file "a.o" => ["a.c"] do |t|
- src = t.name.sub(/\.o$/, '.c')
- sh "gcc #{src} -c -o #{t.name}"
-end
-
-file "b.o" => ["b.c"] do |t|
- src = t.name.sub(/\.o$/, '.c')
- sh "gcc #{src} -c -o #{t.name}"
-end
-
-file "main.o" => ["main.c"] do |t|
- src = t.name.sub(/\.o$/, '.c')
- sh "gcc #{src} -c -o #{t.name}"
-end
-
-OBJFILES = ["a.o", "b.o", "main.o"]
-task :obj => OBJFILES
-
-file "main" => OBJFILES do |t|
- sh "gcc -o #{t.name} main.o a.o b.o"
-end
-
-task :clean do
- rm_f FileList['*.o']
- Dir['*~'].each { |fn| rm_f fn }
-end
-
-task :clobber => [:clean] do
- rm_f "main"
-end
-
-task :run => ["main"] do
- sh "./main"
-end
View
35 doc/example/Rakefile2
@@ -1,35 +0,0 @@
-# Example Rakefile -*- ruby -*-
-# Using the power of Ruby
-
-task :default => [:main]
-
-def ext(fn, newext)
- fn.sub(/\.[^.]+$/, newext)
-end
-
-SRCFILES = Dir['*.c']
-OBJFILES = SRCFILES.collect { |fn| ext(fn,".o") }
-
-OBJFILES.each do |objfile|
- srcfile = ext(objfile, ".c")
- file objfile => [srcfile] do |t|
- sh "gcc #{srcfile} -c -o #{t.name}"
- end
-end
-
-file "main" => OBJFILES do |t|
- sh "gcc -o #{t.name} main.o a.o b.o"
-end
-
-task :clean do
- rm_f FileList['*.o']
- Dir['*~'].each { |fn| rm_f fn }
-end
-
-task :clobber => [:clean] do
- rm_f "main"
-end
-
-task :run => ["main"] do
- sh "./main"
-end
View
6 doc/example/a.c
@@ -1,6 +0,0 @@
-#include <stdio.h>
-
-void a()
-{
- printf ("In function a\n");
-}
View
6 doc/example/b.c
@@ -1,6 +0,0 @@
-#include <stdio.h>
-
-void b()
-{
- printf ("In function b\n");
-}
View
11 doc/example/main.c
@@ -1,11 +0,0 @@
-#include <stdio.h>
-
-extern void a();
-extern void b();
-
-int main ()
-{
- a();
- b();
- return 0;
-}
View
43 doc/glossary.rdoc
@@ -1,43 +0,0 @@
-= Glossary
-
-action ::
- Code to be executed in order to perform a task. Actions in a rakefile are
- specified in a code block (usually delimited by +do+/+end+ pairs.
-
-execute ::
- When a task is executed, all of its actions are performed, in the order they
- were defined. Note that unlike <tt>invoke</tt>, <tt>execute</tt> always
- executes the actions (without invoking or executing the prerequisites).
-
-file task (Rake::FileTask) ::
- A file task is a task whose purpose is to create a file (which has the same
- name as the task). When invoked, a file task will only execute if one or
- more of the following conditions are true.
-
- 1. The associated file does not exist.
- 2. A prerequisite has a later time stamp than the existing file.
-
- Because normal Tasks always have the current time as timestamp, a FileTask
- that has a normal Task prerequisite will always execute.
-
-invoke ::
- When a task is invoked, first we check to see if it has been invoked before.
- If it has been, then nothing else is done. If this is the first time its
- been invoked, then we invoke each of its prerequisites. Finally, we check
- to see if we need to execute the actions of this task by calling
- Rake::Task#needed?. Finally, if the task is needed, we execute its actions.
-
- NOTE: Prerequisites are invoked even if the task is not needed.
-
-prerequisites ::
- Every task has a set (possibly empty) of prerequisites. A prerequisite P to
- Task T is itself a task that must be invoked before Task T.
-
-rule ::
- A rule is a recipe for synthesizing a task when no task is explicitly
- defined. Rules generally synthesize file tasks.
-
-task (Rake::Task) ::
- Basic unit of work in a rakefile. A task has a name, a set of prerequisites
- and a list of actions to be performed.
-
View
591 doc/jamis.rb
@@ -1,591 +0,0 @@
-module RDoc
-module Page
-
-FONTS = "\"Bitstream Vera Sans\", Verdana, Arial, Helvetica, sans-serif"
-
-STYLE = <<CSS
-a {
- color: #00F;
- text-decoration: none;
-}
-
-a:hover {
- color: #77F;
- text-decoration: underline;
-}
-
-body, td, p {
- font-family: %fonts%;
- background: #FFF;
- color: #000;
- margin: 0px;
- font-size: small;
-}
-
-#content {
- margin: 2em;
-}
-
-#description p {
- margin-bottom: 0.5em;
-}
-
-.sectiontitle {
- margin-top: 1em;
- margin-bottom: 1em;
- padding: 0.5em;
- padding-left: 2em;
- background: #005;
- color: #FFF;
- font-weight: bold;
- border: 1px dotted black;
-}
-
-.attr-rw {
- padding-left: 1em;
- padding-right: 1em;
- text-align: center;
- color: #055;
-}
-
-.attr-name {
- font-weight: bold;
-}
-
-.attr-desc {
-}
-
-.attr-value {
- font-family: monospace;
-}
-
-.file-title-prefix {
- font-size: large;
-}
-
-.file-title {
- font-size: large;
- font-weight: bold;
- background: #005;
- color: #FFF;
-}
-
-.banner {
- background: #005;
- color: #FFF;
- border: 1px solid black;
- padding: 1em;
-}
-
-.banner td {
- background: transparent;
- color: #FFF;
-}
-
-h1 a, h2 a, .sectiontitle a, .banner a {
- color: #FF0;
-}
-
-h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
- color: #FF7;
-}
-
-.dyn-source {
- display: none;
- background: #FFE;
- color: #000;
- border: 1px dotted black;
- margin: 0.5em 2em 0.5em 2em;
- padding: 0.5em;
-}
-
-.dyn-source .cmt {
- color: #00F;
- font-style: italic;
-}
-
-.dyn-source .kw {
- color: #070;
- font-weight: bold;
-}
-
-.method {
- margin-left: 1em;
- margin-right: 1em;
- margin-bottom: 1em;
-}
-
-.description pre {
- padding: 0.5em;
- border: 1px dotted black;
- background: #FFE;
-}
-
-.method .title {
- font-family: monospace;
- font-size: large;
- border-bottom: 1px dashed black;
- margin-bottom: 0.3em;
- padding-bottom: 0.1em;
-}
-
-.method .description, .method .sourcecode {
- margin-left: 1em;
-}
-
-.description p, .sourcecode p {
- margin-bottom: 0.5em;
-}
-
-.method .sourcecode p.source-link {
- text-indent: 0em;
- margin-top: 0.5em;
-}
-
-.method .aka {
- margin-top: 0.3em;
- margin-left: 1em;
- font-style: italic;
- text-indent: 2em;
-}
-
-h1 {
- padding: 1em;
- border: 1px solid black;
- font-size: x-large;
- font-weight: bold;
- color: #FFF;
- background: #007;
-}
-
-h2 {
- padding: 0.5em 1em 0.5em 1em;
- border: 1px solid black;
- font-size: large;
- font-weight: bold;
- color: #FFF;
- background: #009;
-}
-
-h3, h4, h5, h6 {
- padding: 0.2em 1em 0.2em 1em;
- border: 1px dashed black;
- color: #000;
- background: #AAF;
-}
-
-.sourcecode > pre {
- padding: 0.5em;
- border: 1px dotted black;
- background: #FFE;
-}
-
-CSS
-
-XHTML_PREAMBLE = %{<?xml version="1.0" encoding="%charset%"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-}
-
-HEADER = XHTML_PREAMBLE + <<ENDHEADER
-<html>
- <head>
- <title>%title%</title>
- <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
- <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
-
- <script language="JavaScript" type="text/javascript">
- // <![CDATA[
-
- function toggleSource( id )
- {
- var elem
- var link
-
- if( document.getElementById )
- {
- elem = document.getElementById( id )
- link = document.getElementById( "l_" + id )
- }
- else if ( document.all )
- {
- elem = eval( "document.all." + id )
- link = eval( "document.all.l_" + id )
- }
- else
- return false;
-
- if( elem.style.display == "block" )
- {
- elem.style.display = "none"
- link.innerHTML = "show source"
- }
- else
- {
- elem.style.display = "block"
- link.innerHTML = "hide source"
- }
- }
-
- function openCode( url )
- {
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
- }
- // ]]>
- </script>
- </head>
-
- <body>
-ENDHEADER
-
-FILE_PAGE = <<HTML
-<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
- <tr><td>
- <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
- <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />%short_name%</td>
- <td align="right">
- <table border='0' cellspacing="0" cellpadding="2">
- <tr>
- <td>Path:</td>
- <td>%full_path%
-IF:cvsurl
- &nbsp;(<a href="%cvsurl%">CVS</a>)
-ENDIF:cvsurl
- </td>
- </tr>
- <tr>
- <td>Modified:</td>
- <td>%dtm_modified%</td>
- </tr>
- </table>
- </td></tr>
- </table>
- </td></tr>
-</table><br>
-HTML
-
-###################################################################
-
-CLASS_PAGE = <<HTML
-<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
- <td class="file-title"><span class="file-title-prefix">%classmod%</span><br />%full_name%</td>
- <td align="right">
- <table cellspacing=0 cellpadding=2>
- <tr valign="top">
- <td>In:</td>
- <td>
-START:infiles
-HREF:full_path_url:full_path:
-IF:cvsurl
-&nbsp;(<a href="%cvsurl%">CVS</a>)
-ENDIF:cvsurl
-END:infiles
- </td>
- </tr>
-IF:parent
- <tr>
- <td>Parent:</td>
- <td>
-IF:par_url
- <a href="%par_url%">
-ENDIF:par_url
-%parent%
-IF:par_url
- </a>
-ENDIF:par_url
- </td>
- </tr>
-ENDIF:parent
- </table>
- </td>
- </tr>
- </table>
-HTML
-
-###################################################################
-
-METHOD_LIST = <<HTML
- <div id="content">
-IF:diagram
- <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center">
- %diagram%
- </td></tr></table>
-ENDIF:diagram
-
-IF:description
- <div class="description">%description%</div>
-ENDIF:description
-
-IF:requires
- <div class="sectiontitle">Required Files</div>
- <ul>
-START:requires
- <li>HREF:aref:name:</li>
-END:requires
- </ul>
-ENDIF:requires
-
-IF:toc
- <div class="sectiontitle">Contents</div>
- <ul>
-START:toc
- <li><a href="#%href%">%secname%</a></li>
-END:toc
- </ul>
-ENDIF:toc
-
-IF:methods
- <div class="sectiontitle">Methods</div>
- <ul>
-START:methods
- <li>HREF:aref:name:</li>
-END:methods
- </ul>
-ENDIF:methods
-
-IF:includes
-<div class="sectiontitle">Included Modules</div>
-<ul>
-START:includes
- <li>HREF:aref:name:</li>
-END:includes
-</ul>
-ENDIF:includes
-
-START:sections
-IF:sectitle
-<div class="sectiontitle"><a nem="%secsequence%">%sectitle%</a></div>
-IF:seccomment
-<div class="description">
-%seccomment%
-</div>
-ENDIF:seccomment
-ENDIF:sectitle
-
-IF:classlist
- <div class="sectiontitle">Classes and Modules</div>
- %classlist%
-ENDIF:classlist
-
-IF:constants
- <div class="sectiontitle">Constants</div>
- <table border='0' cellpadding='5'>
-START:constants
- <tr valign='top'>
- <td class="attr-name">%name%</td>
- <td>=</td>
- <td class="attr-value">%value%</td>
- </tr>
-IF:desc
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc">%desc%</td>
- </tr>
-ENDIF:desc
-END:constants
- </table>
-ENDIF:constants
-
-IF:attributes
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-START:attributes
- <tr valign='top'>
- <td class='attr-rw'>
-IF:rw
-[%rw%]
-ENDIF:rw
- </td>
- <td class='attr-name'>%name%</td>
- <td class='attr-desc'>%a_desc%</td>
- </tr>
-END:attributes
- </table>
-ENDIF:attributes
-
-IF:method_list
-START:method_list
-IF:methods
-<div class="sectiontitle">%type% %category% methods</div>
-START:methods
-<div class="method">
- <div class="title">
-IF:callseq
- <a name="%aref%"></a><b>%callseq%</b>
-ENDIF:callseq
-IFNOT:callseq
- <a name="%aref%"></a><b>%name%</b>%params%
-ENDIF:callseq
-IF:codeurl
-[ <a href="javascript:openCode('%codeurl%')">source</a> ]
-ENDIF:codeurl
- </div>
-IF:m_desc
- <div class="description">
- %m_desc%
- </div>
-ENDIF:m_desc
-IF:aka
-<div class="aka">
- This method is also aliased as
-START:aka
- <a href="%aref%">%name%</a>
-END:aka
-</div>
-ENDIF:aka
-IF:sourcecode
-<div class="sourcecode">
- <p class="source-link">[ <a href="javascript:toggleSource('%aref%_source')" id="l_%aref%_source">show source</a> ]</p>
- <div id="%aref%_source" class="dyn-source">
-<pre>
-%sourcecode%
-</pre>
- </div>
-</div>
-ENDIF:sourcecode
-</div>
-END:methods
-ENDIF:methods
-END:method_list
-ENDIF:method_list
-END:sections
-</div>
-HTML
-
-FOOTER = <<ENDFOOTER
- </body>
-</html>
-ENDFOOTER
-
-BODY = HEADER + <<ENDBODY
- !INCLUDE! <!-- banner header -->
-
- <div id="bodyContent">
- #{METHOD_LIST}
- </div>
-
- #{FOOTER}
-ENDBODY
-
-########################## Source code ##########################
-
-SRC_PAGE = XHTML_PREAMBLE + <<HTML
-<html>
-<head><title>%title%</title>
-<meta http-equiv="Content-Type" content="text/html; charset=%charset%">
-<style>
-.ruby-comment { color: green; font-style: italic }
-.ruby-constant { color: #4433aa; font-weight: bold; }
-.ruby-identifier { color: #222222; }
-.ruby-ivar { color: #2233dd; }
-.ruby-keyword { color: #3333FF; font-weight: bold }
-.ruby-node { color: #777777; }
-.ruby-operator { color: #111111; }
-.ruby-regexp { color: #662222; }
-.ruby-value { color: #662222; font-style: italic }
- .kw { color: #3333FF; font-weight: bold }
- .cmt { color: green; font-style: italic }
- .str { color: #662222; font-style: italic }
- .re { color: #662222; }
-</style>
-</head>
-<body bgcolor="white">
-<pre>%code%</pre>
-</body>
-</html>
-HTML
-
-########################## Index ################################
-
-FR_INDEX_BODY = <<HTML
-!INCLUDE!
-HTML
-
-FILE_INDEX = XHTML_PREAMBLE + <<HTML
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=%charset%">
-<style>
-<!--
- body {
- background-color: #EEE;
- font-family: #{FONTS};
- color: #000;
- margin: 0px;
- }
- .banner {
- background: #005;
- color: #FFF;
- padding: 0.2em;
- font-size: small;
- font-weight: bold;
- text-align: center;
- }
- .entries {
- margin: 0.25em 1em 0 1em;
- font-size: x-small;
- }
- a {
- color: #00F;
- text-decoration: none;
- white-space: nowrap;
- }
- a:hover {
- color: #77F;
- text-decoration: underline;
- }
--->
-</style>
-<base target="docwin">
-</head>
-<body>
-<div class="banner">%list_title%</div>
-<div class="entries">
-START:entries
-<a href="%href%">%name%</a><br>
-END:entries
-</div>
-</body></html>
-HTML
-
-CLASS_INDEX = FILE_INDEX
-METHOD_INDEX = FILE_INDEX
-
-INDEX = XHTML_PREAMBLE + <<HTML
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>%title%</title>
- <meta http-equiv="Content-Type" content="text/html; charset=%charset%">
-</head>
-
-<frameset cols="20%,*">
- <frameset rows="15%,35%,50%">
- <frame src="fr_file_index.html" title="Files" name="Files" />
- <frame src="fr_class_index.html" name="Classes" />
- <frame src="fr_method_index.html" name="Methods" />
- </frameset>
-IF:inline_source
- <frame src="%initial_page%" name="docwin">
-ENDIF:inline_source
-IFNOT:inline_source
- <frameset rows="80%,20%">
- <frame src="%initial_page%" name="docwin">
- <frame src="blank.html" name="source">
- </frameset>
-ENDIF:inline_source
- <noframes>
- <body bgcolor="white">
- Click <a href="html/index.html">here</a> for a non-frames
- version of this page.
- </body>
- </noframes>
-</frameset>
-
-</html>
-HTML
-
-end
-end
-
-
View
127 doc/proto_rake.rdoc
@@ -1,127 +0,0 @@
-= Original Prototype Rake
-
-This is the original 100 line prototype rake program.
-
----
- #!/usr/bin/env ruby
-
- require 'ftools'
-
- class Task
- TASKS = Hash.new
-
- attr_reader :prerequisites
-
- def initialize(task_name)
- @name = task_name
- @prerequisites = []
- @actions = []
- end
-
- def enhance(deps=nil, &block)
- @prerequisites |= deps if deps
- @actions << block if block_given?
- self
- end
-
- def name
- @name.to_s
- end
-
- def invoke
- @prerequisites.each { |n| Task[n].invoke }
- execute if needed?
- end
-
- def execute
- return if @triggered
- @triggered = true
- @actions.collect { |act| result = act.call(self) }.last
- end
-
- def needed?
- true
- end
-
- def timestamp
- Time.now
- end
-
- class << self
- def [](task_name)
- TASKS[intern(task_name)] or fail "Don't know how to rake #{task_name}"
- end
-
- def define_task(args, &block)
- case args
- when Hash
- fail "Too Many Target Names: #{args.keys.join(' ')}" if args.size > 1
- fail "No Task Name Given" if args.size < 1
- task_name = args.keys[0]
- deps = args[task_name]
- else
- task_name = args
- deps = []
- end
- deps = deps.collect {|d| intern(d) }
- get(task_name).enhance(deps, &block)
- end
-
- def get(task_name)
- name = intern(task_name)
- TASKS[name] ||= self.new(name)
- end
-
- def intern(task_name)
- (Symbol === task_name) ? task_name : task_name.intern
- end
- end
- end
-
- class FileTask < Task
- def needed?
- return true unless File.exist?(name)
- latest_prereq = @prerequisites.collect{|n| Task[n].timestamp}.max
- return false if latest_prereq.nil?
- timestamp < latest_prereq
- end
-
- def timestamp
- File.new(name.to_s).mtime
- end
- end
-
- def task(args, &block)
- Task.define_task(args, &block)
- end
-
- def file(args, &block)
- FileTask.define_task(args, &block)
- end