drake 0.8.3.1.0.14 → 0.8.4.1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +27 -0
- data/CHANGES.drake +4 -0
- data/README +98 -198
- data/Rakefile +2 -4
- data/Rakefile.drake +0 -4
- data/doc/command_line_usage.rdoc +102 -0
- data/doc/rakefile.rdoc +4 -4
- data/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/lib/rake.rb +94 -60
- data/lib/rake/alt_system.rb +108 -0
- data/lib/rake/contrib/publisher.rb +1 -1
- data/lib/rake/contrib/sys.rb +1 -1
- data/lib/rake/gempackagetask.rb +0 -6
- data/lib/rake/loaders/makefile.rb +8 -1
- data/lib/rake/packagetask.rb +0 -1
- data/lib/rake/rdoctask.rb +79 -17
- data/lib/rake/testtask.rb +1 -1
- data/lib/rake/win32.rb +11 -10
- data/test/Rakefile.seq +1 -1
- data/test/Rakefile.simple +14 -25
- data/test/check_no_expansion.rb +5 -0
- data/test/data/sample.mf +2 -0
- data/test/rake_test_setup.rb +14 -0
- data/test/session_functional.rb +2 -0
- data/test/test_application.rb +25 -44
- data/test/test_definitions.rb +4 -1
- data/test/test_file_task.rb +20 -16
- data/test/test_filelist.rb +8 -3
- data/test/test_fileutils.rb +45 -44
- data/test/test_invocation_chain.rb +8 -2
- data/test/test_makefile_loader.rb +2 -1
- data/test/test_namespace.rb +30 -11
- data/test/test_package_task.rb +3 -1
- data/test/test_parallel.rb +4 -15
- data/test/test_pathmap.rb +3 -2
- data/test/test_pseudo_status.rb +26 -0
- data/test/test_rdoc_task.rb +88 -0
- data/test/test_require.rb +3 -1
- data/test/test_rules.rb +7 -5
- data/test/test_task_manager.rb +4 -1
- data/test/test_tasks.rb +7 -4
- data/test/test_test_task.rb +2 -0
- data/test/test_top_level_functions.rb +4 -2
- data/test/test_win32.rb +29 -14
- metadata +12 -4
data/test/test_test_task.rb
CHANGED
@@ -7,12 +7,14 @@ rescue LoadError
|
|
7
7
|
end
|
8
8
|
|
9
9
|
require 'test/unit'
|
10
|
+
require 'flexmock/test_unit'
|
10
11
|
require 'test/capture_stdout'
|
12
|
+
require 'test/rake_test_setup'
|
11
13
|
require 'rake'
|
12
|
-
require 'flexmock/test_unit'
|
13
14
|
|
14
15
|
class TestTopLevelFunctions < Test::Unit::TestCase
|
15
16
|
include CaptureStdout
|
17
|
+
include TestMethods
|
16
18
|
|
17
19
|
def setup
|
18
20
|
super
|
@@ -79,6 +81,6 @@ class TestTopLevelFunctions < Test::Unit::TestCase
|
|
79
81
|
end
|
80
82
|
|
81
83
|
def test_missing_other_constant
|
82
|
-
|
84
|
+
assert_exception(NameError) do Object.const_missing(:Xyz) end
|
83
85
|
end
|
84
86
|
end
|
data/test/test_win32.rb
CHANGED
@@ -8,47 +8,62 @@ require 'rake'
|
|
8
8
|
|
9
9
|
class TestWin32 < Test::Unit::TestCase
|
10
10
|
include InEnvironment
|
11
|
+
include TestMethods
|
11
12
|
|
12
13
|
Win32 = Rake::Win32
|
13
|
-
|
14
|
-
def
|
15
|
-
in_environment('RAKE_SYSTEM' => nil, '
|
16
|
-
assert_equal "/
|
14
|
+
|
15
|
+
def test_win32_system_dir_uses_home_if_defined
|
16
|
+
in_environment('RAKE_SYSTEM' => nil, 'HOME' => 'C:\\HP') do
|
17
|
+
assert_equal "C:/HP/Rake", Win32.win32_system_dir
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|
20
|
-
def
|
21
|
+
def test_win32_system_dir_uses_homedrive_homepath_when_no_home_defined
|
21
22
|
in_environment(
|
22
23
|
'RAKE_SYSTEM' => nil,
|
23
|
-
'
|
24
|
+
'HOME' => nil,
|
24
25
|
'HOMEDRIVE' => "C:",
|
25
|
-
|
26
|
+
'HOMEPATH' => "\\HP"
|
26
27
|
) do
|
27
28
|
assert_equal "C:/HP/Rake", Win32.win32_system_dir
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
31
|
-
def
|
32
|
+
def test_win32_system_dir_uses_appdata_when_no_home_or_home_combo
|
32
33
|
in_environment(
|
33
34
|
'RAKE_SYSTEM' => nil,
|
34
|
-
'
|
35
|
+
'HOME' => nil,
|
35
36
|
'HOMEDRIVE' => nil,
|
36
|
-
|
37
|
-
|
37
|
+
'HOMEPATH' => nil,
|
38
|
+
'APPDATA' => "C:\\Documents and Settings\\HP\\Application Data"
|
38
39
|
) do
|
39
|
-
assert_equal "/
|
40
|
+
assert_equal "C:/Documents and Settings/HP/Application Data/Rake", Win32.win32_system_dir
|
40
41
|
end
|
41
42
|
end
|
42
43
|
|
43
|
-
def
|
44
|
+
def test_win32_system_dir_fallback_to_userprofile_otherwise
|
44
45
|
in_environment(
|
45
46
|
'RAKE_SYSTEM' => nil,
|
47
|
+
'HOME' => nil,
|
48
|
+
'HOMEDRIVE' => nil,
|
49
|
+
'HOMEPATH' => nil,
|
46
50
|
'APPDATA' => nil,
|
51
|
+
'USERPROFILE' => "C:\\Documents and Settings\\HP"
|
52
|
+
) do
|
53
|
+
assert_equal "C:/Documents and Settings/HP/Rake", Win32.win32_system_dir
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_win32_system_dir_nil_of_no_env_vars
|
58
|
+
in_environment(
|
59
|
+
'RAKE_SYSTEM' => nil,
|
60
|
+
'HOME' => nil,
|
47
61
|
'HOMEDRIVE' => nil,
|
48
62
|
"HOMEPATH" => nil,
|
63
|
+
'APPDATA' => nil,
|
49
64
|
"USERPROFILE" => nil
|
50
65
|
) do
|
51
|
-
|
66
|
+
assert_exception(Rake::Win32::Win32HomeError) do
|
52
67
|
Win32.win32_system_dir
|
53
68
|
end
|
54
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4.1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James M. Lawrence
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-03-14 00:00:00 -04:00
|
13
13
|
default_executable: drake
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -24,6 +24,7 @@ extra_rdoc_files:
|
|
24
24
|
- MIT-LICENSE
|
25
25
|
- TODO
|
26
26
|
- CHANGES
|
27
|
+
- doc/command_line_usage.rdoc
|
27
28
|
- doc/glossary.rdoc
|
28
29
|
- doc/proto_rake.rdoc
|
29
30
|
- doc/rakefile.rdoc
|
@@ -41,6 +42,7 @@ extra_rdoc_files:
|
|
41
42
|
- doc/release_notes/rake-0.8.0.rdoc
|
42
43
|
- doc/release_notes/rake-0.8.2.rdoc
|
43
44
|
- doc/release_notes/rake-0.8.3.rdoc
|
45
|
+
- doc/release_notes/rake-0.8.4.rdoc
|
44
46
|
files:
|
45
47
|
- install.rb
|
46
48
|
- CHANGES
|
@@ -51,6 +53,7 @@ files:
|
|
51
53
|
- Rakefile.drake
|
52
54
|
- TODO
|
53
55
|
- bin/drake
|
56
|
+
- lib/rake/alt_system.rb
|
54
57
|
- lib/rake/classic_namespace.rb
|
55
58
|
- lib/rake/clean.rb
|
56
59
|
- lib/rake/contrib/compositepublisher.rb
|
@@ -81,6 +84,7 @@ files:
|
|
81
84
|
- lib/rake/comp_tree/task_node.rb
|
82
85
|
- test/capture_stdout.rb
|
83
86
|
- test/check_expansion.rb
|
87
|
+
- test/check_no_expansion.rb
|
84
88
|
- test/contrib/test_sys.rb
|
85
89
|
- test/data/rakelib/test1.rb
|
86
90
|
- test/data/rbext/rakefile.rb
|
@@ -111,7 +115,9 @@ files:
|
|
111
115
|
- test/test_package_task.rb
|
112
116
|
- test/test_parallel.rb
|
113
117
|
- test/test_pathmap.rb
|
118
|
+
- test/test_pseudo_status.rb
|
114
119
|
- test/test_rake.rb
|
120
|
+
- test/test_rdoc_task.rb
|
115
121
|
- test/test_require.rb
|
116
122
|
- test/test_rules.rb
|
117
123
|
- test/test_task_arguments.rb
|
@@ -135,6 +141,7 @@ files:
|
|
135
141
|
- test/data/statusreturn/Rakefile
|
136
142
|
- test/data/unittest/Rakefile
|
137
143
|
- test/data/unittest/subdir
|
144
|
+
- doc/command_line_usage.rdoc
|
138
145
|
- doc/example
|
139
146
|
- doc/example/Rakefile1
|
140
147
|
- doc/example/Rakefile2
|
@@ -161,6 +168,7 @@ files:
|
|
161
168
|
- doc/release_notes/rake-0.8.0.rdoc
|
162
169
|
- doc/release_notes/rake-0.8.2.rdoc
|
163
170
|
- doc/release_notes/rake-0.8.3.rdoc
|
171
|
+
- doc/release_notes/rake-0.8.4.rdoc
|
164
172
|
has_rdoc: true
|
165
173
|
homepage: http://drake.rubyforge.org
|
166
174
|
post_install_message:
|
@@ -188,9 +196,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
196
|
requirements: []
|
189
197
|
|
190
198
|
rubyforge_project: drake
|
191
|
-
rubygems_version: 1.
|
199
|
+
rubygems_version: 1.3.1
|
192
200
|
signing_key:
|
193
201
|
specification_version: 2
|
194
|
-
summary:
|
202
|
+
summary: A fork of Rake supporting parallel task execution.
|
195
203
|
test_files: []
|
196
204
|
|