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/test/test_rake_win32.rb
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
require File.expand_path('../helper', __FILE__)
|
2
|
-
|
3
|
-
class TestRakeWin32 < Rake::TestCase
|
4
|
-
|
5
|
-
Win32 = Rake::Win32
|
6
|
-
|
7
|
-
def test_win32_system_dir_uses_home_if_defined
|
8
|
-
ENV['HOME'] = 'C:\\HP'
|
9
|
-
|
10
|
-
assert_equal "C:/HP/Rake", Win32.win32_system_dir
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_win32_system_dir_uses_homedrive_homepath_when_no_home_defined
|
14
|
-
ENV['HOME'] = nil
|
15
|
-
ENV['HOMEDRIVE'] = 'C:'
|
16
|
-
ENV['HOMEPATH'] = '\\HP'
|
17
|
-
|
18
|
-
assert_equal "C:/HP/Rake", Win32.win32_system_dir
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_win32_system_dir_uses_appdata_when_no_home_or_home_combo
|
22
|
-
ENV['APPDATA'] = "C:\\Documents and Settings\\HP\\Application Data"
|
23
|
-
ENV['HOME'] = nil
|
24
|
-
ENV['HOMEDRIVE'] = nil
|
25
|
-
ENV['HOMEPATH'] = nil
|
26
|
-
|
27
|
-
assert_equal "C:/Documents and Settings/HP/Application Data/Rake",
|
28
|
-
Win32.win32_system_dir
|
29
|
-
end
|
30
|
-
|
31
|
-
def test_win32_system_dir_fallback_to_userprofile_otherwise
|
32
|
-
ENV['HOME'] = nil
|
33
|
-
ENV['HOMEDRIVE'] = nil
|
34
|
-
ENV['HOMEPATH'] = nil
|
35
|
-
ENV['APPDATA'] = nil
|
36
|
-
ENV['USERPROFILE'] = "C:\\Documents and Settings\\HP"
|
37
|
-
|
38
|
-
assert_equal "C:/Documents and Settings/HP/Rake", Win32.win32_system_dir
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_win32_system_dir_nil_of_no_env_vars
|
42
|
-
ENV['APPDATA'] = nil
|
43
|
-
ENV['HOME'] = nil
|
44
|
-
ENV['HOMEDRIVE'] = nil
|
45
|
-
ENV['HOMEPATH'] = nil
|
46
|
-
ENV['RAKE_SYSTEM'] = nil
|
47
|
-
ENV['USERPROFILE'] = nil
|
48
|
-
|
49
|
-
assert_raises(Rake::Win32::Win32HomeError) do
|
50
|
-
Win32.win32_system_dir
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def test_win32_backtrace_with_different_case
|
55
|
-
ex = nil
|
56
|
-
begin
|
57
|
-
raise 'test exception'
|
58
|
-
rescue => ex
|
59
|
-
end
|
60
|
-
|
61
|
-
ex.set_backtrace ['abc', 'rakefile']
|
62
|
-
|
63
|
-
rake = Rake::Application.new
|
64
|
-
rake.options.trace = true
|
65
|
-
rake.instance_variable_set(:@rakefile, 'Rakefile')
|
66
|
-
|
67
|
-
_, err = capture_io { rake.display_error_message(ex) }
|
68
|
-
|
69
|
-
assert_match(/rakefile/, err)
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
data/test/test_sys.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require File.expand_path('../helper', __FILE__)
|
2
|
-
begin
|
3
|
-
old_verbose = $VERBOSE
|
4
|
-
$VERBOSE = nil
|
5
|
-
require 'rake/contrib/sys'
|
6
|
-
ensure
|
7
|
-
$VERBOSE = old_verbose
|
8
|
-
end
|
9
|
-
|
10
|
-
class TestSys < Rake::TestCase
|
11
|
-
|
12
|
-
def test_split_all
|
13
|
-
assert_equal ['a'], Sys.split_all('a')
|
14
|
-
assert_equal ['..'], Sys.split_all('..')
|
15
|
-
assert_equal ['/'], Sys.split_all('/')
|
16
|
-
assert_equal ['a', 'b'], Sys.split_all('a/b')
|
17
|
-
assert_equal ['/', 'a', 'b'], Sys.split_all('/a/b')
|
18
|
-
assert_equal ['..', 'a', 'b'], Sys.split_all('../a/b')
|
19
|
-
end
|
20
|
-
end
|