public
Description:
Homepage:
Clone URL: git://github.com/djwonk/voting.git
djwonk (author)
Sat Jun 06 16:15:20 -0700 2009
commit  d35fb405df079168127bc6fd210b7e34d5ca0546
tree    3577e2565d64550b3ebd11b70283d50bb03699b6
parent  2ff9d3614a665805c166b317b5aa42d6156aa701 parent  3642c2257ff88fafccc0557595fd8937d2e1e585
voting /
name age message
file .gitignore Wed Jun 03 07:20:13 -0700 2009 move to a modular Sinatra app use vegas to launch [zapnap]
file MIT-LICENSE Tue Jun 02 13:38:20 -0700 2009 initial import [zapnap]
file README.rdoc Wed Jun 03 10:51:41 -0700 2009 text change [zapnap]
file Rakefile Wed Jun 03 11:49:14 -0700 2009 rspec hpricot matchers [zapnap]
directory bin/ Wed Jun 03 07:20:13 -0700 2009 move to a modular Sinatra app use vegas to launch [zapnap]
file config.ru Thu Jun 04 10:28:12 -0700 2009 fix logging [zapnap]
directory lib/ Sat Jun 06 12:56:24 -0700 2009 corrected typo: canceled -> cancelled [djwonk]
directory notes/ Sat Jun 06 13:00:54 -0700 2009 Added API notes from earlier codebase [djwonk]
directory public/ Tue Jun 02 13:38:20 -0700 2009 initial import [zapnap]
directory spec/ Sat Jun 06 12:56:24 -0700 2009 corrected typo: canceled -> cancelled [djwonk]
directory views/ Wed Jun 03 07:20:13 -0700 2009 move to a modular Sinatra app use vegas to launch [zapnap]
README.rdoc

Open Vote Web Service

Work in progress.

Configuration

Dependencies and all configuration is done in environment.rb. Your database is also set up here. DataMapper will use sqlite3 by default. Tests use the sqlite3-memory adapter (no configuration needed).

If you’re missing some of the required gems, you can install them with rake gems:install

Testing

Add your specs in spec; just require spec_helper.rb to pre-configure the test environment. A number of samples are provided (including a sample model, which can be removed). To run the specs:

  rake spec

Getting Started

  rake db:migrate
  ruby bin/run.rb