Milk-it Workflow Rails Plugin

Workflow is a plugin that brings some rake tasks commonly used at Milk-it Software House .

How to install

It's quite simple to install, in your rails project root type:

./script/plugin install git://github.com/milk-it/workflow.git

We highly recommend the use of "-x" flag. So then you will be kept up to date with our modifications.

Note: To use the -x flag your project must be in a Subversion working copy!

Tasks documentation

Subversion Tasks

svn:add

Track and add files that were not added to the Subversion repository. Example:

rake svn:add

svn:changes

Display the changes SINCE a revision. Example:

$ rake svn:changes SINCE=20
(in /home/chjunior/workspace/pixrum)
/trunk/Capfile
/trunk/app/controllers/application.rb
/trunk/app/controllers/locations_controller.rb
D /trunk/public/javascripts/controls.js
D /trunk/public/javascripts/dragdrop.js
D /trunk/public/javascripts/effects.js
D /trunk/public/javascripts/prototype.js

The files shown above without a "D" were added or modified. Files with a "D" were deleted.

svn:commit (or svn:ci)

Commit the project if all tests pass, also run the svn:add task. At the end, your default editor will be opened, so you will be able to type your commit description.

svn:prepare

Prepare a Rails project to Subversion by ignoring some files, changing database.yml to database.example and other things. Example:

rake svn:prepare

Note: Your project must already be a working copy!

Coverage (rCov) tasks

These tasks depends on rcov gem !

test:coverage

Coverage on unit, functional and integration tests. But different from rails_rcov plugin, this task outputs the general result instead of just the functional coverage.

rake test:coverage

test:functionals:coverage

Coverage on functional tests.

rake test:functionals:coverage

test:integrations:coverage

Coverage on integration tests.

rake test:integrations:coverage

test:units:coverage

Coverage on unit tests.

rake test:units:coverage

Also available in: HTML TXT