rake 0.9.2 → 0.9.2.2

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.

Files changed (75) hide show
  1. data/CHANGES +13 -0
  2. data/README.rdoc +12 -15
  3. data/Rakefile +8 -44
  4. data/bin/rake +1 -0
  5. data/lib/rake.rb +4 -0
  6. data/lib/rake/application.rb +9 -3
  7. data/lib/rake/classic_namespace.rb +2 -0
  8. data/lib/rake/clean.rb +1 -0
  9. data/lib/rake/contrib/publisher.rb +10 -6
  10. data/lib/rake/contrib/sshpublisher.rb +5 -0
  11. data/lib/rake/dsl_definition.rb +13 -4
  12. data/lib/rake/ext/time.rb +3 -3
  13. data/lib/rake/file_utils.rb +9 -7
  14. data/lib/rake/file_utils_ext.rb +4 -1
  15. data/lib/rake/gempackagetask.rb +2 -0
  16. data/lib/rake/rake_test_loader.rb +15 -6
  17. data/lib/rake/rdoctask.rb +5 -1
  18. data/lib/rake/task_arguments.rb +4 -0
  19. data/lib/rake/version.rb +5 -7
  20. data/test/file_creation.rb +2 -2
  21. data/test/helper.rb +460 -12
  22. data/test/test_rake.rb +3 -1
  23. data/test/test_rake_application.rb +250 -125
  24. data/test/test_rake_application_options.rb +146 -193
  25. data/test/test_rake_clean.rb +2 -0
  26. data/test/test_rake_definitions.rb +6 -6
  27. data/test/test_rake_directory_task.rb +26 -35
  28. data/test/test_rake_dsl.rb +4 -0
  29. data/test/test_rake_file_creation_task.rb +1 -7
  30. data/test/test_rake_file_list.rb +128 -133
  31. data/test/test_rake_file_task.rb +1 -3
  32. data/test/test_rake_file_utils.rb +123 -70
  33. data/test/test_rake_functional.rb +234 -252
  34. data/test/test_rake_makefile_loader.rb +22 -1
  35. data/test/test_rake_package_task.rb +10 -9
  36. data/test/test_rake_path_map_explode.rb +3 -0
  37. data/test/test_rake_pseudo_status.rb +3 -2
  38. data/test/test_rake_rake_test_loader.rb +21 -0
  39. data/test/test_rake_rdoc_task.rb +5 -3
  40. data/test/test_rake_require.rb +8 -3
  41. data/test/test_rake_rules.rb +56 -75
  42. data/test/test_rake_task.rb +5 -9
  43. data/test/test_rake_task_argument_parsing.rb +33 -46
  44. data/test/test_rake_task_arguments.rb +2 -0
  45. data/test/test_rake_task_manager.rb +12 -0
  46. data/test/test_rake_task_with_arguments.rb +11 -0
  47. data/test/test_rake_test_task.rb +55 -57
  48. data/test/test_rake_top_level_functions.rb +52 -17
  49. data/test/test_rake_win32.rb +31 -42
  50. metadata +6 -52
  51. data/RRR +0 -9
  52. data/test/check_expansion.rb +0 -5
  53. data/test/check_no_expansion.rb +0 -5
  54. data/test/data/access/Rakefile +0 -35
  55. data/test/data/chains/Rakefile +0 -15
  56. data/test/data/comments/Rakefile +0 -18
  57. data/test/data/default/Rakefile +0 -17
  58. data/test/data/deprecated_import/Rakefile +0 -1
  59. data/test/data/dryrun/Rakefile +0 -22
  60. data/test/data/extra/Rakefile +0 -1
  61. data/test/data/file_creation_task/Rakefile +0 -31
  62. data/test/data/imports/Rakefile +0 -19
  63. data/test/data/imports/deps.mf +0 -1
  64. data/test/data/multidesc/Rakefile +0 -15
  65. data/test/data/namespace/Rakefile +0 -64
  66. data/test/data/rakelib/test1.rb +0 -4
  67. data/test/data/rbext/rakefile.rb +0 -3
  68. data/test/data/sample.mf +0 -14
  69. data/test/data/statusreturn/Rakefile +0 -6
  70. data/test/data/unittest/Rakefile +0 -1
  71. data/test/data/verbose/Rakefile +0 -34
  72. data/test/in_environment.rb +0 -35
  73. data/test/reqfile.rb +0 -3
  74. data/test/reqfile2.rb +0 -3
  75. data/test/shellcommand.rb +0 -3
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rake
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.2
5
+ version: 0.9.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jim Weirich
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-05 00:00:00 Z
13
+ date: 2011-10-22 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -23,29 +23,7 @@ dependencies:
23
23
  version: "2.1"
