11 April 2008

The process of posting the completed source code REST based authentication in RoR on google code (google code may be replacing sourceforge.net one day..) took some tinkering on the Mac. 

Here are some gotcha's / tutorial-light:
1. Download svnx (alternate subversion client list)
2. Sign up for googlecode
3. Accept the new site's certificate through a terminal window (#svn list 
- you have to do this because the certificate isn't considered valid due to the certificate non-explicit naming of the https server
4. follow the steps on wikihow for a good how-to use svn on the mac
- deviate step 4 to the new google code's repository address
5. check in an RoR project by either using this shell script (file | save as, chmod +x, etc) as you initially create a RoR project (it is designed for starting a new RoR project).
6. if you have a RoR project already, clean up the check in using the same methods detailed in the shell script, but executing them manually so as to skip the rails project generation step:

  • svn remove log/*
  • svn commit -m 'removing all log files from subversion'
  • svn propset svn:ignore "*.log" log/
  • svn update log/
  • svn commit -m 'Ignoring all files in /log/ ending in .log'
  • svn propset svn:ignore "*" tmp/sessions tmp/cache tmp/sockets
  • svn commit -m "Ignoring all files in /tmp/"
  • svn update tmp/
  • svn commit -m 'Ignore the whole tmp/ directory, might not work on subdirectories?'
  • svn move config/database.yml config/database.example
  • svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'
  • svn propset svn:ignore "database.yml" config/
  • svn update config/
  • svn commit -m 'Ignoring database.yml'

  • 7. check it all back out -- e.g. 
    • svn checkout https://restfulauthentication-ror2.googlecode.com/svn/trunk/ /Users/pjacob/restfulAuth/

    8. after further edits / updates to your source, use svnx, View | Working Copies.  Add one named what-have-you, use the local path to your RoR app (e.g. /Users/pjacob/restfulAuth), and your username and password for the google code repository.  Double click on the new item in the list of working copies, and the changes should be listed. Click commit to commit changes, or perform any of the other normal SCM activities.

    All the source code is available from the google code host site under my name or by project name: restfulauthentication-ror2

    The entire REST based authentication plugin and all is available through the rubyonrails' wiki

    No comments:

    Post a Comment

    firstly, thanks in advance for your comment - I don't get very many, so I'm sure to follow up if you leave me a way - secondly, come again.