[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Rant 0.5.2

Stefan Lang

12/12/2005 7:13:00 PM

Rant is a flexible build tool written entirely in Ruby,
similar to Rake.

== What's new in this release?

* Gems created with Ruby 1.8.3 won't work with other
Ruby versions (because of a YAML bug). This no longer
affects gems created with Rant's RubyPackage task.
Documentation:
http://make.rubyforge.org/files/doc/rubyproject...

* Rework of Rant's FileList class. You can use it as "normal"
Ruby library now. Below is an example.
Documentation:
http://make.rubyforge.org/files/doc/filelist...

For more details read http://make.rubyforge.org/files...

== Installing Rant

You can install Rant as a RubyGem:

    % gem install --remote rant

or download the package from
RubyForge(http://rubyforge.org/frs/?gr...)
and install with install.rb:

    % ruby install.rb

== Rant::FileList example

You can use Rant's FileList class as library in your Ruby app/library.
Example usage:

# The next two statements are required if Rant was
# installed as a RubyGem.
#require "rubygems"
#require_gem "rant"

    require "rant/filelist"

    # Iterate over all files in the current directory and its
    # subdirectories, skipping backup files (filenames ending
    # in ~ or .bak).
   
    Rant::FileList.glob_all "**/*" do |fl|
        fl.exclude "*~", "*.bak"
        fl.files.each { |filename|
            # do something with the file "filename"
        }
    end

== Resources

Homepage:: http://make....
Rubyforge page:: http://rubyforge.org/proj...
Mailing list:: http://rubyforge.org/mailman/listinfo...
Repository:: http://developer.berlios.de/svn/?gro...
Rake/Rant comparison::
  http://make.rubyforge.org/files/doc/rant_vs_rake...

Naming suggestions, feature requests for further Rant development,
etc. are welcome!

--
Stefan