gemrage 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/Gemfile +1 -0
  2. data/Gemfile.lock +6 -0
  3. data/VERSION +1 -1
  4. data/gemrage.gemspec +160 -2
  5. data/lib/rubygems/commands/scan_command.rb +26 -7
  6. data/spec/spec_helper.rb +2 -1
  7. data/vendor/ruby/1.8/bin/launchy +19 -0
  8. data/vendor/ruby/1.8/bin/rake +19 -0
  9. data/vendor/ruby/1.8/cache/configuration-1.1.0.gem +0 -0
  10. data/vendor/ruby/1.8/cache/launchy-0.3.7.gem +0 -0
  11. data/vendor/ruby/1.8/cache/rake-0.8.7.gem +0 -0
  12. data/vendor/ruby/1.8/gems/configuration-1.1.0/README +197 -0
  13. data/vendor/ruby/1.8/gems/configuration-1.1.0/README.erb +69 -0
  14. data/vendor/ruby/1.8/gems/configuration-1.1.0/Rakefile +241 -0
  15. data/vendor/ruby/1.8/gems/configuration-1.1.0/config/a.rb +5 -0
  16. data/vendor/ruby/1.8/gems/configuration-1.1.0/config/b.rb +19 -0
  17. data/vendor/ruby/1.8/gems/configuration-1.1.0/config/c.rb +8 -0
  18. data/vendor/ruby/1.8/gems/configuration-1.1.0/config/d.rb +5 -0
  19. data/vendor/ruby/1.8/gems/configuration-1.1.0/config/e.rb +13 -0
  20. data/vendor/ruby/1.8/gems/configuration-1.1.0/configuration.gemspec +28 -0
  21. data/vendor/ruby/1.8/gems/configuration-1.1.0/lib/configuration.rb +199 -0
  22. data/vendor/ruby/1.8/gems/configuration-1.1.0/samples/a.rb +11 -0
  23. data/vendor/ruby/1.8/gems/configuration-1.1.0/samples/b.rb +11 -0
  24. data/vendor/ruby/1.8/gems/configuration-1.1.0/samples/c.rb +11 -0
  25. data/vendor/ruby/1.8/gems/configuration-1.1.0/samples/d.rb +14 -0
  26. data/vendor/ruby/1.8/gems/configuration-1.1.0/samples/e.rb +12 -0
  27. data/vendor/ruby/1.8/gems/launchy-0.3.7/HISTORY +71 -0
  28. data/vendor/ruby/1.8/gems/launchy-0.3.7/LICENSE +16 -0
  29. data/vendor/ruby/1.8/gems/launchy-0.3.7/README +53 -0
  30. data/vendor/ruby/1.8/gems/launchy-0.3.7/Rakefile +62 -0
  31. data/vendor/ruby/1.8/gems/launchy-0.3.7/bin/launchy +12 -0
  32. data/vendor/ruby/1.8/gems/launchy-0.3.7/gemspec.rb +41 -0
  33. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy/application.rb +178 -0
  34. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy/browser.rb +98 -0
  35. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy/command_line.rb +48 -0
  36. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy/paths.rb +53 -0
  37. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy/version.rb +17 -0
  38. data/vendor/ruby/1.8/gems/launchy-0.3.7/lib/launchy.rb +53 -0
  39. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/application_spec.rb +62 -0
  40. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/browser_spec.rb +58 -0
  41. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/launchy_spec.rb +18 -0
  42. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/paths_spec.rb +15 -0
  43. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/spec_helper.rb +5 -0
  44. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/tattle-host-os.yml +427 -0
  45. data/vendor/ruby/1.8/gems/launchy-0.3.7/spec/version_spec.rb +11 -0
  46. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/announce.rake +39 -0
  47. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/config.rb +107 -0
  48. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/distribution.rake +46 -0
  49. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/documentation.rake +32 -0
  50. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/rspec.rake +37 -0
  51. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/rubyforge.rake +52 -0
  52. data/vendor/ruby/1.8/gems/launchy-0.3.7/tasks/utils.rb +80 -0
  53. data/vendor/ruby/1.8/gems/rake-0.8.7/CHANGES +440 -0
  54. data/vendor/ruby/1.8/gems/rake-0.8.7/MIT-LICENSE +21 -0
  55. data/vendor/ruby/1.8/gems/rake-0.8.7/README +196 -0
  56. data/vendor/ruby/1.8/gems/rake-0.8.7/Rakefile +430 -0
  57. data/vendor/ruby/1.8/gems/rake-0.8.7/TODO +20 -0
  58. data/vendor/ruby/1.8/gems/rake-0.8.7/bin/rake +31 -0
  59. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/command_line_usage.rdoc +102 -0
  60. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/example/Rakefile1 +38 -0
  61. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/example/Rakefile2 +35 -0
  62. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/example/a.c +6 -0
  63. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/example/b.c +6 -0
  64. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/example/main.c +11 -0
  65. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/glossary.rdoc +51 -0
  66. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/jamis.rb +591 -0
  67. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/proto_rake.rdoc +127 -0
  68. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/rake.1.gz +0 -0
  69. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/rakefile.rdoc +534 -0
  70. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/rational.rdoc +151 -0
  71. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc +23 -0
  72. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc +35 -0
  73. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc +53 -0
  74. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc +78 -0
  75. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc +46 -0
  76. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc +141 -0
  77. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc +119 -0
  78. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc +59 -0
  79. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc +121 -0
  80. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc +47 -0
  81. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc +114 -0
  82. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc +165 -0
  83. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc +112 -0
  84. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc +147 -0
  85. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc +53 -0
  86. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc +55 -0
  87. data/vendor/ruby/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc +55 -0
  88. data/vendor/ruby/1.8/gems/rake-0.8.7/install.rb +88 -0
  89. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/alt_system.rb +108 -0
  90. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/classic_namespace.rb +8 -0
  91. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/clean.rb +33 -0
  92. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb +24 -0
  93. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb +153 -0
  94. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/publisher.rb +75 -0
  95. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  96. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb +47 -0
  97. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/sys.rb +209 -0
  98. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/gempackagetask.rb +97 -0
  99. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/loaders/makefile.rb +42 -0
  100. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/packagetask.rb +184 -0
  101. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb +5 -0
  102. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/rdoctask.rb +209 -0
  103. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb +23 -0
  104. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/runtest.rb +23 -0
  105. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/tasklib.rb +23 -0
  106. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/testtask.rb +161 -0
  107. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/win32.rb +55 -0
  108. data/vendor/ruby/1.8/gems/rake-0.8.7/lib/rake.rb +2506 -0
  109. data/vendor/ruby/1.8/gems/rake-0.8.7/test/capture_stdout.rb +26 -0
  110. data/vendor/ruby/1.8/gems/rake-0.8.7/test/check_expansion.rb +5 -0
  111. data/vendor/ruby/1.8/gems/rake-0.8.7/test/check_no_expansion.rb +5 -0
  112. data/vendor/ruby/1.8/gems/rake-0.8.7/test/contrib/test_sys.rb +47 -0
  113. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/chains/Rakefile +15 -0
  114. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/default/Rakefile +19 -0
  115. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/dryrun/Rakefile +22 -0
  116. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/file_creation_task/Rakefile +33 -0
  117. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/imports/Rakefile +19 -0
  118. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/imports/deps.mf +1 -0
  119. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/multidesc/Rakefile +17 -0
  120. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/namespace/Rakefile +57 -0
  121. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/rakelib/test1.rb +3 -0
  122. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/rbext/rakefile.rb +3 -0
  123. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/sample.mf +14 -0
  124. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/statusreturn/Rakefile +8 -0
  125. data/vendor/ruby/1.8/gems/rake-0.8.7/test/data/unittest/Rakefile +1 -0
  126. data/vendor/ruby/1.8/gems/rake-0.8.7/test/filecreation.rb +32 -0
  127. data/vendor/ruby/1.8/gems/rake-0.8.7/test/functional.rb +15 -0
  128. data/vendor/ruby/1.8/gems/rake-0.8.7/test/in_environment.rb +30 -0
  129. data/vendor/ruby/1.8/gems/rake-0.8.7/test/rake_test_setup.rb +24 -0
  130. data/vendor/ruby/1.8/gems/rake-0.8.7/test/reqfile.rb +3 -0
  131. data/vendor/ruby/1.8/gems/rake-0.8.7/test/reqfile2.rb +3 -0
  132. data/vendor/ruby/1.8/gems/rake-0.8.7/test/session_functional.rb +339 -0
  133. data/vendor/ruby/1.8/gems/rake-0.8.7/test/shellcommand.rb +3 -0
  134. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_application.rb +675 -0
  135. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_clean.rb +14 -0
  136. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_definitions.rb +85 -0
  137. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_earlytime.rb +35 -0
  138. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_extension.rb +63 -0
  139. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_file_creation_task.rb +62 -0
  140. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_file_task.rb +143 -0
  141. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_filelist.rb +623 -0
  142. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_fileutils.rb +251 -0
  143. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_ftp.rb +59 -0
  144. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_invocation_chain.rb +81 -0
  145. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_makefile_loader.rb +26 -0
  146. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_multitask.rb +45 -0
  147. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_namespace.rb +55 -0
  148. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_package_task.rb +118 -0
  149. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_pathmap.rb +210 -0
  150. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_pseudo_status.rb +26 -0
  151. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_rake.rb +41 -0
  152. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_rdoc_task.rb +88 -0
  153. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_require.rb +35 -0
  154. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_rules.rb +349 -0
  155. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_task_arguments.rb +89 -0
  156. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_task_manager.rb +173 -0
  157. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_tasklib.rb +12 -0
  158. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_tasks.rb +374 -0
  159. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_test_task.rb +77 -0
  160. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_top_level_functions.rb +86 -0
  161. data/vendor/ruby/1.8/gems/rake-0.8.7/test/test_win32.rb +72 -0
  162. data/vendor/ruby/1.8/specifications/configuration-1.1.0.gemspec +27 -0
  163. data/vendor/ruby/1.8/specifications/launchy-0.3.7.gemspec +44 -0
  164. data/vendor/ruby/1.8/specifications/rake-0.8.7.gemspec +32 -0
  165. metadata +163 -5
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2003, 2004 Jim Weirich
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
@@ -0,0 +1,196 @@
1
+ = RAKE -- Ruby Make
2
+
3
+ Supporting Rake version: 0.8.6
4
+
5
+ This package contains Rake, a simple ruby build program with
6
+ capabilities similar to make.
7
+
8
+ Rake has the following features:
9
+
10
+ * Rakefiles (rake's version of Makefiles) are completely defined in
11
+ standard Ruby syntax. No XML files to edit. No quirky Makefile
12
+ syntax to worry about (is that a tab or a space?)
13
+
14
+ * Users can specify tasks with prerequisites.
15
+
16
+ * Rake supports rule patterns to synthesize implicit tasks.
17
+
18
+ * Flexible FileLists that act like arrays but know about manipulating
19
+ file names and paths.
20
+
21
+ * A library of prepackaged tasks to make building rakefiles easier. For example,
22
+ tasks for building tarballs, gems and RDoc output are provided.
23
+
24
+ * Supports parallel execution of tasks.
25
+
26
+
27
+ == Installation
28
+
29
+ === Gem Installation
30
+
31
+ Download and install rake with the following.
32
+
33
+ gem install rake
34
+
35
+ === Normal Installation
36
+
37
+ You can download the source tarball of the latest version of Rake from
38
+
39
+ * http://rubyforge.org/project/showfiles.php?group_id=50
40
+
41
+ Extract the tarball and run
42
+
43
+ % ruby install.rb
44
+
45
+ from its distribution directory.
46
+
47
+ == Usage
48
+
49
+ === Simple Example
50
+
51
+ First, you must write a "Rakefile" file which contains the build rules. Here's
52
+ a simple example:
53
+
54
+ task :default => [:test]
55
+
56
+ task :test do
57
+ ruby "test/unittest.rb"
58
+ end
59
+
60
+ This Rakefile has two tasks:
61
+
62
+ * A task named "test", which - upon invocation - will run a unit test file in
63
+ Ruby.
64
+ * A task named "default". This task does nothing by itself, but it has exactly
65
+ one dependency, namely the "test" task. Invoking the "default" task will
66
+ cause Rake to invoke the "test" task as well.
67
+
68
+ Running the "rake" command without any options will cause it to run the
69
+ "default" task in the Rakefile:
70
+
71
+ % ls
72
+ Rakefile test/
73
+ % rake
74
+ (in /home/some_user/Projects/rake)
75
+ ruby test/unittest.rb
76
+ ....unit test output here...
77
+
78
+ Type "rake --help" for all available options.
79
+
80
+
81
+ === More Information
82
+
83
+ * For details on Rake's command-line invocation, read
84
+ doc/command_line_usage.rdoc[http://rake.rubyforge.org/files/doc/command_line_usage_rdoc.html]
85
+ * For details on writing Rakefiles, see
86
+ doc/rakefile.rdoc[http://rake.rubyforge.org/files/doc/rakefile_rdoc.html].
87
+ * For the original announcement of Rake, see
88
+ doc/rational.rdoc[http://rake.rubyforge.org/files/doc/rational_rdoc.html].
89
+ * For a glossary of terms, see
90
+ doc/glossary.rdoc[http://rake.rubyforge.org/files/doc/glossary_rdoc.html].
91
+
92
+
93
+ == Development
94
+
95
+ === Source Repository
96
+
97
+ Rake is currently hosted at github. The github web page is
98
+ http://github.com/jimweirich/rake. The public git clone URL is
99
+
100
+ * git://github.com/jimweirich/rake.git
101
+
102
+ === Running the Rake Test Suite
103
+
104
+ If you wish to run the unit and functional tests that come with Rake:
105
+
106
+ * Install the 'session' gem in order to run the functional tests.
107
+ * CD into the top project directory of rake.
108
+ * Type one of the following:
109
+
110
+ rake # If you have a version of rake installed
111
+ ruby -Ilib bin/rake # If you do not have a version of rake installed.
112
+
113
+ === Issues and Bug Reports
114
+
115
+ Bugs, features requests and other issues can be logged at
116
+
117
+ * http://onestepback.org/redmine/projects/show/rake
118
+
119
+ You will need an account to before you can post issues. Register at
120
+ http://onestepback.org/redmine/account/register. Or you can send me
121
+ an email (at jim dot weirich at gmail dot com)
122
+
123
+
124
+ == Online Resources
125
+
126
+ === Rake References
127
+
128
+ * Rake Documentation Home: http://docs.rubyrake.org
129
+ * Rake Project Page: http://rubyforge.org/projects/rake
130
+ * Rake API Documents: http://rake.rubyforge.org
131
+ * Rake Source Code Repo: http://github.com/jimweirich/rake
132
+ * Rake Git Repo Clone URL: git://github.com/jimweirich/rake.git
133
+
134
+ === Presentations and Articles about Rake
135
+
136
+ * Jim Weirich's 2003 RubyConf presentation: http://onestepback.org/articles/buildingwithrake/
137
+ * Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
138
+
139
+ == Other Make Reinvisionings ...
140
+
141
+ Rake is a late entry in the make replacement field. Here are links to
142
+ other projects with similar (and not so similar) goals.
143
+
144
+ * http://directory.fsf.org/bras.html -- Bras, one of earliest
145
+ implementations of "make in a scripting language".
146
+ * http://www.a-a-p.org -- Make in Python
147
+ * http://www.aromatic.com/tools/jam.txt -- JAM, Java Automated Make
148
+ * http://ant.apache.org -- The Ant project
149
+ * http://ppt.perl.org/commands/make/index.html -- Make from the Perl
150
+ Power Tools implementation.
151
+ * http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
152
+ * http://make.rubyforge.org -- Rant, another Ruby make tool.
153
+
154
+ == Credits
155
+
156
+ [<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
157
+
158
+ [<b>nobu.nokada@softhome.net</b>] For the initial patch for rule support.
159
+
160
+ [<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
161
+
162
+ == License
163
+
164
+ Rake is available under an MIT-style license.
165
+
166
+ :include: MIT-LICENSE
167
+
168
+ == Support
169
+
170
+ The Rake homepage is http://rake.rubyforge.org. You can find the Rake
171
+ RubyForge page at http://rubyforge.org/projects/rake.
172
+
173
+ Feel free to submit commits or feature requests. If you send a patch,
174
+ remember to update the corresponding unit tests. If fact, I prefer
175
+ new feature to be submitted in the form of new unit tests.
176
+
177
+ For other information, feel free to ask on the ruby-talk mailing list
178
+ (which is mirrored to comp.lang.ruby) or contact
179
+ jim dot weirich at gmail.com.
180
+
181
+ ---
182
+
183
+ = Other stuff
184
+
185
+ Author:: Jim Weirich <jim.weirich@gmail.com>
186
+ Requires:: Ruby 1.8.0 or later
187
+ License:: Copyright 2003-2008 by Jim Weirich.
188
+ Released under an MIT-style license. See the LICENSE file
189
+ included in the distribution.
190
+
191
+ == Warranty
192
+
193
+ This software is provided "as is" and without any express or
194
+ implied warranties, including, without limitation, the implied
195
+ warranties of merchantibility and fitness for a particular
196
+ purpose.
@@ -0,0 +1,430 @@
1
+ # Rakefile for rake -*- ruby -*-
2
+
3
+ # Copyright 2003, 2004, 2005 by Jim Weirich (jim@weirichhouse.org)
4
+ # All rights reserved.
5
+
6
+ # This file may be distributed under an MIT style license. See
7
+ # MIT-LICENSE for details.
8
+
9
+ begin
10
+ require 'rubygems'
11
+ require 'rake/gempackagetask'
12
+ rescue Exception
13
+ nil
14
+ end
15
+ require 'rake/clean'
16
+ require 'rake/testtask'
17
+ require 'rake/rdoctask'
18
+
19
+ CLEAN.include('**/*.o', '*.dot', '**/.*.rbc')
20
+ CLOBBER.include('doc/example/main', 'testdata')
21
+ CLOBBER.include('test/data/**/temp_*')
22
+ CLOBBER.include('test/data/chains/play.*')
23
+ CLOBBER.include('test/data/file_creation_task/build')
24
+ CLOBBER.include('test/data/file_creation_task/src')
25
+ CLOBBER.include('TAGS')
26
+ CLOBBER.include('coverage', 'rcov_aggregate')
27
+
28
+ # Prevent OS X from including extended attribute junk in the tar output
29
+ ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
30
+
31
+ def announce(msg='')
32
+ STDERR.puts msg
33
+ end
34
+
35
+ # Determine the current version of the software
36
+
37
+ if `ruby -Ilib ./bin/rake --version` =~ /rake, version ([0-9.]+)$/
38
+ CURRENT_VERSION = $1
39
+ else
40
+ CURRENT_VERSION = "0.0.0"
41
+ end
42
+
43
+ $package_version = CURRENT_VERSION
44
+
45
+ SRC_RB = FileList['lib/**/*.rb']
46
+
47
+ # The default task is run if rake is given no explicit arguments.
48
+
49
+ desc "Default Task"
50
+ task :default => :test_all
51
+
52
+ # Test Tasks ---------------------------------------------------------
53
+ task :dbg do |t|
54
+ puts "Arguments are: #{t.args.join(', ')}"
55
+ end
56
+
57
+ # Common Abbreviations ...
58
+
59
+ task :ta => :test_all
60
+ task :tf => :test_functional
61
+ task :tu => :test_units
62
+ task :tc => :test_contribs
63
+ task :test => :test_units
64
+
65
+ Rake::TestTask.new(:test_all) do |t|
66
+ t.test_files = FileList[
67
+ 'test/test*.rb',
68
+ 'test/contrib/test*.rb',
69
+ 'test/fun*.rb'
70
+ ]
71
+ t.warning = true
72
+ t.verbose = false
73
+ end
74
+
75
+ Rake::TestTask.new(:test_units) do |t|
76
+ t.test_files = FileList['test/test*.rb']
77
+ t.warning = true
78
+ t.verbose = false
79
+ end
80
+
81
+ Rake::TestTask.new(:test_functional) do |t|
82
+ t.test_files = FileList['test/fun*.rb']
83
+ t.warning = true
84
+ t.verbose = false
85
+ end
86
+
87
+ Rake::TestTask.new(:test_contribs) do |t|
88
+ t.test_files = FileList['test/contrib/test*.rb']
89
+ t.warning = true
90
+ t.verbose = false
91
+ end
92
+
93
+ begin
94
+ require 'rcov/rcovtask'
95
+
96
+ Rcov::RcovTask.new do |t|
97
+ t.libs << "test"
98
+ dot_rakes =
99
+ t.rcov_opts = [
100
+ '-xRakefile', '-xrakefile', '-xpublish.rf',
101
+ '-xlib/rake/contrib', '-x/Library',
102
+ '--text-report',
103
+ '--sort coverage'
104
+ ] + FileList['rakelib/*.rake'].pathmap("-x%p")
105
+ t.test_files = FileList[
106
+ 'test/test*.rb', 'test/functional.rb'
107
+ ]
108
+ t.output_dir = 'coverage'
109
+ t.verbose = true
110
+ end
111
+ rescue LoadError
112
+ puts "RCov is not available"
113
+ end
114
+
115
+ directory 'testdata'
116
+ [:test_all, :test_units, :test_contribs, :test_functional].each do |t|
117
+ task t => ['testdata']
118
+ end
119
+
120
+ # CVS Tasks ----------------------------------------------------------
121
+
122
+ # Install rake using the standard install.rb script.
123
+
124
+ desc "Install the application"
125
+ task :install do
126
+ ruby "install.rb"
127
+ end
128
+
129
+ # Create a task to build the RDOC documentation tree.
130
+
131
+ begin
132
+ require 'darkfish-rdoc'
133
+ DARKFISH_ENABLED = true
134
+ rescue LoadError => ex
135
+ DARKFISH_ENABLED = false
136
+ end
137
+
138
+ BASE_RDOC_OPTIONS = [
139
+ '--line-numbers',
140
+ '--main', 'README',
141
+ '--title', 'Rake -- Ruby Make',
142
+ ]
143
+
144
+ rd = Rake::RDocTask.new("rdoc") do |rdoc|
145
+ rdoc.rdoc_dir = 'html'
146
+ rdoc.template = 'doc/jamis.rb'
147
+ rdoc.title = "Rake -- Ruby Make"
148
+ rdoc.options = BASE_RDOC_OPTIONS.dup
149
+ rdoc.options << '-SHN' << '-f' << 'darkfish' if DARKFISH_ENABLED
150
+
151
+ rdoc.rdoc_files.include('README', 'MIT-LICENSE', 'TODO', 'CHANGES')
152
+ rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
153
+ rdoc.rdoc_files.exclude(/\bcontrib\b/)
154
+ end
155
+
156
+ # ====================================================================
157
+ # Create a task that will package the Rake software into distributable
158
+ # tar, zip and gem files.
159
+
160
+ PKG_FILES = FileList[
161
+ 'install.rb',
162
+ '[A-Z]*',
163
+ 'bin/**/*',
164
+ 'lib/**/*.rb',
165
+ 'test/**/*.rb',
166
+ 'test/**/*.rf',
167
+ 'test/**/*.mf',
168
+ 'test/**/Rakefile',
169
+ 'test/**/subdir',
170
+ 'doc/**/*'
171
+ ]
172
+ PKG_FILES.exclude('doc/example/*.o')
173
+ PKG_FILES.exclude('TAGS')
174
+ PKG_FILES.exclude(%r{doc/example/main$})
175
+
176
+ if ! defined?(Gem)
177
+ puts "Package Target requires RubyGEMs"
178
+ else
179
+ SPEC = Gem::Specification.new do |s|
180
+
181
+ #### Basic information.
182
+
183
+ s.name = 'rake'
184
+ s.version = $package_version
185
+ s.summary = "Ruby based make-like utility."
186
+ s.description = <<-EOF
187
+ Rake is a Make-like program implemented in Ruby. Tasks
188
+ and dependencies are specified in standard Ruby syntax.
189
+ EOF
190
+
191
+ #### Dependencies and requirements.
192
+
193
+ #s.add_dependency('log4r', '> 1.0.4')
194
+ #s.requirements << ""
195
+
196
+ #### Which files are to be included in this gem? Everything! (Except CVS directories.)
197
+
198
+ s.files = PKG_FILES.to_a
199
+
200
+ #### C code extensions.
201
+
202
+ #s.extensions << "ext/rmagic/extconf.rb"
203
+
204
+ #### Load-time details: library and application (you will need one or both).
205
+
206
+ s.require_path = 'lib' # Use these for libraries.
207
+
208
+ s.bindir = "bin" # Use these for applications.
209
+ s.executables = ["rake"]
210
+ s.default_executable = "rake"
211
+
212
+ #### Documentation and testing.
213
+
214
+ s.has_rdoc = true
215
+ s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
216
+ s.rdoc_options = BASE_RDOC_OPTIONS
217
+
218
+ #### Author and project details.
219
+
220
+ s.author = "Jim Weirich"
221
+ s.email = "jim@weirichhouse.org"
222
+ s.homepage = "http://rake.rubyforge.org"
223
+ s.rubyforge_project = "rake"
224
+ # if ENV['CERT_DIR']
225
+ # s.signing_key = File.join(ENV['CERT_DIR'], 'gem-private_key.pem')
226
+ # s.cert_chain = [File.join(ENV['CERT_DIR'], 'gem-public_cert.pem')]
227
+ # end
228
+ end
229
+
230
+ package_task = Rake::GemPackageTask.new(SPEC) do |pkg|
231
+ pkg.need_zip = true
232
+ pkg.need_tar = true
233
+ end
234
+
235
+ file "rake.gemspec" => ["Rakefile", "lib/rake.rb"] do |t|
236
+ require 'yaml'
237
+ open(t.name, "w") { |f| f.puts SPEC.to_yaml }
238
+ end
239
+
240
+ desc "Create a stand-alone gemspec"
241
+ task :gemspec => "rake.gemspec"
242
+ end
243
+
244
+ # Misc tasks =========================================================
245
+
246
+ def count_lines(filename)
247
+ lines = 0
248
+ codelines = 0
249
+ open(filename) { |f|
250
+ f.each do |line|
251
+ lines += 1
252
+ next if line =~ /^\s*$/
253
+ next if line =~ /^\s*#/
254
+ codelines += 1
255
+ end
256
+ }
257
+ [lines, codelines]
258
+ end
259
+
260
+ def show_line(msg, lines, loc)
261
+ printf "%6s %6s %s\n", lines.to_s, loc.to_s, msg
262
+ end
263
+
264
+ desc "Count lines in the main rake file"
265
+ task :lines do
266
+ total_lines = 0
267
+ total_code = 0
268
+ show_line("File Name", "LINES", "LOC")
269
+ SRC_RB.each do |fn|
270
+ lines, codelines = count_lines(fn)
271
+ show_line(fn, lines, codelines)
272
+ total_lines += lines
273
+ total_code += codelines
274
+ end
275
+ show_line("TOTAL", total_lines, total_code)
276
+ end
277
+
278
+ # Define an optional publish target in an external file. If the
279
+ # publish.rf file is not found, the publish targets won't be defined.
280
+
281
+ load "publish.rf" if File.exist? "publish.rf"
282
+
283
+ # Support Tasks ------------------------------------------------------
284
+
285
+ RUBY_FILES = FileList['**/*.rb'].exclude('pkg')
286
+
287
+ desc "Look for TODO and FIXME tags in the code"
288
+ task :todo do
289
+ RUBY_FILES.egrep(/#.*(FIXME|TODO|TBD)/)
290
+ end
291
+
292
+ desc "Look for Debugging print lines"
293
+ task :dbg do
294
+ RUBY_FILES.egrep(/\bDBG|\bbreakpoint\b/)
295
+ end
296
+
297
+ desc "List all ruby files"
298
+ task :rubyfiles do
299
+ puts RUBY_FILES
300
+ puts FileList['bin/*'].exclude('bin/*.rb')
301
+ end
302
+ task :rf => :rubyfiles
303
+
304
+ desc "Create a TAGS file"
305
+ task :tags => "TAGS"
306
+
307
+ TAGS = 'xctags -e'
308
+
309
+ file "TAGS" => RUBY_FILES do
310
+ puts "Makings TAGS"
311
+ sh "#{TAGS} #{RUBY_FILES}", :verbose => false
312
+ end
313
+
314
+ # --------------------------------------------------------------------
315
+ # Creating a release
316
+
317
+ def plugin(plugin_name)
318
+ require "rake/plugins/#{plugin_name}"
319
+ end
320
+
321
+ task :noop
322
+ #plugin "release_manager"
323
+
324
+ desc "Make a new release"
325
+ task :release, :rel, :reuse, :reltest,
326
+ :needs => [
327
+ :prerelease,
328
+ :clobber,
329
+ :test_all,
330
+ :update_version,
331
+ :package,
332
+ :tag
333
+ ] do
334
+ announce
335
+ announce "**************************************************************"
336
+ announce "* Release #{$package_version} Complete."
337
+ announce "* Packages ready to upload."
338
+ announce "**************************************************************"
339
+ announce
340
+ end
341
+
342
+ # Validate that everything is ready to go for a release.
343
+ task :prerelease, :rel, :reuse, :reltest do |t, args|
344
+ $package_version = args.rel
345
+ announce
346
+ announce "**************************************************************"
347
+ announce "* Making RubyGem Release #{$package_version}"
348
+ announce "* (current version #{CURRENT_VERSION})"
349
+ announce "**************************************************************"
350
+ announce
351
+
352
+ # Is a release number supplied?
353
+ unless args.rel
354
+ fail "Usage: rake release[X.Y.Z] [REUSE=tag_suffix]"
355
+ end
356
+
357
+ # Is the release different than the current release.
358
+ # (or is REUSE set?)
359
+ if $package_version == CURRENT_VERSION && ! args.reuse
360
+ fail "Current version is #{$package_version}, must specify REUSE=tag_suffix to reuse version"
361
+ end
362
+
363
+ # Are all source files checked in?
364
+ if args.reltest
365
+ announce "Release Task Testing, skipping checked-in file test"
366
+ else
367
+ announce "Checking for unchecked-in files..."
368
+ data = `svn st`
369
+ unless data =~ /^$/
370
+ abort "svn status is not clean ... do you have unchecked-in files?"
371
+ end
372
+ announce "No outstanding checkins found ... OK"
373
+ end
374
+ end
375
+
376
+ task :update_version, :rel, :reuse, :reltest,
377
+ :needs => [:prerelease] do |t, args|
378
+ if args.rel == CURRENT_VERSION
379
+ announce "No version change ... skipping version update"
380
+ else
381
+ announce "Updating Rake version to #{args.rel}"
382
+ open("lib/rake.rb") do |rakein|
383
+ open("lib/rake.rb.new", "w") do |rakeout|
384
+ rakein.each do |line|
385
+ if line =~ /^RAKEVERSION\s*=\s*/
386
+ rakeout.puts "RAKEVERSION = '#{args.rel}'"
387
+ else
388
+ rakeout.puts line
389
+ end
390
+ end
391
+ end
392
+ end
393
+ mv "lib/rake.rb.new", "lib/rake.rb"
394
+ if args.reltest
395
+ announce "Release Task Testing, skipping commiting of new version"
396
+ else
397
+ sh %{svn commit -m "Updated to version #{args.rel}" lib/rake.rb} # "
398
+ end
399
+ end
400
+ end
401
+
402
+ desc "Tag all the CVS files with the latest release number (REL=x.y.z)"
403
+ task :tag, :rel, :reuse, :reltest,
404
+ :needs => [:prerelease] do |t, args|
405
+ reltag = "REL_#{args.rel.gsub(/\./, '_')}"
406
+ reltag << args.reuse.gsub(/\./, '_') if args.reuse
407
+ announce "Tagging Repository with [#{reltag}]"
408
+ if args.reltest
409
+ announce "Release Task Testing, skipping CVS tagging"
410
+ else
411
+ sh %{svn copy svn+ssh://rubyforge.org/var/svn/rake/trunk svn+ssh://rubyforge.org/var/svn/rake/tags/#{reltag} -m 'Commiting release #{reltag}'} ###'
412
+ end
413
+ end
414
+
415
+ desc "Install the jamis RDoc template"
416
+ task :install_jamis_template do
417
+ require 'rbconfig'
418
+ dest_dir = File.join(Config::CONFIG['rubylibdir'], "rdoc/generators/template/html")
419
+ fail "Unabled to write to #{dest_dir}" unless File.writable?(dest_dir)
420
+ install "doc/jamis.rb", dest_dir, :verbose => true
421
+ end
422
+
423
+ # Require experimental XForge/Metaproject support.
424
+
425
+ load 'xforge.rf' if File.exist?('xforge.rf')
426
+
427
+ desc "Where is the current directory. This task displays\nthe current rake directory"
428
+ task :where_am_i do
429
+ puts Rake.original_dir
430
+ end
@@ -0,0 +1,20 @@
1
+ = Rake Project -- To Do List
2
+
3
+ Send suggestions for this list to mailto:jim@weirichhouse.org or on
4
+ the rake-devel@rubyforge.org mailing list.
5
+
6
+ === To Do
7
+ * Need a nice API for accessing tasks in namespaces, namespaces in an app, etc.
8
+ * Provide a way to disable -w warning mode.
9
+ * Define a set of default rules that work in the absense of any Rakefile
10
+ * What about cyclic dependencies?
11
+ * Java support utilities
12
+ * Installation support utilities
13
+ * Check out installpkg.rb
14
+ * Autogenerate Dependencies
15
+ * Rules should apply to existing tasks if no actions are defined.
16
+ * How to create multiple package tasks without task name collision?
17
+ * Trap "ln -s" commands that fail and use "cp" instead (SMB mounted
18
+ drives have problems with "ln -s".
19
+
20
+ (moved DONE list to CHANGES file)
@@ -0,0 +1,31 @@
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
+ begin
26
+ require 'rake'
27
+ rescue LoadError
28
+ require 'rubygems'
29
+ require 'rake'
30
+ end
31
+ Rake.application.run