Permalink
Browse files

Remove trailing whitespace from rake

  • Loading branch information...
1 parent ffad055 commit 2365bd2a4ea303b6aa6a95cd1922392d38eefceb @drbrain drbrain committed Jan 7, 2011
Showing with 192 additions and 192 deletions.
  1. +4 −4 README.rdoc
  2. +15 −15 Rakefile
  3. +8 −8 doc/rakefile.rdoc
  4. +1 −1 doc/release_notes/rake-0.7.0.rdoc
  5. +3 −3 doc/release_notes/rake-0.7.2.rdoc
  6. +2 −2 doc/release_notes/rake-0.7.3.rdoc
  7. +1 −1 doc/release_notes/rake-0.8.0.rdoc
  8. +1 −1 doc/release_notes/rake-0.8.2.rdoc
  9. +1 −1 doc/release_notes/rake-0.8.3.rdoc
  10. +1 −1 doc/release_notes/rake-0.8.4.rdoc
  11. +1 −1 doc/release_notes/rake-0.8.5.rdoc
  12. +1 −1 doc/release_notes/rake-0.8.6.rdoc
  13. +1 −1 doc/release_notes/rake-0.8.7.rdoc
  14. +2 −2 install.rb
  15. +5 −5 lib/rake/alt_system.rb
  16. +7 −7 lib/rake/application.rb
  17. +5 −5 lib/rake/clean.rb
  18. +1 −1 lib/rake/contrib/publisher.rb
  19. +4 −4 lib/rake/contrib/sshpublisher.rb
  20. +1 −1 lib/rake/contrib/sys.rb
  21. +10 −10 lib/rake/dsl_definition.rb
  22. +1 −1 lib/rake/environment.rb
  23. +1 −1 lib/rake/ext/string.rb
  24. +2 −2 lib/rake/file_list.rb
  25. +12 −12 lib/rake/file_utils_ext.rb
  26. +2 −2 lib/rake/invocation_chain.rb
  27. +1 −1 lib/rake/name_space.rb
  28. +1 −1 lib/rake/pseudo_status.rb
  29. +15 −15 lib/rake/rdoctask.rb
  30. +4 −4 lib/rake/task.rb
  31. +2 −2 lib/rake/task_arguments.rb
  32. +9 −9 lib/rake/task_manager.rb
  33. +4 −4 lib/rake/testtask.rb
  34. +1 −1 rakelib/rbx.rake
  35. +1 −1 rakelib/ruby19.rake
  36. +10 −10 test/functional/session_based_tests.rb
  37. +17 −17 test/lib/application_test.rb
  38. +2 −2 test/lib/definitions_test.rb
  39. +1 −1 test/lib/earlytime_test.rb
  40. +1 −1 test/lib/file_task_test.rb
  41. +11 −11 test/lib/filelist_test.rb
  42. +1 −1 test/lib/multitask_test.rb
  43. +1 −1 test/lib/pathmap_test.rb
  44. +1 −1 test/lib/rake_test.rb
  45. +12 −12 test/lib/rdoc_task_test.rb
  46. +1 −1 test/lib/task_arguments_test.rb
  47. +2 −2 test/lib/task_manager_test.rb
  48. +1 −1 test/lib/test_task_test.rb
