public
Description: Source code for crantastic.org: a community site for R
Homepage: http://crantastic.org
Clone URL: git://github.com/hadley/crantastic.git
Click here to lend your support to: crantastic and make a donation at www.pledgie.com !
name age message
file .braids Thu Jun 18 16:13:48 -0700 2009 Braid: Updated mirror 'vendor/plugins/no_fuzz' ... [Chrononaut]
file .gems Fri Jun 26 13:50:08 -0700 2009 Utilizing a new feature in the timeline_fu 0.3.... [Chrononaut]
file .gitignore Loading commit data...
file README.markdown
file Rakefile
directory app/
directory config/ Fri Jul 03 23:43:30 -0700 2009 Route fix [Chrononaut]
directory db/ Fri Jul 03 03:04:29 -0700 2009 Added publicized_or_packaged field to Version [Chrononaut]
directory doc/
directory lib/
directory log/ Fri Mar 27 06:01:08 -0700 2009 Packages Table View, Some other Heading and Sty... [intinno]
directory public/ Sat Jul 04 02:35:59 -0700 2009 Changed reset import to point to blueprint/rese... [Chrononaut]
directory script/
directory spec/ Sat Jul 04 00:09:31 -0700 2009 Added spec for SessionsController [Chrononaut]
directory vendor/

Crantastic

The project is described here. Some other links of interests are:

The rest of this document contains various pieces of information relevant for developers/contributors.

Coding conventions

The YARD meta-tag formatting format is usued for documentation, whenever it feels necessary.

Development

Copy config/database.sample.yml to config/database.yml. It defaults to SQLite, so no additional configuration of this file is necessary unless you want to use PostgreSQL (which the site runs on in production).

Run rake gems:install to install gem dependencies for the main site. Do RAILS_ENV=test rake gems:install to install the dependencies for the testing environment (required for running rake spec).

Using autospec while doing changes to the source code is highly recommended, as this is very helpful for catching accidental regressions.

Note that you should only add/edit stylesheets in the app/stylesheets folder. public/stylesheets should only contain compiled Sass styhesleets.

Working with Heroku

Setting up the Heroku remote

git remote add heroku git@heroku.com:crantastic.git

Confirm that it's working by running heroku info.

Pulling the latest database from crantastic.org

heroku db:pull

This will overwrite db/development.sqlite3.

Pushing your work to Heroku

git push heroku master

Personally I use an alias so I don't have to type as much:

alias gph='git push heroku master'

Updating packages from CRAN

Run rake crantastic:cron or rake crantastic:update_all_packages.