The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Farmer Ted uses Hoe to beat Rake (and RubyGems)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ryan Davis

Posts: 651
Nickname: zenspider
Registered: Oct, 2004

Ryan Davis is a ruby nerd.
Farmer Ted uses Hoe to beat Rake (and RubyGems) Posted: Sep 20, 2006 4:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: Farmer Ted uses Hoe to beat Rake (and RubyGems)
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby

Advertisement
Farmer Ted came to me the other day with a problem. He has about 10 different packages he wants to work on and periodically release, but sometimes it seems to him that maintaining a threshing machine is easier than it is maintaining all his Rakefiles and gemspecs. Most of his rakefiles are duplicated in every project yet differ slightly everywhere. His deployment rules that enhanced in one place and go stale in another. So I showed him another tool to help: Hoe!

Hoe is a tool that covers all the usual stuff you have in a project: documentation, testing, version compatibility (through multiruby), packaging, deployment, cleanup, and more. In fact, this:

require 'rubygems'
require 'hoe'

Hoe.new("thingy", '1.0.0') do |p|
  p.rubyforge_name = "myproject"
  p.summary = "I'm so happy that I don't have to write this stuff anymore."
end
gets you all of this for free:
% rake -T
rake audit            # Run ZenTest against the package
rake clean            # Clean up all the extras
rake clobber_docs     # Remove rdoc products
rake clobber_package  # Remove package products
rake default          # Run the default tasks
rake deploy           # Deploy the package to rubyforge.
rake docs             # Build the docs HTML Files
rake install          # Install the package. Uses PREFIX and RUBYLIB
rake multi            # Run the test suite using multiruby
rake package          # Build all the packages
rake redocs           # Force a rebuild of the RDOC files
rake repackage        # Force a rebuild of the package files
rake test             # Run the test suite. Use FILTER to add to the command line.
rake uninstall        # Uninstall the package.
rake upload           # Upload RDoc to RubyForge

Farmer Ted tried it out and he's much much happier now.

Hoe is real young right now. Rough around the edges. Undocumented. Etc. You've been warned. That said, please try it out and let me know what you think.

sudo gem install hoe

Read: Farmer Ted uses Hoe to beat Rake (and RubyGems)

Topic: Tagging Your Test Cases Previous Topic   Next Topic Topic: RailsConf Europe on index cards, part II

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use