public
Description: Example app written from Tom's tutorial.
Clone URL: git://github.com/bronson/agility.git
name age message
file .gitignore Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
file .gitmodules Wed Apr 23 15:34:01 -0700 2008 Add Hobo submodule at 0.7.5 [Scott Bronson]
file README Wed Apr 23 15:35:14 -0700 2008 Add Hobostarter README [Scott Bronson]
file Rakefile Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
directory app/ Wed Apr 23 22:44:35 -0700 2008 Some nice changes found by diffing against Tom'... [Scott Bronson]
directory config/ Wed Apr 23 15:35:14 -0700 2008 Turn off color logging [Scott Bronson]
directory db/ Wed Apr 23 19:31:42 -0700 2008 Part 5d: Make tasks reorderable. [Scott Bronson]
directory doc/ Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
directory log/ Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
directory public/ Wed Apr 23 15:35:14 -0700 2008 Silence 'No route matches /stylesheets/applicat... [Scott Bronson]
directory script/ Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
directory test/ Wed Apr 23 18:54:31 -0700 2008 Part 5b: make story status configurable. [Scott Bronson]
directory tmp/ Tue Apr 22 13:12:54 -0700 2008 Add generated Rails app [Scott Bronson]
directory vendor/ Wed Apr 23 19:25:51 -0700 2008 script/plugin install acts_as_list [Scott Bronson]
README
== Welcome to Hobostarter

Starting a Hobo project and following upstream changes has never
been so easy.


== Getting Started

There is no need to install Rails or Hobo gems.  Just make sure
you have Ruby and Git installed.

If you have a github account, fork Hobostarter and clone that here:

  1. $ git clone git://github.com/bronson/hobostarter.git MYAPP
  2. $ cd MYAPP
  3. $ git submodule init
  4. $ git submodule update

That's it.  Now start hacking!


=== Pushing Your Changes

If you forked with github, or if you've already set up the origin,
'git push' will work as usual.

However, if your repo considers Hobostarter to be the origin, you
need to reset it to point at yours:

  1. $ git config remote.origin.url MYREMOTEURL
  2. $ git push origin master


== Submodule Versions

To see what version each module is set to:

  1. $ git submodule status

To use a different version (for instance, if Hobostarter ships
with v0.7.3.99, but you you want to use 0.7.3 in your app):

  1. $ cd vendor/plugins/hobo
  2. $ git checkout v0.7.3
    2.1 $ git fetch --tags  # optional: fetch all upstream tags
    2.2 $ git tag -l    # and show them

Now your app is using 0.7.3 locally.  If you want to push this
change so that everybody will use 0.7.3, you need to commit it:

  3. $ cd ../../..
  4. $ git add vendor/plugins/hobo

When others pull, they must call 'git submodule update'.


== Pulling Upstream Changes

Submodules work like any other git repo.  Just cd vendor/plugins/hobo
and git fetch as usual.

TODO: say more.


== Modifying Submodules

Always push commits from submodules before pushing commits from the
superproject.  Otherwise, if someone clones the superproject, git
will complain that it can't check out the proper version for the
subproject because, of course, you haven't pushed it yet!

TODO: say more.


== Changing the User Name

Hobostarter ships with a user model already created because is what the
vast majority of applications want.  However, if your users are called
something different, say admins, you need to revert Hobostarter's commit
and supply your own.

  1. $ git revert ":/script/generate hobo_user_model user"
  2. $ script/generate hobo_user_model admin
  3. $ script/generate hobo_user_controller admin

And commit your changes.


== Author

If you have any questions: bronson on irc.freenode.net #hobo
or brons_hobostarter@rinspin.com