UPDATE ZenTest

This repos uses a lot of old dependencies. This can't be good : there
have been 14 new rails versions since the one used here.

While this will need to be migrated to rails-4 in a not so far future,
there is something that can't wait : updating ZenTest.

Trying to install dependencies right now using ruby-2.0 with `bundle
install` trigger this error :

    Installing ZenTest (4.7.0)
    Gem::InstallError: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.

That's because ruby-2.0 uses rubygems-2.0, and ZenTest enforce using 1.8
branch. Updating ZenTest solves this without breaking specs.

I'm not even sure why ZenTest has been added to bundle, actually. We
used that back in time for autotest, but it has now been superseed by
guard, which is also included in bundle.

As ZenTest has some other features than autotest, I won't remove it
right now and wait to be more aclimated to codebase.
Merge pull request #5 from oelmekki/update_zentest

UPDATE ZenTest
REFACTOR switch to postgres

Database has been changed to use postgres rather than sqlite.

Database credentials has to be provided as environment variables :

* `PROPILE_DEV_DB_NAME`
* `PROPILE_DEV_DB_USER`
* `PROPILE_DEV_DB_PASS`
* `PROPILE_TEST_DB_NAME`
* `PROPILE_TEST_DB_USER`
* `PROPILE_TEST_DB_PASS`
* `PROPILE_PROD_DB_NAME`
* `PROPILE_PROD_DB_USER`
* `PROPILE_PROD_DB_PASS`

Only the first six are needed for a typical development box.

Using environment variables is a good thing because :

* each developer may use configuration she wants on her box
* credentials are not committed in repos (especially important here
  since it's a public repos)

Instructions has been added in readme to explain installation.

Migration was quite straightforward, with those few problems :

* database reset was ensured by loading schemas, which doesn't work with
  postgres
* id were hardcoded in specs, counting of schemas load to reset id
  counter
* an UPPER function was used against a datetime field (created_at),
  which does not work in postgres without a type cast.

Please not that database configuration here are for local use, because
(unless it has changed since last year) heroku override
config/database.yml with its own configuration (but this should have no
negative impact).

Close #1

Details :

* ADD pg gem
* CHANGE database configuration
* ADD installation instructions in readme
* FIX UPPER typecast for postgres (and fix sql injection btw)
* REFACTOR remove attempt to recreate db from spec_helper (thefuck?)
* ADD database_cleaner
* FIX hardcoded id in in programs controller spec
* FIX implicit id in program entries controller spec
Merge pull request #8 from oelmekki/postgres

REFACTOR switch to postgres + misc. fix
ADD seed.rb

`data/development.sqlite.backup` has been converted as seed ruby file.

A few things to note about that :

* backup database was outdated and missing a lot of migrations
* data contained was not valid anymore

Data was fixed to fullfill validations. As it was mostly fk pseudo
constraints, it can be considered quite safe, even if we don't get the
whole codebase for now.

Seeding database is fully destructive, wipping all data from database.
This ensures we can force records id. As such, it should only be run as
a setup step (and well, it's all it's about, after all).

Fix #3
Merge pull request #9 from oelmekki/seed

ADD seed.rb