Andrew Premdas
2008-Dec-04 18:34 UTC
[rspec-users] Rails project as a template for other projects (off topic)
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/852e1e1a/attachment.html>
Caius Durling
2008-Dec-04 18:46 UTC
[rspec-users] Rails project as a template for other projects (off topic)
On 4 Dec 2008, at 18:34, Andrew Premdas wrote:> 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 ?Create a github account and bang it on there. C --- Caius Durling caius at caius.name +44 (0) 7960 268 100 http://caius.name/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/02d8314d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/02d8314d/attachment.bin>
Jim Gay
2008-Dec-04 18:50 UTC
[rspec-users] Rails project as a template for other projects (off topic)
On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote:> 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 ?Anything like Bort? http://github.com/fudgestudios/bort/network
Nick Hoffman
2008-Dec-04 18:59 UTC
[rspec-users] Rails project as a template for other projects (off topic)
On 2008-12-04, at 13:34, Andrew Premdas wrote:> 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 > > AndrewHi 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
Scott Taylor
2008-Dec-04 19:14 UTC
[rspec-users] Rails project as a template for other projects (off topic)
On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote:> 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 ?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 at my_remote base-project git fetch base-project git merge base-project/master Scott
Andrew Premdas
2008-Dec-04 19:25 UTC
[rspec-users] Rails project as a template for other projects (off topic)
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 Gay <jim at saturnflyer.com>> > On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote: > > 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 ? >> > > Anything like Bort? > http://github.com/fudgestudios/bort/network > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/92fe1c90/attachment.html>
Andrew Premdas
2008-Dec-04 19:26 UTC
[rspec-users] Rails project as a template for other projects (off topic)
Thanks for that, need to work more on my gitfu, will investigate further Andrew 2008/12/4 Scott Taylor <mailing_lists at railsnewbie.com>> > On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote: > > 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 ? >> > > 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 at my_remote base-project > git fetch base-project > git merge base-project/master > > Scott > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081204/a4f3c019/attachment.html>
Andrew Premdas
2008-Dec-05 06:51 UTC
[rspec-users] Rails project as a template for other projects (off topic)
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 Taylor <mailing_lists at railsnewbie.com>> > On Dec 4, 2008, at 1:34 PM, Andrew Premdas wrote: > > 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 ? >> > > 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 at my_remote base-project > git fetch base-project > git merge base-project/master > > Scott > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081205/e46e63a9/attachment.html>
Nick Hoffman
2008-Dec-05 16:47 UTC
[rspec-users] Rails project as a template for other projects (off topic)
On 2008-12-05, at 01:51, Andrew Premdas 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? > > AndrewHi 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