Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] Rake 0.5.3 Release

Reply
Thread Tools

[ANN] Rake 0.5.3 Release

 
 
Jim Weirich
Guest
Posts: n/a
 
      04-09-2005
= 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.

--
-- Jim Weirich http://www.velocityreviews.com/forums/(E-Mail Removed) http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


 
Reply With Quote
 
 
 
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      04-13-2005
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))

################################################## ####################


--
Nobu Nakada


 
Reply With Quote
 
 
 
 
Jim Weirich
Guest
Posts: n/a
 
      04-13-2005
On Wednesday 13 April 2005 12:46 am, (E-Mail Removed) wrote:
> 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

--
-- Jim Weirich (E-Mail Removed) http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


 
Reply With Quote
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      04-13-2005
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?

--
Nobu Nakada


 
Reply With Quote
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      04-13-2005
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.

--
Nobu Nakada


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple rake build files? large rake files thufir Ruby 3 04-12-2008 07:28 AM
rake published rdoc version and arity of Rake::Task#execute - wrongnumber of arguments (0 for 1) James Mead Ruby 0 01-15-2008 05:42 PM
Rake TestTask running its block anytime rake is invoked Adam Anderson Ruby 1 09-19-2007 08:40 AM
Rake and rake aborted! Rake aborted! undefined method `gem' for main:Object peppermonkey Ruby 1 02-10-2007 04:43 AM
Rake 0.7.0 breaks "rake engine_migrate"? Joe Van Dyk Ruby 2 01-31-2006 12:11 AM



Advertisments