Skip to content

Commit

Permalink
Remove trailing whitespace from rake
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Jan 7, 2011
1 parent ffad055 commit 2365bd2
Show file tree
Hide file tree
Showing 48 changed files with 192 additions and 192 deletions.
8 changes: 4 additions & 4 deletions README.rdoc
@@ -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:

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
30 changes: 15 additions & 15 deletions Rakefile
Expand Up @@ -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 << "."
Expand All @@ -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")
Expand Down Expand Up @@ -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/)
Expand All @@ -165,8 +165,8 @@ end
PKG_FILES = FileList[
'install.rb',
'[A-Z]*',
'bin/**/*',
'lib/**/*.rb',
'bin/**/*',
'lib/**/*.rb',
'test/**/*.rb',
'test/**/*.rf',
'test/**/*.mf',
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions doc/rakefile.rdoc
Expand Up @@ -278,7 +278,7 @@ actions.

task :dont do
Rake::Task[:doit].clear
end
end

Running this example:

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.7.0.rdoc
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions doc/release_notes/rake-0.7.2.rdoc
Expand Up @@ -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.

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/release_notes/rake-0.7.3.rdoc
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.0.rdoc
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.2.rdoc
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.3.rdoc
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.4.rdoc
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.5.rdoc
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.6.rdoc
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/release_notes/rake-0.8.7.rdoc
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions install.rb
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions lib/rake/alt_system.rb
@@ -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
Expand All @@ -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)!

Expand All @@ -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
Expand Down

0 comments on commit 2365bd2

Please sign in to comment.