[ANN] Rake 0.5.3 Release

J

Jim Weirich

= Rake 0.5.0 Released

Although it has only been two weeks since the last release, we have
enough updates to the Rake program to make it time for another
release.

== Changes

Here are the changes for version 0.5.3 ...

* FileLists have been extensively changed so that they mimic the
behavior of real arrays even more closely. In particular,
operations on FileLists that return a new collection (e.g. collect,
reject) will now return a FileList rather than an array. In
addition, several places where FileLists were not properly expanded
before use have been fixed.

* A method (+ext+) to simplify the handling of file extensions was
added to String and to Array.

* The 'testrb' script in test/unit tends to silently swallow syntax
errors in test suites. Because of that, the default test loader is
now a rake-provided script. You can still use 'testrb' by setting
the loader flag in the test task to :testrb. (See the API documents
for TestTask for all the loader flag values).

* FileUtil methods (e.g. cp, mv, install) are now declared to be
private. This will cut down on the interference with user defined
methods of the same name.

* Fixed the verbose flag in the TestTask so that the test code is
controlled by the flag. Also shortened up some failure messages.

* Rules will now properly detect a task that can generate a source
file. Previously rules would only consider source files that were
already present.

* Added an +import+ command that allows Rake to dynamically import
dependencies into a running Rake session. The +import+ command
can run tasks to update the dependency file before loading them.
Dependency files can be in rake or make format, allowing rake to
work with tools designed to generate dependencies for make.

== What is Rake

Rake is a build tool similar to the make program in many ways. But
instead of cryptic make recipes, Rake uses standard Ruby code to
declare tasks and dependencies. You have the full power of a modern
scripting language built right into your build tool.

== Availability

The easiest way to get and install rake is via RubyGems ...

gem install rake (you may need root/admin privileges)

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

== Thanks

As usual, it was input from users that drove a alot of these changes.
Thanks to ...

* Brian Gernhardt for the rules fix (especially for the patience to
explain the problem to me until I got what he was talking about).
* Stefan Lang for pointing out problems in the dark corners of the
FileList implementation.
* Alexey Verkhovsky pointing out the silently swallows syntax errors
in tests.
* Tobias Luetke for beautifying the test task output.
* Sam Roberts for some of the ideas behind dependency loading.
 
N

nobu.nokada

Hi,

At Sat, 9 Apr 2005 21:43:03 +0900,
Jim Weirich wrote in [ruby-talk:137578]:
= Rake 0.5.0 Released

It doesn't run.

$ rake
/usr/lib/ruby/gems/1.9/gems/rake-0.5.3/lib/rake.rb:658:in `private': undefined method `options' for class `Object' (NameError)
from /usr/lib/ruby/gems/1.9/gems/rake-0.5.3/lib/rake.rb:658
from /usr/lib/ruby/gems/1.9/gems/rake-0.5.3/lib/rake.rb:657:in `each'
from /usr/lib/ruby/gems/1.9/gems/rake-0.5.3/lib/rake.rb:657
from /usr/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:18:in `require'
from /usr/lib/ruby/site_ruby/1.9/rubygems/custom_require.rb:18:in `require'
from /usr/lib/ruby/gems/1.9/gems/rake-0.5.3/bin/rake:2
from /usr/bin/rake:18:in `load'
from /usr/bin/rake:18


--- rake-0.5.3/lib/rake.rb.orig 1970-01-01 09:00:00.000000000 +0900
+++ rake-0.5.3/lib/rake.rb 2005-04-12 15:01:59.501750000 +0900
@@ -652,11 +652,6 @@
# define methods on other objects.

-file_utils_methods = (FileUtils.methods - Object.methods)
include RakeFileUtils
-
-file_utils_methods.each do |name|
- private name.to_sym
-end
-file_utils_methods = nil
+private(*FileUtils.instance_methods(false))

######################################################################
 
J

Jim Weirich

Jim Weirich wrote in [ruby-talk:137578]:
= Rake 0.5.0 Released

It doesn't run.

(under ruby 1.9)
include RakeFileUtils
+private(*FileUtils.instance_methods(false))

Thanks for the patch. I grabbed the latest 1.9 CVS and tried to test it, but
it seemed to have trouble with optparse. So I wasn't able to test the
changes under Ruby 1.9. I've made a beta gem available is someone would like
to verify it. You can get the beta version (0.5.3.2) with ...

gem update rake --source http://onestepback.org/betagems
 
N

nobu.nokada

Hi,

At Wed, 13 Apr 2005 20:53:54 +0900,
Jim Weirich wrote in [ruby-talk:138067]:
Thanks for the patch. I grabbed the latest 1.9 CVS and tried to test it, but
it seemed to have trouble with optparse. So I wasn't able to test the

What's trouble?
 
N

nobu.nokada

Hi,

At Wed, 13 Apr 2005 23:25:48 +0900,
Jim Weirich wrote in [ruby-talk:138091]:
In optparse it was complaining about an undefined method 'pattern' on a
string object.

OK, fixed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top