This gem will generate modular engines as shown in the book Modular Rails at http://modularity.samurails.com.
Thibault
MIT