rake 0.9.2.2 → 13.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.rdoc +2403 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +64 -106
- data/doc/command_line_usage.rdoc +65 -21
- data/doc/glossary.rdoc +40 -49
- data/doc/jamis.rb +1 -0
- data/doc/rake.1 +156 -0
- data/doc/rakefile.rdoc +127 -62
- data/{bin → exe}/rake +1 -7
- data/lib/rake/application.rb +507 -271
- data/lib/rake/backtrace.rb +24 -0
- data/lib/rake/clean.rb +54 -8
- data/lib/rake/cloneable.rb +11 -19
- data/lib/rake/cpu_counter.rb +107 -0
- data/lib/rake/default_loader.rb +5 -0
- data/lib/rake/dsl_definition.rb +67 -48
- data/lib/rake/early_time.rb +5 -1
- data/lib/rake/ext/core.rb +5 -6
- data/lib/rake/ext/string.rb +61 -52
- data/lib/rake/file_creation_task.rb +4 -3
- data/lib/rake/file_list.rb +81 -49
- data/lib/rake/file_task.rb +15 -8
- data/lib/rake/file_utils.rb +63 -43
- data/lib/rake/file_utils_ext.rb +14 -25
- data/lib/rake/invocation_chain.rb +25 -19
- data/lib/rake/invocation_exception_mixin.rb +1 -0
- data/lib/rake/late_time.rb +18 -0
- data/lib/rake/linked_list.rb +112 -0
- data/lib/rake/loaders/makefile.rb +23 -9
- data/lib/rake/multi_task.rb +4 -6
- data/lib/rake/name_space.rb +36 -23
- data/lib/rake/packagetask.rb +71 -34
- data/lib/rake/phony.rb +16 -0
- data/lib/rake/private_reader.rb +21 -0
- data/lib/rake/promise.rb +100 -0
- data/lib/rake/pseudo_status.rb +8 -2
- data/lib/rake/rake_module.rb +41 -3
- data/lib/rake/rake_test_loader.rb +9 -4
- data/lib/rake/rule_recursion_overflow_error.rb +2 -2
- data/lib/rake/scope.rb +43 -0
- data/lib/rake/task.rb +186 -79
- data/lib/rake/task_argument_error.rb +1 -0
- data/lib/rake/task_arguments.rb +46 -15
- data/lib/rake/task_manager.rb +91 -67
- data/lib/rake/tasklib.rb +2 -12
- data/lib/rake/testtask.rb +61 -63
- data/lib/rake/thread_history_display.rb +49 -0
- data/lib/rake/thread_pool.rb +163 -0
- data/lib/rake/trace_output.rb +23 -0
- data/lib/rake/version.rb +5 -3
- data/lib/rake/win32.rb +14 -18
- data/lib/rake.rb +35 -33
- data/rake.gemspec +100 -0
- metadata +74 -176
- data/.gemtest +0 -0
- data/CHANGES +0 -522
- data/Rakefile +0 -369
- data/TODO +0 -20
- data/doc/rake.1.gz +0 -0
- data/doc/release_notes/rake-0.4.14.rdoc +0 -23
- data/doc/release_notes/rake-0.4.15.rdoc +0 -35
- data/doc/release_notes/rake-0.5.0.rdoc +0 -53
- data/doc/release_notes/rake-0.5.3.rdoc +0 -78
- data/doc/release_notes/rake-0.5.4.rdoc +0 -46
- data/doc/release_notes/rake-0.6.0.rdoc +0 -141
- data/doc/release_notes/rake-0.7.0.rdoc +0 -119
- data/doc/release_notes/rake-0.7.1.rdoc +0 -59
- data/doc/release_notes/rake-0.7.2.rdoc +0 -121
- data/doc/release_notes/rake-0.7.3.rdoc +0 -47
- data/doc/release_notes/rake-0.8.0.rdoc +0 -114
- data/doc/release_notes/rake-0.8.2.rdoc +0 -165
- data/doc/release_notes/rake-0.8.3.rdoc +0 -112
- data/doc/release_notes/rake-0.8.4.rdoc +0 -147
- data/doc/release_notes/rake-0.8.5.rdoc +0 -53
- data/doc/release_notes/rake-0.8.6.rdoc +0 -55
- data/doc/release_notes/rake-0.8.7.rdoc +0 -55
- data/doc/release_notes/rake-0.9.0.rdoc +0 -112
- data/doc/release_notes/rake-0.9.1.rdoc +0 -52
- data/doc/release_notes/rake-0.9.2.rdoc +0 -49
- data/install.rb +0 -90
- data/lib/rake/alt_system.rb +0 -109
- data/lib/rake/classic_namespace.rb +0 -11
- data/lib/rake/contrib/compositepublisher.rb +0 -21
- data/lib/rake/contrib/ftptools.rb +0 -150
- data/lib/rake/contrib/publisher.rb +0 -73
- data/lib/rake/contrib/rubyforgepublisher.rb +0 -16
- data/lib/rake/contrib/sshpublisher.rb +0 -50
- data/lib/rake/contrib/sys.rb +0 -191
- data/lib/rake/ext/module.rb +0 -39
- data/lib/rake/ext/time.rb +0 -14
- data/lib/rake/gempackagetask.rb +0 -15
- data/lib/rake/pathmap.rb +0 -1
- data/lib/rake/rdoctask.rb +0 -234
- data/lib/rake/ruby182_test_unit_fix.rb +0 -25
- data/lib/rake/runtest.rb +0 -21
- data/test/file_creation.rb +0 -34
- data/test/helper.rb +0 -492
- data/test/test_rake.rb +0 -40
- data/test/test_rake_application.rb +0 -489
- data/test/test_rake_application_options.rb +0 -335
- data/test/test_rake_clean.rb +0 -14
- data/test/test_rake_definitions.rb +0 -80
- data/test/test_rake_directory_task.rb +0 -46
- data/test/test_rake_dsl.rb +0 -77
- data/test/test_rake_early_time.rb +0 -31
- data/test/test_rake_extension.rb +0 -59
- data/test/test_rake_file_creation_task.rb +0 -56
- data/test/test_rake_file_list.rb +0 -628
- data/test/test_rake_file_list_path_map.rb +0 -8
- data/test/test_rake_file_task.rb +0 -102
- data/test/test_rake_file_utils.rb +0 -305
- data/test/test_rake_ftp_file.rb +0 -59
- data/test/test_rake_functional.rb +0 -450
- data/test/test_rake_invocation_chain.rb +0 -52
- data/test/test_rake_makefile_loader.rb +0 -44
- data/test/test_rake_multi_task.rb +0 -51
- data/test/test_rake_name_space.rb +0 -43
- data/test/test_rake_package_task.rb +0 -79
- data/test/test_rake_path_map.rb +0 -157
- data/test/test_rake_path_map_explode.rb +0 -34
- data/test/test_rake_path_map_partial.rb +0 -18
- data/test/test_rake_pseudo_status.rb +0 -21
- data/test/test_rake_rake_test_loader.rb +0 -21
- data/test/test_rake_rdoc_task.rb +0 -83
- data/test/test_rake_require.rb +0 -40
- data/test/test_rake_rules.rb +0 -327
- data/test/test_rake_task.rb +0 -267
- data/test/test_rake_task_argument_parsing.rb +0 -103
- data/test/test_rake_task_arguments.rb +0 -88
- data/test/test_rake_task_lib.rb +0 -9
- data/test/test_rake_task_manager.rb +0 -157
- data/test/test_rake_task_manager_argument_resolution.rb +0 -36
- data/test/test_rake_task_with_arguments.rb +0 -173
- data/test/test_rake_test_task.rb +0 -120
- data/test/test_rake_top_level_functions.rb +0 -111
- data/test/test_rake_win32.rb +0 -72
- data/test/test_sys.rb +0 -20
data/Rakefile
DELETED
@@ -1,369 +0,0 @@
|
|
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
|
-
require 'rbconfig'
|
10
|
-
require 'rubygems'
|
11
|
-
|
12
|
-
system_rake = File.join RbConfig::CONFIG['rubylibdir'], 'rake.rb'
|
13
|
-
|
14
|
-
# Use our rake, not the installed rake from system
|
15
|
-
if $".include? system_rake or $".grep(/rake\/name_space\.rb$/).empty? then
|
16
|
-
exec Gem.ruby, '-Ilib', 'bin/rake', *ARGV
|
17
|
-
end
|
18
|
-
|
19
|
-
require 'rubygems/package_task'
|
20
|
-
|
21
|
-
require 'rake/clean'
|
22
|
-
require 'rake/testtask'
|
23
|
-
|
24
|
-
begin
|
25
|
-
gem 'rdoc'
|
26
|
-
require 'rdoc/task'
|
27
|
-
rescue Gem::LoadError
|
28
|
-
end
|
29
|
-
|
30
|
-
CLEAN.include('**/*.o', '*.dot', '**/*.rbc')
|
31
|
-
CLOBBER.include('doc/example/main')
|
32
|
-
CLOBBER.include('TAGS')
|
33
|
-
CLOBBER.include('coverage', 'rcov_aggregate')
|
34
|
-
|
35
|
-
# Prevent OS X from including extended attribute junk in the tar output
|
36
|
-
ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
|
37
|
-
|
38
|
-
def announce(msg='')
|
39
|
-
STDERR.puts msg
|
40
|
-
end
|
41
|
-
|
42
|
-
# Determine the current version of the software
|
43
|
-
|
44
|
-
if `ruby -Ilib ./bin/rake --version` =~ /rake, version ([0-9a-z.]+)$/
|
45
|
-
CURRENT_VERSION = $1
|
46
|
-
else
|
47
|
-
CURRENT_VERSION = "0.0.0"
|
48
|
-
end
|
49
|
-
|
50
|
-
$package_version = CURRENT_VERSION
|
51
|
-
|
52
|
-
SRC_RB = FileList['lib/**/*.rb']
|
53
|
-
|
54
|
-
# The default task is run if rake is given no explicit arguments.
|
55
|
-
|
56
|
-
desc "Default Task"
|
57
|
-
task :default => :test
|
58
|
-
|
59
|
-
# Test Tasks ---------------------------------------------------------
|
60
|
-
|
61
|
-
Rake::TestTask.new do |t|
|
62
|
-
files = FileList['test/helper.rb', 'test/test_*.rb']
|
63
|
-
t.test_files = files
|
64
|
-
t.libs << "."
|
65
|
-
t.warning = true
|
66
|
-
end
|
67
|
-
|
68
|
-
begin
|
69
|
-
require 'rcov/rcovtask'
|
70
|
-
IGNORE_COVERAGE_IN = FileList[
|
71
|
-
'lib/rake/rdoctask.rb',
|
72
|
-
'lib/rake/testtask.rb',
|
73
|
-
'lib/rake/packagetask.rb',
|
74
|
-
'lib/rake/clean.rb',
|
75
|
-
]
|
76
|
-
|
77
|
-
unless File::ALT_SEPARATOR
|
78
|
-
IGNORE_COVERAGE_IN.include(
|
79
|
-
'lib/rake/alt_system.rb',
|
80
|
-
'lib/rake/win32.rb')
|
81
|
-
end
|
82
|
-
|
83
|
-
Rcov::RcovTask.new do |t|
|
84
|
-
t.libs << "test"
|
85
|
-
t.rcov_opts = [
|
86
|
-
'-xRakefile', '-xrakefile', '-xpublish.rf',
|
87
|
-
'-xlib/rake/contrib', '-x/Library', '-x.rvm',
|
88
|
-
'--text-report',
|
89
|
-
'--sort coverage'
|
90
|
-
] + FileList['rakelib/*.rake'].pathmap("-x%p") +
|
91
|
-
IGNORE_COVERAGE_IN.map { |fn| "-x#{fn}" }
|
92
|
-
t.test_files = FileList[
|
93
|
-
'test/lib/*_test.rb',
|
94
|
-
'test/contrib/*_test.rb',
|
95
|
-
'test/functional/*_test.rb'
|
96
|
-
]
|
97
|
-
t.output_dir = 'coverage'
|
98
|
-
t.verbose = true
|
99
|
-
end
|
100
|
-
rescue LoadError
|
101
|
-
task :rcov do
|
102
|
-
puts "RCov is not available"
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# CVS Tasks ----------------------------------------------------------
|
107
|
-
|
108
|
-
# Install rake using the standard install.rb script.
|
109
|
-
|
110
|
-
desc "Install the application"
|
111
|
-
task :install do
|
112
|
-
ruby "install.rb"
|
113
|
-
end
|
114
|
-
|
115
|
-
# Create a task to build the RDOC documentation tree.
|
116
|
-
|
117
|
-
BASE_RDOC_OPTIONS = [
|
118
|
-
'--line-numbers', '--show-hash',
|
119
|
-
'--main', 'README.rdoc',
|
120
|
-
'--title', 'Rake -- Ruby Make'
|
121
|
-
]
|
122
|
-
|
123
|
-
if defined?(RDoc::Task) then
|
124
|
-
RDoc::Task.new do |rdoc|
|
125
|
-
rdoc.rdoc_dir = 'html'
|
126
|
-
rdoc.title = "Rake -- Ruby Make"
|
127
|
-
rdoc.options = BASE_RDOC_OPTIONS.dup
|
128
|
-
|
129
|
-
rdoc.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'TODO', 'CHANGES')
|
130
|
-
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
|
131
|
-
rdoc.rdoc_files.exclude(/\bcontrib\b/)
|
132
|
-
end
|
133
|
-
else
|
134
|
-
warn "RDoc 2.4.2+ is required to build documentation"
|
135
|
-
end
|
136
|
-
|
137
|
-
# ====================================================================
|
138
|
-
# Create a task that will package the Rake software into distributable
|
139
|
-
# tar, zip and gem files.
|
140
|
-
|
141
|
-
PKG_FILES = FileList[
|
142
|
-
'.gemtest',
|
143
|
-
'install.rb',
|
144
|
-
'[A-Z]*',
|
145
|
-
'bin/rake',
|
146
|
-
'lib/**/*.rb',
|
147
|
-
'test/**/*.rb',
|
148
|
-
'doc/**/*'
|
149
|
-
]
|
150
|
-
PKG_FILES.exclude('doc/example/*.o')
|
151
|
-
PKG_FILES.exclude('TAGS')
|
152
|
-
PKG_FILES.exclude(%r{doc/example/main$})
|
153
|
-
|
154
|
-
if ! defined?(Gem)
|
155
|
-
puts "Package Target requires RubyGems"
|
156
|
-
else
|
157
|
-
SPEC = Gem::Specification.new do |s|
|
158
|
-
s.name = 'rake'
|
159
|
-
s.version = $package_version
|
160
|
-
s.summary = "Ruby based make-like utility."
|
161
|
-
s.description = <<-EOF.delete "\n"
|
162
|
-
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
163
|
-
specified in standard Ruby syntax.
|
164
|
-
EOF
|
165
|
-
|
166
|
-
s.required_ruby_version = '>= 1.8.6'
|
167
|
-
s.required_rubygems_version = '>= 1.3.2'
|
168
|
-
s.add_development_dependency 'minitest', '~> 2.1'
|
169
|
-
|
170
|
-
s.files = PKG_FILES.to_a
|
171
|
-
|
172
|
-
s.executables = ["rake"]
|
173
|
-
|
174
|
-
s.extra_rdoc_files = FileList[
|
175
|
-
'README.rdoc',
|
176
|
-
'MIT-LICENSE',
|
177
|
-
'TODO',
|
178
|
-
'CHANGES',
|
179
|
-
'doc/**/*.rdoc'
|
180
|
-
]
|
181
|
-
|
182
|
-
s.rdoc_options = BASE_RDOC_OPTIONS
|
183
|
-
|
184
|
-
s.author = "Jim Weirich"
|
185
|
-
s.email = "jim@weirichhouse.org"
|
186
|
-
s.homepage = "http://rake.rubyforge.org"
|
187
|
-
s.rubyforge_project = "rake"
|
188
|
-
end
|
189
|
-
|
190
|
-
Gem::PackageTask.new(SPEC) do |pkg|
|
191
|
-
pkg.need_zip = true
|
192
|
-
pkg.need_tar = true
|
193
|
-
end
|
194
|
-
|
195
|
-
file "rake.gemspec" => ["Rakefile", "lib/rake.rb"] do |t|
|
196
|
-
require 'yaml'
|
197
|
-
open(t.name, "w") { |f| f.puts SPEC.to_yaml }
|
198
|
-
end
|
199
|
-
|
200
|
-
desc "Create a stand-alone gemspec"
|
201
|
-
task :gemspec => "rake.gemspec"
|
202
|
-
end
|
203
|
-
|
204
|
-
# Misc tasks =========================================================
|
205
|
-
|
206
|
-
def count_lines(filename)
|
207
|
-
lines = 0
|
208
|
-
codelines = 0
|
209
|
-
open(filename) { |f|
|
210
|
-
f.each do |line|
|
211
|
-
lines += 1
|
212
|
-
next if line =~ /^\s*$/
|
213
|
-
next if line =~ /^\s*#/
|
214
|
-
codelines += 1
|
215
|
-
end
|
216
|
-
}
|
217
|
-
[lines, codelines]
|
218
|
-
end
|
219
|
-
|
220
|
-
def show_line(msg, lines, loc)
|
221
|
-
printf "%6s %6s %s\n", lines.to_s, loc.to_s, msg
|
222
|
-
end
|
223
|
-
|
224
|
-
desc "Count lines in the main rake file"
|
225
|
-
task :lines do
|
226
|
-
total_lines = 0
|
227
|
-
total_code = 0
|
228
|
-
show_line("File Name", "LINES", "LOC")
|
229
|
-
SRC_RB.each do |fn|
|
230
|
-
lines, codelines = count_lines(fn)
|
231
|
-
show_line(fn, lines, codelines)
|
232
|
-
total_lines += lines
|
233
|
-
total_code += codelines
|
234
|
-
end
|
235
|
-
show_line("TOTAL", total_lines, total_code)
|
236
|
-
end
|
237
|
-
|
238
|
-
# Define an optional publish target in an external file. If the
|
239
|
-
# publish.rf file is not found, the publish targets won't be defined.
|
240
|
-
|
241
|
-
load "publish.rf" if File.exist? "publish.rf"
|
242
|
-
|
243
|
-
# Support Tasks ------------------------------------------------------
|
244
|
-
|
245
|
-
RUBY_FILES = FileList['**/*.rb'].exclude('pkg')
|
246
|
-
|
247
|
-
desc "Look for TODO and FIXME tags in the code"
|
248
|
-
task :todo do
|
249
|
-
RUBY_FILES.egrep(/#.*(FIXME|TODO|TBD)/)
|
250
|
-
end
|
251
|
-
|
252
|
-
desc "List all ruby files"
|
253
|
-
task :rubyfiles do
|
254
|
-
puts RUBY_FILES
|
255
|
-
puts FileList['bin/*'].exclude('bin/*.rb')
|
256
|
-
end
|
257
|
-
task :rf => :rubyfiles
|
258
|
-
|
259
|
-
# --------------------------------------------------------------------
|
260
|
-
# Creating a release
|
261
|
-
|
262
|
-
def plugin(plugin_name)
|
263
|
-
require "rake/plugins/#{plugin_name}"
|
264
|
-
end
|
265
|
-
|
266
|
-
task :noop
|
267
|
-
#plugin "release_manager"
|
268
|
-
|
269
|
-
desc "Make a new release"
|
270
|
-
task :release, [:rel, :reuse, :reltest] => [
|
271
|
-
:prerelease,
|
272
|
-
:clobber,
|
273
|
-
:test,
|
274
|
-
:update_version,
|
275
|
-
:package,
|
276
|
-
:tag
|
277
|
-
] do
|
278
|
-
announce
|
279
|
-
announce "**************************************************************"
|
280
|
-
announce "* Release #{$package_version} Complete."
|
281
|
-
announce "* Packages ready to upload."
|
282
|
-
announce "**************************************************************"
|
283
|
-
announce
|
284
|
-
end
|
285
|
-
|
286
|
-
# Validate that everything is ready to go for a release.
|
287
|
-
task :prerelease, :rel, :reuse, :reltest do |t, args|
|
288
|
-
$package_version = args.rel
|
289
|
-
announce
|
290
|
-
announce "**************************************************************"
|
291
|
-
announce "* Making RubyGem Release #{$package_version}"
|
292
|
-
announce "* (current version #{CURRENT_VERSION})"
|
293
|
-
announce "**************************************************************"
|
294
|
-
announce
|
295
|
-
|
296
|
-
# Is a release number supplied?
|
297
|
-
unless args.rel
|
298
|
-
fail "Usage: rake release[X.Y.Z] [REUSE=tag_suffix]"
|
299
|
-
end
|
300
|
-
|
301
|
-
# Is the release different than the current release.
|
302
|
-
# (or is REUSE set?)
|
303
|
-
if $package_version == CURRENT_VERSION && ! args.reuse
|
304
|
-
fail "Current version is #{$package_version}, must specify REUSE=tag_suffix to reuse version"
|
305
|
-
end
|
306
|
-
|
307
|
-
# Are all source files checked in?
|
308
|
-
if args.reltest
|
309
|
-
announce "Release Task Testing, skipping checked-in file test"
|
310
|
-
else
|
311
|
-
announce "Checking for unchecked-in files..."
|
312
|
-
data = `svn st`
|
313
|
-
unless data =~ /^$/
|
314
|
-
abort "svn status is not clean ... do you have unchecked-in files?"
|
315
|
-
end
|
316
|
-
announce "No outstanding checkins found ... OK"
|
317
|
-
end
|
318
|
-
end
|
319
|
-
|
320
|
-
task :update_version, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
|
321
|
-
if args.rel == CURRENT_VERSION
|
322
|
-
announce "No version change ... skipping version update"
|
323
|
-
else
|
324
|
-
announce "Updating Rake version to #{args.rel}"
|
325
|
-
open("lib/rake.rb") do |rakein|
|
326
|
-
open("lib/rake.rb.new", "w") do |rakeout|
|
327
|
-
rakein.each do |line|
|
328
|
-
if line =~ /^RAKEVERSION\s*=\s*/
|
329
|
-
rakeout.puts "RAKEVERSION = '#{args.rel}'"
|
330
|
-
else
|
331
|
-
rakeout.puts line
|
332
|
-
end
|
333
|
-
end
|
334
|
-
end
|
335
|
-
end
|
336
|
-
mv "lib/rake.rb.new", "lib/rake.rb"
|
337
|
-
if args.reltest
|
338
|
-
announce "Release Task Testing, skipping commiting of new version"
|
339
|
-
else
|
340
|
-
sh %{svn commit -m "Updated to version #{args.rel}" lib/rake.rb} # "
|
341
|
-
end
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
desc "Tag all the CVS files with the latest release number (REL=x.y.z)"
|
346
|
-
task :tag, [:rel, :reuse, :reltest] => [:prerelease] do |t, args|
|
347
|
-
reltag = "REL_#{args.rel.gsub(/\./, '_')}"
|
348
|
-
reltag << args.reuse.gsub(/\./, '_') if args.reuse
|
349
|
-
announce "Tagging Repository with [#{reltag}]"
|
350
|
-
if args.reltest
|
351
|
-
announce "Release Task Testing, skipping CVS tagging"
|
352
|
-
else
|
353
|
-
sh %{svn copy svn+ssh://rubyforge.org/var/svn/rake/trunk svn+ssh://rubyforge.org/var/svn/rake/tags/#{reltag} -m 'Commiting release #{reltag}'} ###'
|
354
|
-
end
|
355
|
-
end
|
356
|
-
|
357
|
-
# Require experimental XForge/Metaproject support.
|
358
|
-
|
359
|
-
load 'xforge.rf' if File.exist?('xforge.rf')
|
360
|
-
|
361
|
-
desc "Where is the current directory. This task displays\nthe current rake directory"
|
362
|
-
task :where_am_i do
|
363
|
-
puts Rake.original_dir
|
364
|
-
end
|
365
|
-
|
366
|
-
task :failure => :really_fail
|
367
|
-
task :really_fail do
|
368
|
-
fail "oops"
|
369
|
-
end
|
data/TODO
DELETED
@@ -1,20 +0,0 @@
|
|
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 absence 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)
|
data/doc/rake.1.gz
DELETED
Binary file
|
@@ -1,23 +0,0 @@
|
|
1
|
-
= Rake 0.4.14 Released
|
2
|
-
|
3
|
-
== Changes
|
4
|
-
|
5
|
-
Version 0.4.14 is a compatibility fix to allow Rake's test task to
|
6
|
-
work under Ruby 1.8.2. A change in the Test::Unit autorun feature
|
7
|
-
prevented Rake from running any tests. This release fixes the
|
8
|
-
problem.
|
9
|
-
|
10
|
-
Rake 0.4.14 is the recommended release for anyone using Ruby 1.8.2.
|
11
|
-
|
12
|
-
== What is Rake
|
13
|
-
|
14
|
-
Rake is a build tool similar to the make program in many ways. But
|
15
|
-
instead of cryptic make recipes, Rake uses standard Ruby code to
|
16
|
-
declare tasks and dependencies. You have the full power of a modern
|
17
|
-
scripting language built right into your build tool.
|
18
|
-
|
19
|
-
== Availability
|
20
|
-
|
21
|
-
Home Page:: http://rake.rubyforge.org/
|
22
|
-
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
23
|
-
|
@@ -1,35 +0,0 @@
|
|
1
|
-
= Rake 0.4.15 Released
|
2
|
-
|
3
|
-
== Changes
|
4
|
-
|
5
|
-
Version 0.4.15 is a bug fix update for the Ruby 1.8.2 compatibility
|
6
|
-
changes. This release includes:
|
7
|
-
|
8
|
-
* Fixed a bug that prevented the TESTOPTS flag from working with the
|
9
|
-
revised for 1.8.2 test task.
|
10
|
-
|
11
|
-
* Updated the docs on --trace to indicate that it also enables a full
|
12
|
-
backtrace on errors.
|
13
|
-
|
14
|
-
* Several fixes for new warnings generated.
|
15
|
-
|
16
|
-
== Mini-Roadmap
|
17
|
-
|
18
|
-
I will continue to issue Rake updates in the 0.4.xx series as new
|
19
|
-
Ruby-1.8.2 issues become manifest. Once the codebase stabilizes, I
|
20
|
-
will release a 0.5.0 version incorporating all the changes. If you
|
21
|
-
are not using Ruby-1.8.2 and wish to avoid version churn, I recommend
|
22
|
-
staying with a release prior to Rake-0.4.14.
|
23
|
-
|
24
|
-
== What is Rake
|
25
|
-
|
26
|
-
Rake is a build tool similar to the make program in many ways. But
|
27
|
-
instead of cryptic make recipes, Rake uses standard Ruby code to
|
28
|
-
declare tasks and dependencies. You have the full power of a modern
|
29
|
-
scripting language built right into your build tool.
|
30
|
-
|
31
|
-
== Availability
|
32
|
-
|
33
|
-
Home Page:: http://rake.rubyforge.org/
|
34
|
-
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
35
|
-
|
@@ -1,53 +0,0 @@
|
|
1
|
-
= Rake 0.5.0 Released
|
2
|
-
|
3
|
-
It has been a long time in coming, but we finally have a new version
|
4
|
-
of Rake available.
|
5
|
-
|
6
|
-
== Changes
|
7
|
-
|
8
|
-
* Fixed bug where missing intermediate file dependencies could cause
|
9
|
-
an abort with --trace or --dry-run. (Brian Candler)
|
10
|
-
|
11
|
-
* Recursive rules are now supported (Tilman Sauerbeck).
|
12
|
-
|
13
|
-
* Added tar.gz and tar.bz2 support to package task (Tilman Sauerbeck).
|
14
|
-
|
15
|
-
* Added warning option for the Test Task (requested by Eric Hodel).
|
16
|
-
|
17
|
-
* The jamis rdoc template is only used if it exists.
|
18
|
-
|
19
|
-
* Added fix for Ruby 1.8.2 test/unit and rails problem.
|
20
|
-
|
21
|
-
* Added contributed rake man file. (Jani Monoses)
|
22
|
-
|
23
|
-
* Fixed documentation that was lacking the Rake module name (Tilman
|
24
|
-
Sauerbeck).
|
25
|
-
|
26
|
-
== What is Rake
|
27
|
-
|
28
|
-
Rake is a build tool similar to the make program in many ways. But
|
29
|
-
instead of cryptic make recipes, Rake uses standard Ruby code to
|
30
|
-
declare tasks and dependencies. You have the full power of a modern
|
31
|
-
scripting language built right into your build tool.
|
32
|
-
|
33
|
-
== Availability
|
34
|
-
|
35
|
-
The easiest way to get and install rake is via RubyGems ...
|
36
|
-
|
37
|
-
gem install rake (you may need root/admin privileges)
|
38
|
-
|
39
|
-
Otherwise, you can get it from the more traditional places:
|
40
|
-
|
41
|
-
Home Page:: http://rake.rubyforge.org/
|
42
|
-
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
43
|
-
|
44
|
-
== Thanks
|
45
|
-
|
46
|
-
Lots of people provided input to this release. Thanks to Tilman
|
47
|
-
Sauerbeck for numerous patches, documentation fixes and suggestions.
|
48
|
-
And for also pushing me to get this release out. Also, thanks to
|
49
|
-
Brian Candler for the finding and fixing --trace/dry-run fix. That
|
50
|
-
was an obscure bug. Also to Eric Hodel for some good suggestions.
|
51
|
-
|
52
|
-
-- Jim Weirich
|
53
|
-
|
@@ -1,78 +0,0 @@
|
|
1
|
-
= Rake 0.5.0 Released
|
2
|
-
|
3
|
-
Although it has only been two weeks since the last release, we have
|
4
|
-
enough updates to the Rake program to make it time for another
|
5
|
-
release.
|
6
|
-
|
7
|
-
== Changes
|
8
|
-
|
9
|
-
Here are the changes for version 0.5.3 ...
|
10
|
-
|
11
|
-
* FileLists have been extensively changed so that they mimic the
|
12
|
-
behavior of real arrays even more closely. In particular,
|
13
|
-
operations on FileLists that return a new collection (e.g. collect,
|
14
|
-
reject) will now return a FileList rather than an array. In
|
15
|
-
addition, several places where FileLists were not properly expanded
|
16
|
-
before use have been fixed.
|
17
|
-
|
18
|
-
* A method (+ext+) to simplify the handling of file extensions was
|
19
|
-
added to String and to Array.
|
20
|
-
|
21
|
-
* The 'testrb' script in test/unit tends to silently swallow syntax
|
22
|
-
errors in test suites. Because of that, the default test loader is
|
23
|
-
now a rake-provided script. You can still use 'testrb' by setting
|
24
|
-
the loader flag in the test task to :testrb. (See the API documents
|
25
|
-
for TestTask for all the loader flag values).
|
26
|
-
|
27
|
-
* FileUtil methods (e.g. cp, mv, install) are now declared to be
|
28
|
-
private. This will cut down on the interference with user defined
|
29
|
-
methods of the same name.
|
30
|
-
|
31
|
-
* Fixed the verbose flag in the TestTask so that the test code is
|
32
|
-
controlled by the flag. Also shortened up some failure messages.
|
33
|
-
(Thanks to Tobias Luetke for the suggestion).
|
34
|
-
|
35
|
-
* Rules will now properly detect a task that can generate a source
|
36
|
-
file. Previously rules would only consider source files that were
|
37
|
-
already present.
|
38
|
-
|
39
|
-
* Added an +import+ command that allows Rake to dynamically import
|
40
|
-
dependendencies into a running Rake session. The +import+ command
|
41
|
-
can run tasks to update the dependency file before loading them.
|
42
|
-
Dependency files can be in rake or make format, allowing rake to
|
43
|
-
work with tools designed to generate dependencies for make.
|
44
|
-
|
45
|
-
== What is Rake
|
46
|
-
|
47
|
-
Rake is a build tool similar to the make program in many ways. But
|
48
|
-
instead of cryptic make recipes, Rake uses standard Ruby code to
|
49
|
-
declare tasks and dependencies. You have the full power of a modern
|
50
|
-
scripting language built right into your build tool.
|
51
|
-
|
52
|
-
== Availability
|
53
|
-
|
54
|
-
The easiest way to get and install rake is via RubyGems ...
|
55
|
-
|
56
|
-
gem install rake (you may need root/admin privileges)
|
57
|
-
|
58
|
-
Otherwise, you can get it from the more traditional places:
|
59
|
-
|
60
|
-
Home Page:: http://rake.rubyforge.org/
|
61
|
-
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
62
|
-
|
63
|
-
== Thanks
|
64
|
-
|
65
|
-
As usual, it was input from users that drove a alot of these changes.
|
66
|
-
Thanks to ...
|
67
|
-
|
68
|
-
* Brian Gernhardt for the rules fix (especially for the patience to
|
69
|
-
explain the problem to me until I got what he was talking about).
|
70
|
-
* Stefan Lang for pointing out problems in the dark corners of the
|
71
|
-
FileList implementation.
|
72
|
-
* Alexey Verkhovsky pointing out the silently swallows syntax errors
|
73
|
-
in tests.
|
74
|
-
* Tobias Luetke for beautifying the test task output.
|
75
|
-
* Sam Roberts for some of the ideas behind dependency loading.
|
76
|
-
|
77
|
-
-- Jim Weirich
|
78
|
-
|
@@ -1,46 +0,0 @@
|
|
1
|
-
= Rake 0.5.4 Released
|
2
|
-
|
3
|
-
Time for some minor bug fixes and small enhancements
|
4
|
-
|
5
|
-
== Changes
|
6
|
-
|
7
|
-
Here are the changes for version 0.5.3 ...
|
8
|
-
|
9
|
-
* Added double quotes to the test runner. This allows the location of
|
10
|
-
the tests (and runner) to be in a directory path that contains
|
11
|
-
spaces (e.g. "C:/Program Files/ruby/bin").
|
12
|
-
|
13
|
-
* Added .svn to default ignore list. Now subversion project metadata
|
14
|
-
is automatically ignored by Rake's FileList.
|
15
|
-
|
16
|
-
* Updated FileList#include to support nested arrays and filelists.
|
17
|
-
FileLists are flat lists of file names. Using a FileList in an
|
18
|
-
include will flatten out the nested file names.
|
19
|
-
|
20
|
-
== What is Rake
|
21
|
-
|
22
|
-
Rake is a build tool similar to the make program in many ways. But
|
23
|
-
instead of cryptic make recipes, Rake uses standard Ruby code to
|
24
|
-
declare tasks and dependencies. You have the full power of a modern
|
25
|
-
scripting language built right into your build tool.
|
26
|
-
|
27
|
-
== Availability
|
28
|
-
|
29
|
-
The easiest way to get and install rake is via RubyGems ...
|
30
|
-
|
31
|
-
gem install rake (you may need root/admin privileges)
|
32
|
-
|
33
|
-
Otherwise, you can get it from the more traditional places:
|
34
|
-
|
35
|
-
Home Page:: http://rake.rubyforge.org/
|
36
|
-
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
|
37
|
-
|
38
|
-
== Thanks
|
39
|
-
|
40
|
-
As usual, it was input from users that drove a alot of these changes.
|
41
|
-
Thanks to ...
|
42
|
-
|
43
|
-
* Tilman Sauerbeck for the nested FileList suggestion.
|
44
|
-
* Josh Knowles for pointing out the spaces in directory name problem.
|
45
|
-
|
46
|
-
-- Jim Weirich
|