View
@@ -1,9 +1,9 @@
-= RAKE -- Ruby Make
+= RAKE -- Ruby Make
Supporting Rake version: 0.8.7.
This package contains Rake, a simple ruby build program with
-capabilities similar to make.
+capabilities similar to make.
Rake has the following features:
@@ -52,7 +52,7 @@ First, you must write a "Rakefile" file which contains the build rules. Here's
a simple example:
task :default => [:test]
-
+
task :test do
ruby "test/unittest.rb"
end
@@ -114,7 +114,7 @@ If you wish to run the unit and functional tests that come with Rake:
Feature requests and bug reports can be made here
* http://onestepback.org/cgi-bin/bugs.cgi?project=rake
-
+
No account is needed for posting requests. Or you can send me an
email (at jim dot weirich at gmail dot com)
View
@@ -73,19 +73,19 @@ namespace :test do
t.libs << "."
t.warning = true
end
-
+
Rake::TestTask.new(:units) do |t|
t.test_files = TestFiles::UNIT
t.libs << "."
t.warning = true
end
-
+
Rake::TestTask.new(:functional) do |t|
t.test_files = TestFiles::FUNCTIONAL
t.libs << "."
t.warning = true
end
-
+
Rake::TestTask.new(:contribs) do |t|
t.test_files = TestFiles::CONTRIB
t.libs << "."
@@ -98,10 +98,10 @@ begin
Rcov::RcovTask.new do |t|
t.libs << "test"
- dot_rakes =
+ dot_rakes =
t.rcov_opts = [
'-xRakefile', '-xrakefile', '-xpublish.rf',
- '-xlib/rake/contrib', '-x/Library',
+ '-xlib/rake/contrib', '-x/Library',
'--text-report',
'--sort coverage'
] + FileList['rakelib/*.rake'].pathmap("-x%p")
@@ -152,7 +152,7 @@ rd = Rake::RDocTask.new("rdoc") do |rdoc|
rdoc.title = "Rake -- Ruby Make"
rdoc.options = BASE_RDOC_OPTIONS.dup
rdoc.options << '-SHN' << '-f' << 'darkfish' if DARKFISH_ENABLED
-
+
rdoc.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'TODO', 'CHANGES')
rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
rdoc.rdoc_files.exclude(/\bcontrib\b/)
@@ -165,8 +165,8 @@ end
PKG_FILES = FileList[
'install.rb',
'[A-Z]*',
- 'bin/**/*',
- 'lib/**/*.rb',
+ 'bin/**/*',
+ 'lib/**/*.rb',
'test/**/*.rb',
'test/**/*.rf',
'test/**/*.mf',
@@ -182,15 +182,15 @@ if ! defined?(Gem)
puts "Package Target requires RubyGEMs"
else
SPEC = Gem::Specification.new do |s|
-
+
#### Basic information.
s.name = 'rake'
s.version = $package_version
s.summary = "Ruby based make-like utility."
s.description = <<-EOF
Rake is a Make-like program implemented in Ruby. Tasks
- and dependencies are specified in standard Ruby syntax.
+ and dependencies are specified in standard Ruby syntax.
EOF
#### Dependencies and requirements.
@@ -295,7 +295,7 @@ task :todo do
end
desc "List all ruby files"
-task :rubyfiles do
+task :rubyfiles do
puts RUBY_FILES
puts FileList['bin/*'].exclude('bin/*.rb')
end
@@ -321,23 +321,23 @@ task :release, :rel, :reuse, :reltest,
:package,
:tag
] do
- announce
+ announce
announce "**************************************************************"
announce "* Release #{$package_version} Complete."
announce "* Packages ready to upload."
announce "**************************************************************"
- announce
+ announce
end
# Validate that everything is ready to go for a release.
task :prerelease, :rel, :reuse, :reltest do |t, args|
$package_version = args.rel
- announce
+ announce
announce "**************************************************************"
announce "* Making RubyGem Release #{$package_version}"
announce "* (current version #{CURRENT_VERSION})"
announce "**************************************************************"
- announce
+ announce
# Is a release number supplied?
unless args.rel
View
@@ -278,7 +278,7 @@ actions.
task :dont do
Rake::Task[:doit].clear
- end
+ end
Running this example:
@@ -287,7 +287,7 @@ Running this example:
DONE
$ rake dont doit
(in /Users/jim/working/git/rake/x)
- $
+ $
The ability to programmatically manipulate tasks gives rake very
powerful meta-programming capabilities w.r.t. task execution, but
@@ -312,7 +312,7 @@ Rake is able to find a file named "mycode.c", it will automatically
create a task that builds "mycode.o" from "mycode.c".
If the file "mycode.c" does not exist, rake will attempt
-to recursively synthesize a rule for it.
+to recursively synthesize a rule for it.
When a task is synthesized from a rule, the +source+ attribute of the
task is set to the matching source file. This allows us to write
@@ -330,7 +330,7 @@ The following rule is equivalent to the example above.
proc {|task_name| task_name.sub(/\.[^.]+$/, '.c') }
]) do |t|
sh "cc #{t.source} -c -o #{t.name}"
- end
+ end
<b>NOTE:</b> Because of a _quirk_ in Ruby syntax, parenthesis are
required on *rule* when the first argument is a regular expression.
@@ -340,7 +340,7 @@ The following rule might be used for Java files ...
rule '.java' => [
proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
] do |t|
- java_compile(t.source, t.name)
+ java_compile(t.source, t.name)
end
<b>NOTE:</b> +java_compile+ is a hypothetical method that invokes the
@@ -400,14 +400,14 @@ are allowed
=== Example:
desc 'Create a distribution package'
-
+
task :package => [ ... ] do ... end
The +desc+ comment takes priority over the comment for of description.
The "-T" switch (or "--tasks" if you like to spell things out) will
display a list of tasks that have a description. If you use
-comments or +desc+ to describe your major tasks, you have a
+comments or +desc+ to describe your major tasks, you have a
semi-automatic way of generating a summary of your Rake file.
traken$ rake -T
@@ -461,7 +461,7 @@ Nested namespaces are supported, so
Note that the name given in the +task+ command is always the unadorned
task name without any namespace prefixes. The +task+ command always
-defines a task in the current namespace.
+defines a task in the current namespace.
=== FileTasks
@@ -64,7 +64,7 @@ commands:
Or invoke both via the :build_all command:
- rake build_all
+ rake build_all
Namespaces may be nested arbitrarily. Since the name of file tasks
correspond to the name of a file in the external file system,
@@ -24,7 +24,7 @@ Rake:
appliation instead of using its own data.
* Fixed the method name leak from FileUtils (bug found by Glenn
- Vanderburg).
+ Vanderburg).
* Added test for noop, bad_option and verbose flags to sh command.
@@ -40,13 +40,13 @@ Rake:
The following new features are available in Rake version 0.7.2:
* Added square and curly bracket patterns to FileList#include (Tilman
- Sauerbeck).
+ Sauerbeck).
* FileLists can now pass a block to FileList#exclude to exclude files
based on calculated values.
* Added plain filename support to rule dependents (suggested by Nobu
- Nakada).
+ Nakada).
* Added pathmap support to rule dependents. In other words, if a
pathmap format (beginning with a '%') is given as a Rake rule
@@ -13,11 +13,11 @@ support custom Rake applications.
require 'rake'
Rake.application.init('myrake')
-
+
task :default do
something_interesting
end
-
+
Rake.application.top_level
== What is Rake
@@ -1,7 +1,7 @@
= Rake 0.8.0/0.8.1 Released
Rake version 0.8.0 is a new release of rake that includes serveral new
-features.
+features.
== Changes
@@ -53,7 +53,7 @@ new features and numerous bug fixes.
* Changed from using Mutex to Monitor. Evidently Mutex causes thread
join errors when Ruby is compiled with -disable-pthreads. (Patch
- supplied by Ittay Dror)
+ supplied by Ittay Dror)
* Fixed bug in makefile parser that had problems with extra spaces in
file task names. (Patch supplied by Ittay Dror)
@@ -12,7 +12,7 @@ Rake version 0.8.3 is a bug-fix release of rake.
directory.
* Added fix to handle ruby installations in directories with spaces in
- their name.
+ their name.
== What is Rake
@@ -69,7 +69,7 @@ Otherwise, you can get it from the more traditional places:
Home Page:: http://rake.rubyforge.org/
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
-GitHub:: git://github.com/jimweirich/rake.git
+GitHub:: git://github.com/jimweirich/rake.git
== Task Argument Examples
@@ -39,7 +39,7 @@ Otherwise, you can get it from the more traditional places:
Home Page:: http://rake.rubyforge.org/
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
-GitHub:: git://github.com/jimweirich/rake.git
+GitHub:: git://github.com/jimweirich/rake.git
== Thanks
@@ -41,7 +41,7 @@ Otherwise, you can get it from the more traditional places:
Home Page:: http://rake.rubyforge.org/
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
-GitHub:: git://github.com/jimweirich/rake.git
+GitHub:: git://github.com/jimweirich/rake.git
== Thanks
@@ -42,7 +42,7 @@ Otherwise, you can get it from the more traditional places:
Home Page:: http://rake.rubyforge.org/
Download:: http://rubyforge.org/project/showfiles.php?group_id=50
-GitHub:: git://github.com/jimweirich/rake.git
+GitHub:: git://github.com/jimweirich/rake.git
== Thanks
View
@@ -27,7 +27,7 @@ def installBIN(from, opfile)
fail "Cannot find a temporary directory" unless tmp_dir
tmp_file = File.join(tmp_dir, "_tmp")
-
+
File.open(from) do |ip|
File.open(tmp_file, "w") do |op|
ruby = File.join($realbindir, $ruby)
@@ -62,7 +62,7 @@ def installBIN(from, opfile)
if (destdir = ENV['DESTDIR'])
$bindir = destdir + $bindir
$sitedir = destdir + $sitedir
-
+
FileUtils.mkdir_p($bindir)
FileUtils.mkdir_p($sitedir)
end
View
@@ -1,17 +1,17 @@
#
# Copyright (c) 2008 James M. Lawrence
-#
+#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
-#
+#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -27,7 +27,7 @@
#
# Alternate implementations of system() and backticks `` on Windows
# for ruby-1.8 and earlier.
-#
+#
module Rake::AltSystem
WINDOWS = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!
@@ -37,7 +37,7 @@ def define_module_function(name, &block)
module_function(name)
end
end
-
+
if WINDOWS and RUBY_VERSION < "1.9.0"
RUNNABLE_EXTS = %w[com exe bat cmd]
RUNNABLE_PATTERN = %r!\.(#{RUNNABLE_EXTS.join('|')})\Z!i
Oops, something went wrong.

0 comments on commit 2365bd2

Please sign in to comment.