[ANN] Rake 0.5.3 Release

Discussion in 'Ruby' started by Jim Weirich, Apr 9, 2005.

  1. Jim Weirich

    Jim Weirich Guest

    = 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://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)
    Jim Weirich, Apr 9, 2005
    #1
    1. Advertising

  2. Jim Weirich

    Guest

    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
    , Apr 13, 2005
    #2
    1. Advertising

  3. Jim Weirich

    Jim Weirich Guest

    On Wednesday 13 April 2005 12:46 am, 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 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)
    Jim Weirich, Apr 13, 2005
    #3
  4. Jim Weirich

    Guest

    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
    , Apr 13, 2005
    #4
  5. Jim Weirich

    Guest

    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
    , Apr 13, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Weirich

    [ANN] Rake 0.5.0 Release

    Jim Weirich, Mar 25, 2005, in forum: Ruby
    Replies:
    11
    Views:
    178
  2. Joe Van Dyk
    Replies:
    2
    Views:
    102
    Damphyr
    Jan 31, 2006
  3. peppermonkey
    Replies:
    1
    Views:
    238
    Gregory Brown
    Feb 10, 2007
  4. Adam Anderson
    Replies:
    1
    Views:
    129
    Adam Anderson
    Sep 19, 2007
  5. James Mead
    Replies:
    0
    Views:
    141
    James Mead
    Jan 15, 2008
Loading...

Share This Page