Rake v0.7.2 Release Notes

  • ๐Ÿ”– Version 0.7.2 supplies a bug fix and a few minor enhancements. In ๐Ÿ›  particular, the new version fixes an incompatibility with the soon to ๐Ÿš€ be released Ruby 1.8.6. We strongly recommend upgrading to Rake 0.7.2 ๐Ÿ’Ž in order to be compatible with the new version of Ruby.

    ==== ๐Ÿ”„ Changes

    ===== ๐Ÿ› Bug Fixes in 0.7.2

    ๐Ÿ›  There are quite a number of bug fixes in the new 0.7.2 version of Rake:

    • โœ‚ Removed dependency on internal fu_xxx functions from FileUtils.

    • Error messages are now send to stderr rather than stdout (from Payton Quackenbush).

    • ๐Ÿ‘ Better error handling on invalid command line arguments (from Payton Quackenbush).

    • ๐Ÿ›  Fixed some bugs where the application object was going to the global appliation instead of using its own data.

    • ๐Ÿ›  Fixed the method name leak from FileUtils (bug found by Glenn Vanderburg).

    • โž• Added test for noop, bad_option and verbose flags to sh command.

    • โž• Added a description to the gem task in GemPackageTask.

    • ๐Ÿ›  Fixed a bug when rules have multiple prerequisites (patch by Joel VanderWerf)

    • โž• Added the handful of RakeFileUtils to the private method as well.

    ===== ๐Ÿ†• New Features in 0.7.2

    The following new features are available in Rake version 0.7.2:

    • โž• Added square and curly bracket patterns to FileList#include (Tilman 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).

    • โž• Added pathmap support to rule dependents. In other words, if a pathmap format (beginning with a '%') is given as a Rake rule dependent, then the name of the depend will be the name of the target with the pathmap format applied.

    • โž• Added a 'tasks' method to a namespace to get a list of tasks associated with the namespace.

    • Added tar_command and zip_command options to the Package task.

    • The clean task will no longer delete 'core' if it is a directory.

    ===== Internal Rake Improvements

    The following changes will are mainly internal improvements and ๐Ÿ”จ refactorings and have little effect on the end user. But they may be of interest to the general public.

    • โž• Added rcov task and updated unit testing for better code coverage.

    • โž• Added a 'shame' task to the Rakefile.

    • โž• Added rake_extension to handle detection of extension collisions.

    • โž• Added a protected 'require "rubygems"' to test/test_application to unbreak cruisecontrol.rb.

    • โœ‚ Removed rake_dup. Now we just simply rescue a bad dup.

    • ๐Ÿ”จ Refactored the FileList reject logic to remove duplication.

    • Removed if __FILE__ at the end of the rake.rb file.

    ==== Thanks

    As usual, it was input from users that drove a alot of these changes. The following people either contributed patches, made suggestions or made otherwise helpful comments. Thanks to ...

    • Payton Quackenbush -- For several error handling improvements.

    • Glenn Vanderburg -- For finding and fixing the method name leak from FileUtils.

    • Joel VanderWerf -- for finding and fixing a bug in the handling of multiple prerequisites.

    • ๐Ÿ‘ Tilman Sauerbeck -- For some enhancing FileList to support more advanced file globbing.

    • ๐Ÿ‘ Nobu Nakada -- For suggesting plain file name support to rule dependents.

    -- Jim Weirich