🕷 software projects

by ryan davis



sitemap

hoe-seattlerb

Hoe plugins common to Seattle.rb projects.

Hoe plugins providing tasks used by seattle.rb including minitest, perforce, and email providing full front-to-back release/annouce automation.

1
2
3
4
5
6
7
8
9
10
require 'rubygems'
require 'hoe'

Hoe.plugin :seattlerb

Hoe.spec 'blah' do
  developer 'Ryan Davis', 'ryand-ruby@zenspider.com'

  email_to << 'blah@mailing_list.com'
end

Using the email plugin:

Once you activate the email plugin you should run:

% rake config_hoe

A new section called email will be created at the bottom of the file. Fill this out as appropriate for your email host. An example gmail config is below:

1
2
3
4
5
6
7
8
email:
  user: user.name
  pass: xxxx
  auth: plain
  port: submission
  to:
  - ruby-talk@ruby-lang.org
  host: smtp.gmail.com

Using the Perforce plugin:

The perforce plugin adds a branch task attached to the prerelease task. As well as branching, it checks the manifest against the actual files and aborts if there is a mismatch.

The file structure it expects is:

  • project_name
    • x.y.z - versioned branch directories
    • dev - the mainline of the project

Since you’re running from rake and rake always backs up to the work directory (presumed to be “dev” in this case) everything is done relative to that location.

Get The Code

If you just want to use hoe-seattlerb, you can install it via RubyGems:
gem install hoe-seattlerb
Fork me on GitHub If you want to hack on hoe-seattlerb, clone it from GitHub:
git clone git://github.com/seattlerb/hoe-seattlerb

Latest Activity