]> projects.mako.cc - rubyvote/log
rubyvote
17 years agonew file
Joe Slag [Wed, 25 Apr 2007 01:15:06 +0000 (01:15 +0000)]
new file

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@26 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoo Fix PureCondorcetVote to return all results, not just the winner
Joe Slag [Sun, 22 Apr 2007 15:45:48 +0000 (15:45 +0000)]
o Fix PureCondorcetVote to return all results, not just the winner
o Allow PureCondorcetVote to return ties, rather than loop infinitely

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@25 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agobig speed up
Joe Slag [Mon, 9 Apr 2007 22:14:59 +0000 (22:14 +0000)]
big speed up

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@24 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agominor optimization
Joe Slag [Mon, 9 Apr 2007 18:36:35 +0000 (18:36 +0000)]
minor optimization

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@23 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agosimplify access to full results - now available as voteobject.results,
Joe Slag [Mon, 9 Apr 2007 18:33:54 +0000 (18:33 +0000)]
simplify access to full results - now available as voteobject.results,
instead of voteobject.result.get_full_results.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@22 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years ago#filter_out and PureCondorcet weren't getting along well for sparse elections
Joe Slag [Tue, 20 Mar 2007 17:14:51 +0000 (17:14 +0000)]
#filter_out and PureCondorcet weren't getting along well for sparse elections

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@21 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoo Test that elections with a single vote return the expected result.
Joe Slag [Tue, 20 Mar 2007 15:39:48 +0000 (15:39 +0000)]
o Test that elections with a single vote return the expected result.
o Caught a bug for elections whose votes aren't strings of length 1.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@20 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoMissed a now unnecessary assignment to @candidates in #tally_votes
Joe Slag [Mon, 19 Mar 2007 17:52:37 +0000 (17:52 +0000)]
Missed a now unnecessary assignment to @candidates in #tally_votes

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@19 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoCondorcet methods determine all candidates before tallying, in case of
Joe Slag [Mon, 19 Mar 2007 17:38:50 +0000 (17:38 +0000)]
Condorcet methods determine all candidates before tallying, in case of
incomplete votes

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@18 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoIf a vote doesn't contain all possible candidates, assign all
Joe Slag [Mon, 19 Mar 2007 17:09:56 +0000 (17:09 +0000)]
If a vote doesn't contain all possible candidates, assign all
unspecified candidates the same position below ranked candidates

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@17 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoAdded get_full_results method that returns a ranked list of candidates.
Joe Slag [Tue, 13 Mar 2007 16:11:03 +0000 (16:11 +0000)]
Added get_full_results method that returns a ranked list of candidates.
At this time, only Condorcet votes collect the appropriate information.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@16 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoo Verify that all tests in test.rb are present in test/*_test.rb files,
Joe Slag [Tue, 13 Mar 2007 13:35:38 +0000 (13:35 +0000)]
o Verify that all tests in test.rb are present in test/*_test.rb files,
  remove test.rb

o Convert tests to run silent when successful, remove
  test/election_test_helper.rb

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@15 1440c7f4-e209-0410-9a04-881b5eb134a8

17 years agoMerged in changes that added unit test support by Joe Slag. Thanks!
Benjamin Mako Hill [Mon, 12 Mar 2007 20:17:25 +0000 (20:17 +0000)]
Merged in changes that added unit test support by Joe Slag. Thanks!

We now have two unit test setups in here. We should deal with this one
way or another. I'd like to keep around *a* test.rb file but the
rakefile is a good method as well.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@14 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoRemoved space to avoid warning
Alexis Darrasse [Wed, 5 Apr 2006 20:40:42 +0000 (20:40 +0000)]
Removed space to avoid warning

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@13 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoAdded tie-breaking rules and multicandidate elimination of weak candidates
Alexis Darrasse [Sat, 11 Mar 2006 21:30:36 +0000 (21:30 +0000)]
Added tie-breaking rules and multicandidate elimination of weak candidates
before the first round in IRV.
Renamed runoff to irv.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@12 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoAdded list of changes submitted by Jeff Rose <jeff@rosejn.net>.
Benjamin Mako Hill [Fri, 10 Mar 2006 17:04:19 +0000 (17:04 +0000)]
Added list of changes submitted by Jeff Rose <jeff@rosejn.net>.

This includes:

 * Rake based testing and gemmification.
 * Range based voting (untested).
 * A new TODO file.
 * Moving files around to have them RV work better as a library.

Thanks Jeff!

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@11 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoUpdated the changelog and the README version for a new version.
Benjamin Mako Hill [Fri, 3 Mar 2006 02:46:59 +0000 (02:46 +0000)]
Updated the changelog and the README version for a new version.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@7 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoAdded support for instant run-off voting with a patch from
Benjamin Mako Hill [Fri, 3 Mar 2006 01:44:54 +0000 (01:44 +0000)]
Added support for instant run-off voting with a patch from
Alexis Darrasse <alexis@ortsa.com>.

Thanks Alexis!

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@6 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoRenamed readme file so that it reflects the type (reStructured Text).
Benjamin Mako Hill [Sun, 29 Jan 2006 17:41:41 +0000 (17:41 +0000)]
Renamed readme file so that it reflects the type (reStructured Text).

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@5 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoFixed broken link.
Benjamin Mako Hill [Sun, 29 Jan 2006 17:41:07 +0000 (17:41 +0000)]
Fixed broken link.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@4 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoAdded a changelog.
Benjamin Mako Hill [Fri, 27 Jan 2006 19:09:49 +0000 (19:09 +0000)]
Added a changelog.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@3 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoUpdated README file so that it can work as a homepage.
Benjamin Mako Hill [Fri, 27 Jan 2006 19:04:45 +0000 (19:04 +0000)]
Updated README file so that it can work as a homepage.

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@2 1440c7f4-e209-0410-9a04-881b5eb134a8

18 years agoInitial import into SVN of rubyvote library
Benjamin Mako Hill [Fri, 27 Jan 2006 18:21:52 +0000 (18:21 +0000)]
Initial import into SVN of rubyvote library

git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@1 1440c7f4-e209-0410-9a04-881b5eb134a8

Benjamin Mako Hill || Want to submit a patch?