rake 10.1.1 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rake might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/.rubocop.yml +27 -0
- data/.togglerc +7 -0
- data/Gemfile +5 -0
- data/{CHANGES → History.rdoc} +84 -54
- data/Manifest.txt +161 -0
- data/README.rdoc +9 -10
- data/Rakefile +34 -337
- data/doc/command_line_usage.rdoc +16 -10
- data/doc/rake.1.gz +0 -0
- data/doc/rakefile.rdoc +72 -36
- data/doc/release_notes/rake-0.5.3.rdoc +1 -1
- data/doc/release_notes/rake-0.5.4.rdoc +1 -1
- data/doc/release_notes/rake-0.8.6.rdoc +1 -19
- data/doc/release_notes/rake-0.9.2.2.rdoc +2 -2
- data/doc/release_notes/rake-0.9.4.rdoc +0 -50
- data/doc/release_notes/rake-0.9.5.rdoc +0 -59
- data/doc/release_notes/rake-0.9.6.rdoc +0 -63
- data/doc/release_notes/rake-10.0.1.rdoc +2 -131
- data/doc/release_notes/rake-10.0.2.rdoc +2 -140
- data/doc/release_notes/rake-10.1.0.rdoc +2 -2
- data/lib/rake.rb +6 -1
- data/lib/rake/alt_system.rb +5 -3
- data/lib/rake/application.rb +102 -60
- data/lib/rake/backtrace.rb +1 -1
- data/lib/rake/cloneable.rb +3 -3
- data/lib/rake/contrib/.document +0 -0
- data/lib/rake/contrib/ftptools.rb +3 -5
- data/lib/rake/contrib/publisher.rb +12 -4
- data/lib/rake/contrib/rubyforgepublisher.rb +3 -1
- data/lib/rake/contrib/sshpublisher.rb +13 -2
- data/lib/rake/contrib/sys.rb +2 -0
- data/lib/rake/cpu_counter.rb +104 -0
- data/lib/rake/default_loader.rb +4 -0
- data/lib/rake/dsl_definition.rb +58 -17
- data/lib/rake/early_time.rb +4 -1
- data/lib/rake/ext/core.rb +2 -5
- data/lib/rake/ext/module.rb +1 -0
- data/lib/rake/ext/string.rb +35 -28
- data/lib/rake/ext/time.rb +1 -1
- data/lib/rake/file_list.rb +7 -9
- data/lib/rake/file_task.rb +1 -1
- data/lib/rake/gempackagetask.rb +3 -1
- data/lib/rake/invocation_chain.rb +0 -1
- data/lib/rake/linked_list.rb +1 -1
- data/lib/rake/packagetask.rb +19 -7
- data/lib/rake/pathmap.rb +2 -0
- data/lib/rake/pseudo_status.rb +2 -2
- data/lib/rake/rake_module.rb +6 -5
- data/lib/rake/rdoctask.rb +2 -0
- data/lib/rake/ruby182_test_unit_fix.rb +2 -0
- data/lib/rake/runtest.rb +6 -1
- data/lib/rake/scope.rb +1 -1
- data/lib/rake/task.rb +14 -9
- data/lib/rake/task_arguments.rb +19 -10
- data/lib/rake/task_manager.rb +20 -8
- data/lib/rake/tasklib.rb +2 -0
- data/lib/rake/testtask.rb +20 -9
- data/lib/rake/thread_pool.rb +13 -10
- data/lib/rake/trace_output.rb +1 -1
- data/lib/rake/version.rb +0 -2
- data/lib/rake/win32.rb +1 -1
- data/rakelib/publish.rake +20 -0
- data/rakelib/test_times.rake +25 -0
- data/test/helper.rb +6 -7
- data/test/support/rakefile_definitions.rb +34 -0
- data/test/test_rake_application.rb +89 -31
- data/test/test_rake_application_options.rb +13 -4
- data/test/test_rake_backtrace.rb +6 -2
- data/test/test_rake_clean.rb +3 -3
- data/test/test_rake_cpu_counter.rb +42 -0
- data/test/test_rake_file_task.rb +10 -0
- data/test/test_rake_functional.rb +17 -1
- data/test/test_rake_path_map.rb +2 -2
- data/test/test_rake_rules.rb +26 -0
- data/test/test_rake_task.rb +16 -0
- data/test/test_rake_task_argument_parsing.rb +6 -0
- data/test/test_rake_task_arguments.rb +6 -0
- data/test/test_rake_task_manager.rb +20 -0
- data/test/test_rake_test_task.rb +23 -1
- metadata +196 -72
- metadata.gz.sig +0 -0
- data/TODO +0 -21
- data/install.rb +0 -80
metadata.gz.sig
ADDED
Binary file
|
data/TODO
DELETED
@@ -1,21 +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
|
-
|
21
|
-
(moved DONE list to CHANGES file)
|
data/install.rb
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
require 'rbconfig'
|
2
|
-
require 'find'
|
3
|
-
require 'fileutils'
|
4
|
-
require 'tempfile'
|
5
|
-
|
6
|
-
include RbConfig
|
7
|
-
|
8
|
-
$ruby = CONFIG['ruby_install_name']
|
9
|
-
|
10
|
-
##
|
11
|
-
# Install a binary file. We patch in on the way through to
|
12
|
-
# insert a #! line. If this is a Unix install, we name
|
13
|
-
# the command (for example) 'rake' and let the shebang line
|
14
|
-
# handle running it. Under windows, we add a '.rb' extension
|
15
|
-
# and let file associations do their stuff
|
16
|
-
#
|
17
|
-
|
18
|
-
def installBIN(from, opfile)
|
19
|
-
|
20
|
-
tmp_file = Tempfile.new("_tmp")
|
21
|
-
|
22
|
-
File.open(from) do |ip|
|
23
|
-
File.open(tmp_file, "w") do |op|
|
24
|
-
ruby = File.join($realbindir, $ruby)
|
25
|
-
op.puts "#!#{ruby} -w"
|
26
|
-
op.write ip.read
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
opfile += ".rb" if CONFIG["target_os"] =~ /mswin/i
|
31
|
-
FileUtils.install(tmp_file, File.join($bindir, opfile),
|
32
|
-
{:mode => 0755, :verbose => true})
|
33
|
-
tmp_file.unlink
|
34
|
-
end
|
35
|
-
|
36
|
-
$sitedir = CONFIG["sitelibdir"]
|
37
|
-
unless $sitedir
|
38
|
-
version = CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
|
39
|
-
$libdir = File.join(CONFIG["libdir"], "ruby", version)
|
40
|
-
$sitedir = $:.find {|x| x =~ /site_ruby/}
|
41
|
-
if !$sitedir
|
42
|
-
$sitedir = File.join($libdir, "site_ruby")
|
43
|
-
elsif $sitedir !~ Regexp.quote(version)
|
44
|
-
$sitedir = File.join($sitedir, version)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
$bindir = CONFIG["bindir"]
|
49
|
-
|
50
|
-
$realbindir = $bindir
|
51
|
-
|
52
|
-
if (destdir = ENV['DESTDIR'])
|
53
|
-
$bindir = destdir + $bindir
|
54
|
-
$sitedir = destdir + $sitedir
|
55
|
-
|
56
|
-
FileUtils.mkdir_p($bindir)
|
57
|
-
FileUtils.mkdir_p($sitedir)
|
58
|
-
end
|
59
|
-
|
60
|
-
rake_dest = File.join($sitedir, "rake")
|
61
|
-
FileUtils.mkdir_p(rake_dest, {:verbose => true})
|
62
|
-
File.chmod(0755, rake_dest)
|
63
|
-
|
64
|
-
# The library files
|
65
|
-
|
66
|
-
files = Dir.chdir('lib') { Dir['**/*.rb'].sort }
|
67
|
-
|
68
|
-
for fn in files
|
69
|
-
fn_dir = File.dirname(fn)
|
70
|
-
target_dir = File.join($sitedir, fn_dir)
|
71
|
-
if ! File.exist?(target_dir)
|
72
|
-
FileUtils.mkdir_p(target_dir)
|
73
|
-
end
|
74
|
-
FileUtils.install(File.join('lib', fn), File.join($sitedir, fn),
|
75
|
-
{:mode => 0644, :verbose => true})
|
76
|
-
end
|
77
|
-
|
78
|
-
# and the executable
|
79
|
-
|
80
|
-
installBIN("bin/rake", "rake")
|