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.

Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +2 -0
  4. data/.rubocop.yml +27 -0
  5. data/.togglerc +7 -0
  6. data/Gemfile +5 -0
  7. data/{CHANGES → History.rdoc} +84 -54
  8. data/Manifest.txt +161 -0
  9. data/README.rdoc +9 -10
  10. data/Rakefile +34 -337
  11. data/doc/command_line_usage.rdoc +16 -10
  12. data/doc/rake.1.gz +0 -0
  13. data/doc/rakefile.rdoc +72 -36
  14. data/doc/release_notes/rake-0.5.3.rdoc +1 -1
  15. data/doc/release_notes/rake-0.5.4.rdoc +1 -1
  16. data/doc/release_notes/rake-0.8.6.rdoc +1 -19
  17. data/doc/release_notes/rake-0.9.2.2.rdoc +2 -2
  18. data/doc/release_notes/rake-0.9.4.rdoc +0 -50
  19. data/doc/release_notes/rake-0.9.5.rdoc +0 -59
  20. data/doc/release_notes/rake-0.9.6.rdoc +0 -63
  21. data/doc/release_notes/rake-10.0.1.rdoc +2 -131
  22. data/doc/release_notes/rake-10.0.2.rdoc +2 -140
  23. data/doc/release_notes/rake-10.1.0.rdoc +2 -2
  24. data/lib/rake.rb +6 -1
  25. data/lib/rake/alt_system.rb +5 -3
  26. data/lib/rake/application.rb +102 -60
  27. data/lib/rake/backtrace.rb +1 -1
  28. data/lib/rake/cloneable.rb +3 -3
  29. data/lib/rake/contrib/.document +0 -0
  30. data/lib/rake/contrib/ftptools.rb +3 -5
  31. data/lib/rake/contrib/publisher.rb +12 -4
  32. data/lib/rake/contrib/rubyforgepublisher.rb +3 -1
  33. data/lib/rake/contrib/sshpublisher.rb +13 -2
  34. data/lib/rake/contrib/sys.rb +2 -0
  35. data/lib/rake/cpu_counter.rb +104 -0
  36. data/lib/rake/default_loader.rb +4 -0
  37. data/lib/rake/dsl_definition.rb +58 -17
  38. data/lib/rake/early_time.rb +4 -1
  39. data/lib/rake/ext/core.rb +2 -5
  40. data/lib/rake/ext/module.rb +1 -0
  41. data/lib/rake/ext/string.rb +35 -28
  42. data/lib/rake/ext/time.rb +1 -1
  43. data/lib/rake/file_list.rb +7 -9
  44. data/lib/rake/file_task.rb +1 -1
  45. data/lib/rake/gempackagetask.rb +3 -1
  46. data/lib/rake/invocation_chain.rb +0 -1
  47. data/lib/rake/linked_list.rb +1 -1
  48. data/lib/rake/packagetask.rb +19 -7
  49. data/lib/rake/pathmap.rb +2 -0
  50. data/lib/rake/pseudo_status.rb +2 -2
  51. data/lib/rake/rake_module.rb +6 -5
  52. data/lib/rake/rdoctask.rb +2 -0
  53. data/lib/rake/ruby182_test_unit_fix.rb +2 -0
  54. data/lib/rake/runtest.rb +6 -1
  55. data/lib/rake/scope.rb +1 -1
  56. data/lib/rake/task.rb +14 -9
  57. data/lib/rake/task_arguments.rb +19 -10
  58. data/lib/rake/task_manager.rb +20 -8
  59. data/lib/rake/tasklib.rb +2 -0
  60. data/lib/rake/testtask.rb +20 -9
  61. data/lib/rake/thread_pool.rb +13 -10
  62. data/lib/rake/trace_output.rb +1 -1
  63. data/lib/rake/version.rb +0 -2
  64. data/lib/rake/win32.rb +1 -1
  65. data/rakelib/publish.rake +20 -0
  66. data/rakelib/test_times.rake +25 -0
  67. data/test/helper.rb +6 -7
  68. data/test/support/rakefile_definitions.rb +34 -0
  69. data/test/test_rake_application.rb +89 -31
  70. data/test/test_rake_application_options.rb +13 -4
  71. data/test/test_rake_backtrace.rb +6 -2
  72. data/test/test_rake_clean.rb +3 -3
  73. data/test/test_rake_cpu_counter.rb +42 -0
  74. data/test/test_rake_file_task.rb +10 -0
  75. data/test/test_rake_functional.rb +17 -1
  76. data/test/test_rake_path_map.rb +2 -2
  77. data/test/test_rake_rules.rb +26 -0
  78. data/test/test_rake_task.rb +16 -0
  79. data/test/test_rake_task_argument_parsing.rb +6 -0
  80. data/test/test_rake_task_arguments.rb +6 -0
  81. data/test/test_rake_task_manager.rb +20 -0
  82. data/test/test_rake_test_task.rb +23 -1
  83. metadata +196 -72
  84. metadata.gz.sig +0 -0
  85. data/TODO +0 -21
  86. data/install.rb +0 -80
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")