24
24
  type: :development
25
25
  version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: session
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- version: "2.4"
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: flexmock
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.8.11
46
- type: :development
47
- version_requirements: *id003
48
- description: " Rake is a Make-like program implemented in Ruby. Tasks\n and dependencies are specified in standard Ruby syntax.\n"
26
+ description: Rake is a Make-like program implemented in Ruby. Tasks and dependencies arespecified in standard Ruby syntax.
49
27
  email: jim@weirichhouse.org
50
28
  executables:
51
29
  - rake
@@ -88,7 +66,6 @@ files:
88
66
  - MIT-LICENSE
89
67
  - Rakefile
90
68
  - README.rdoc
91
- - RRR
92
69
  - TODO
93
70
  - bin/rake
94
71
  - lib/rake/alt_system.rb
@@ -138,16 +115,8 @@ files:
138
115
  - lib/rake/version.rb
139
116
  - lib/rake/win32.rb
140
117
  - lib/rake.rb
141
- - test/check_expansion.rb
142
- - test/check_no_expansion.rb
143
- - test/data/rakelib/test1.rb
144
- - test/data/rbext/rakefile.rb
145
118
  - test/file_creation.rb
146
119
  - test/helper.rb
147
- - test/in_environment.rb
148
- - test/reqfile.rb
149
- - test/reqfile2.rb
150
- - test/shellcommand.rb
151
120
  - test/test_rake.rb
152
121
  - test/test_rake_application.rb
153
122
  - test/test_rake_application_options.rb
@@ -173,6 +142,7 @@ files:
173
142
  - test/test_rake_path_map_explode.rb
174
143
  - test/test_rake_path_map_partial.rb
175
144
  - test/test_rake_pseudo_status.rb
145
+ - test/test_rake_rake_test_loader.rb
176
146
  - test/test_rake_rdoc_task.rb
177
147
  - test/test_rake_require.rb
178
148
  - test/test_rake_rules.rb
@@ -187,22 +157,6 @@ files:
187
157
  - test/test_rake_top_level_functions.rb
188
158
  - test/test_rake_win32.rb
189
159
  - test/test_sys.rb
190
- - test/data/imports/deps.mf
191
- - test/data/sample.mf
192
- - test/data/access/Rakefile
193
- - test/data/chains/Rakefile
194
- - test/data/comments/Rakefile
195
- - test/data/default/Rakefile
196
- - test/data/deprecated_import/Rakefile
197
- - test/data/dryrun/Rakefile
198
- - test/data/extra/Rakefile
199
- - test/data/file_creation_task/Rakefile
200
- - test/data/imports/Rakefile
201
- - test/data/multidesc/Rakefile
202
- - test/data/namespace/Rakefile
203
- - test/data/statusreturn/Rakefile
204
- - test/data/unittest/Rakefile
205
- - test/data/verbose/Rakefile
206
160
  - doc/command_line_usage.rdoc
207
161
  - doc/example/a.c
208
162
  - doc/example/b.c
@@ -253,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
207
  requirements:
254
208
  - - ">="
255
209
  - !ruby/object:Gem::Version
256
- version: "0"
210
+ version: 1.8.6
257
211
  required_rubygems_version: !ruby/object:Gem::Requirement
258
212
  none: false
259
213
  requirements:
@@ -263,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
217
  requirements: []
264
218
 
265
219
  rubyforge_project: rake
266
- rubygems_version: 1.8.3
220
+ rubygems_version: 1.8.11
267
221
  signing_key:
268
222
  specification_version: 3
269
223
  summary: Ruby based make-like utility.
