Rails project as a template for other projects (off topic)


#1

This is of topic but I have a feeling I might get some useful advice
here -
hope you don’t mind

I’ve created a rails project that I want to use as a basis for other
rails
project. I was wondering if anyone had any tips on workflow for doing
this
sort of thing, especially dealing with updating projects as the base
project
gets improved.

My base project might be of interest to people here, its basically

Vanilla Rails project with added rspec, cucumber, haml, compass,
object_daddy, webrat and restful-authentication (RA). Then the RA
stories
have been replaced with features which are specifically designed to be
simple enough that I can understand them with simple steps as well. The
RA
forms have been hamlized and made to work properly with webrat (have
proper
labels) and finally a couple of tweaks have been added so you can login
with
email (optional) and the remember_me stuff works.

I’m using GIT for SCM

Anyhow any ideas ?

Cheers

Andrew


#2

rspec-users mailing list
removed_email_address@domain.invalid
http://rubyforge.org/mailman/listinfo/rspec-users


#3

On Dec 4, 2008, at 1:34 PM, Andrew P. wrote:

Vanilla Rails project with added rspec, cucumber, haml, compass,
Anyhow any ideas ?
Anything like Bort?
http://github.com/fudgestudios/bort/network


#4

On 2008-12-04, at 13:34, Andrew P. wrote:

Vanilla Rails project with added rspec, cucumber, haml, compass,
Anyhow any ideas ?

Cheers

Andrew

Hi Andrew. This doesn’t have to do with one’s workflow, but I highly
recommend taking a look at Authlogic. It’s an incredible
authentication system, and IMO, is much better than restful-
authentication.

As for creating a customised base Rails project, check out Suprails
(http://github.com/listrophy/suprails
) and rg (http://github.com/jeremymcanally/rg/).

Cheers,
Nick


#5

A bit like Bort, but much less stuff in it and much more focused on
features
and being a platform for bdd.

2008/12/4 Jim G. removed_email_address@domain.invalid


#6

On Dec 4, 2008, at 1:34 PM, Andrew P. wrote:

Vanilla Rails project with added rspec, cucumber, haml, compass,
Anyhow any ideas ?
Just keep that base repository, and clone it for a new project.

If you have updates for the base-repository, then commit there. Git
allows you to add and fetch from totally different repositories:

git remote add git@my_remote base-project
git fetch base-project
git merge base-project/master

Scott


#7

Thanks for that, need to work more on my gitfu, will investigate further

Andrew

2008/12/4 Scott T. removed_email_address@domain.invalid


#8

Scott

Working on this, assuming I have a cloned project ‘foo’ from my base
project
base and I’m working on foo. So I implement something new and then think
this should be in base any ideas how to manage this. Was thinking maybe
of
having a base branch which would be the only thing I pushed up to the
base
project. Any thoughts?

Andrew

2008/12/4 Scott T. removed_email_address@domain.invalid


#9

On 2008-12-05, at 01:51, Andrew P. wrote:

Scott

Working on this, assuming I have a cloned project ‘foo’ from my base
project base and I’m working on foo. So I implement something new
and then think this should be in base any ideas how to manage this.
Was thinking maybe of having a base branch which would be the only
thing I pushed up to the base project. Any thoughts?

Andrew

Hi Andrew. I’d use git-format-patch to generate one or more patches
from Project Foo that contain the changes that you want to incorporate
into your base project. Then, it’s simply a matter of applying those
patches to the base project, and sorting out any conflicts.

Cheers,
Nick