The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Hoe 1.5: Rakefile before and after

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.
Hoe 1.5: Rakefile before and after Posted: Jan 31, 2008 3:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: Hoe 1.5: Rakefile before and after
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

With hoe 1.5, I finally got some changes in that I've wanted for a long long time... No more tweaking my Rakefile back and forth in order to adjust for changes in my history or readme files! Hoe now knows how to read the default structure of the files. As such, it automatically fills in description, summary, url, and changes for you (unless you override it). This takes my Rakefile from this:

require 'rubygems'
require 'hoe'
require './lib/zentest.rb'

Hoe.new("ZenTest", ZenTest::VERSION) do |p|
  p.author = ['Ryan Davis', 'Eric Hodel']

  changes = p.paragraphs_of("History.txt", 0..4).join("\n\n")
  urls, summary, *description = p.paragraphs_of("README.txt", 1, 3, 3..8)

  p.url = urls.gsub(/^\* /, '').split(/\n/)
  p.changes = changes
  p.summary = summary
  p.description = description.join("\n\n")
end

to this:

require 'rubygems'
require 'hoe'
require './lib/zentest.rb'

Hoe.new("ZenTest", ZenTest::VERSION) do |zentest|
  zentest.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
  zentest.developer('Eric Hodel', 'drbrain@segment7.net')
end

Pretty, eh?

Read: Hoe 1.5: Rakefile before and after

Topic: Logic+Emotion: Innovation + The "Un-Agency" Previous Topic   Next Topic Topic: RailsConf, Arc, Apple and other Zenbits

Sponsored Links



Google
  Web Artima.com   

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