]> projects.mako.cc - rubyvote/commit
>>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<<
authorBenjamin Mako Hill <mako@atdot.cc>
Sat, 18 Aug 2007 00:00:04 +0000 (00:00 +0000)
committerBenjamin Mako Hill <mako@atdot.cc>
Sat, 18 Aug 2007 00:00:04 +0000 (00:00 +0000)
commitaedf5193ed2a020c02fac7932198eb556bfb4b0a
treeca8cf89f89f17c1350e7214a3f369ce233c2c2b5
parentccf19d036af800688260e8c2d87d3ef0dbf14aae
>>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<<

Refactored the commits added by Joe Slag to return the full lists of
candidates.

In Joe's code, the full list of candidates were associated with the vote
objects which didn't make sense since they are really part of results.
I've gone ahead and reimplented this. It does mean that the API has
changed. In the old version, you would get a ranked list of candidates
by using:

  vote_object.results

You now get it by doing:

  result_object.ranked_candidates
  vote_object.result.ranked_candidates

>>>>>>>>>>>>>> This breaks the API. <<<<<<<<<<<<<<<<<<<<<<<<<<

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@46 1440c7f4-e209-0410-9a04-881b5eb134a8
lib/rubyvote/condorcet.rb
lib/rubyvote/election.rb

Benjamin Mako Hill || Want to submit a patch?