data/RRR DELETED
@@ -1,9 +0,0 @@
1
- class Zippy
2
- def initialize
3
- task :a
4
- task :b
5
- file "x"
6
- end
7
- end
8
-
9
- Zippy.new
@@ -1,5 +0,0 @@
1
- if ARGV[0] != ARGV[1]
2
- exit 1
3
- else
4
- exit 0
5
- end
@@ -1,5 +0,0 @@
1
- if ARGV[0] != ARGV[1]
2
- exit 0
3
- else
4
- exit 1
5
- end
@@ -1,35 +0,0 @@
1
- TOP_LEVEL_CONSTANT = 0
2
-
3
- def a_top_level_function
4
- end
5
-
6
- task :default => [:work, :obj, :const]
7
-
8
- task :work do
9
- begin
10
- a_top_level_function
11
- puts "GOOD:M Top level methods can be called in tasks"
12
- rescue NameError => ex
13
- puts "BAD:M Top level methods can not be called in tasks"
14
- end
15
- end
16
-
17
- # TODO: remove `disabled_' when DeprecatedObjectDSL removed
18
- task :obj
19
- task :disabled_obj do
20
- begin
21
- Object.new.instance_eval { task :xyzzy }
22
- puts "BAD:D Rake DSL are polluting objects"
23
- rescue StandardError => ex
24
- puts "GOOD:D Rake DSL are not polluting objects"
25
- end
26
- end
27
-
28
- task :const do
29
- begin
30
- TOP_LEVEL_CONSTANT
31
- puts "GOOD:C Top level constants are available in tasks"
32
- rescue StandardError => ex
33
- puts "BAD:C Top level constants are NOT available in tasks"
34
- end
35
- end
@@ -1,15 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- task :default => "play.app"
4
-
5
- file "play.scpt" => "base" do |t|
6
- cp t.prerequisites.first, t.name
7
- end
8
-
9
- rule ".app" => ".scpt" do |t|
10
- cp t.source, t.name
11
- end
12
-
13
- file 'base' do
14
- touch 'base'
15
- end
@@ -1,18 +0,0 @@
1
- # comment for t1
2
- task :t1 do
3
- end
4
-
5
- # no comment or task because there's a blank line
6
-
7
- task :t2 do
8
- end
9
-
10
- desc "override comment for t3"
11
- # this is not the description
12
- multitask :t3 do
13
- end
14
-
15
- # this is not the description
16
- desc "override comment for t4"
17
- file :t4 do
18
- end
@@ -1,17 +0,0 @@
1
- if ENV['TESTTOPSCOPE']
2
- puts "TOPSCOPE"
3
- end
4
-
5
- task :default do
6
- puts "DEFAULT"
7
- end
8
-
9
- task :other => [:default] do
10
- puts "OTHER"
11
- end
12
-
13
- task :task_scope do
14
- if ENV['TESTTASKSCOPE']
15
- puts "TASKSCOPE"
16
- end
17
- end
@@ -1 +0,0 @@
1
- import "a"
@@ -1,22 +0,0 @@
1
- #
2
-
3
- task :default => ["temp_main"]
4
-
5
- file "temp_main" => [:all_apps] do touch "temp_main" end
6
-
7
- task :all_apps => [:one, :two]
8
- task :one => ["temp_one"]
9
- task :two => ["temp_two"]
10
-
11
- file "temp_one" do |t|
12
- touch "temp_one"
13
- end
14
- file "temp_two" do |t|
15
- touch "temp_two"
16
- end
17
-
18
- task :clean do
19
- ["temp_one", "temp_two", "temp_main"].each do |file|
20
- rm_f file
21
- end
22
- end
@@ -1 +0,0 @@
1
- task :default
@@ -1,31 +0,0 @@
1
- N = 2
2
-
3
- task :default => :run
4
-
5
- BUILD_DIR = 'build'
6
- task :clean do
7
- rm_rf 'build'
8
- rm_rf 'src'
9
- end
10
-
11
- task :run
12
-
13
- TARGET_DIR = 'build/copies'
14
-
15
- FileList['src/*'].each do |src|
16
- directory TARGET_DIR
17
- target = File.join TARGET_DIR, File.basename(src)
18
- file target => [src, TARGET_DIR] do
19
- cp src, target
20
- # sleep 3 if src !~ /foo#{N-1}$/ # I'm commenting out this sleep, it doesn't seem to do anything.
21
- end
22
- task :run => target
23
- end
24
-
25
- task :prep => :clean do
26
- mkdir_p 'src'
27
- N.times do |n|
28
- puts "DBG: Touching src/foo#{n}"
29
- touch "src/foo#{n}"
30
- end
31
- end
@@ -1,19 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'rake/loaders/makefile'
4
-
5
- task :default
6
-
7
- task :other do
8
- puts "OTHER"
9
- end
10
-
11
- file "dynamic_deps" do |t|
12
- open(t.name, "w") do |f| f.puts "puts 'DYNAMIC'" end
13
- end
14
-
15
- import "dynamic_deps"
16
- import "static_deps"
17
- import "static_deps"
18
- import "deps.mf"
19
- puts "FIRST"
@@ -1 +0,0 @@
1
- default: other
@@ -1,15 +0,0 @@
1
- task :b
2
-
3
- desc "A"
4
- task :a
5
-
6
- desc "B"
7
- task :b
8
-
9
- desc "A2"
10
- task :a
11
-
12
- task :c
13
-
14
- desc "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
15
- task :d
@@ -1,64 +0,0 @@
1
- desc "copy"
2
- task :copy do
3
- puts "COPY"
4
- end
5
-
6
- namespace "nest" do
7
- desc "nest copy"
8
- task :copy do
9
- puts "NEST COPY"
10
- end
11
- task :xx => :copy
12
- end
13
-
14
- anon_ns = namespace do
15
- desc "anonymous copy task"
16
- task :copy do
17
- puts "ANON COPY"
18
- end
19
- end
20
-
21
- desc "Top level task to run the anonymous version of copy"
22
- task :anon => anon_ns[:copy]
23
-
24
- namespace "very" do
25
- namespace "nested" do
26
- task "run" => "rake:copy"
27
- end
28
- end
29
-
30
- namespace "a" do
31
- desc "Run task in the 'a' namespace"
32
- task "run" do
33
- puts "IN A"
34
- end
35
- end
36
-
37
- namespace "b" do
38
- desc "Run task in the 'b' namespace"
39
- task "run" => "a:run" do
40
- puts "IN B"
41
- end
42
- end
43
-
44
- namespace "file1" do
45
- file "xyz.rb" do
46
- puts "XYZ1"
47
- end
48
- end
49
-
50
- namespace "file2" do
51
- file "xyz.rb" do
52
- puts "XYZ2"
53
- end
54
- end
55
-
56
- namespace "scopedep" do
57
- task :prepare do
58
- touch "scopedep.rb"
59
- puts "PREPARE"
60
- end
61
- file "scopedep.rb" => [:prepare] do
62
- puts "SCOPEDEP"
63
- end
64
- end
@@ -1,4 +0,0 @@
1
-
2
- task :default do
3
- puts "TEST1"
4
- end
@@ -1,3 +0,0 @@
1
- task :default do
2
- puts "OK"
3
- end
@@ -1,14 +0,0 @@
1
- # Comments
2
- a: a1 a2 a3 a4
3
- b: b1 b2 b3 \
4
- b4 b5 b6\
5
- # Mid: Comment
6
- b7
7
-
8
- a : a5 a6 a7
9
- c: c1
10
- d: d1 d2 \
11
-
12
- e f : e1 f1
13
-
14
- g\ 0: g1 g\ 2 g\ 3 g4
@@ -1,6 +0,0 @@
1
- task :exit5 do
2
- exit(5)
3
- end
4
-
5
- task :normal do
6
- end
@@ -1 +0,0 @@
1
- # Empty Rakefile for Unit Test
@@ -1,34 +0,0 @@
1
-
2
- task :standalone_verbose_true do
3
- verbose true
4
- sh "ruby -e '0'"
5
- end
6
-
7
- task :standalone_verbose_false do
8
- verbose false
9
- sh "ruby -e '0'"
10
- end
11
-
12
- task :inline_verbose_default do
13
- sh "ruby -e '0'"
14
- end
15
-
16
- task :inline_verbose_false do
17
- sh "ruby -e '0'", :verbose => false
18
- end
19
-
20
- task :inline_verbose_true do
21
- sh "ruby -e '0'", :verbose => true
22
- end
23
-
24
- task :block_verbose_true do
25
- verbose(true) do
26
- sh "ruby -e '0'"
27
- end
28
- end
29
-
30
- task :block_verbose_false do
31
- verbose(false) do
32
- sh "ruby -e '0'"
33
- end
34
- end