]>
projects.mako.cc - rubyvote/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Justin Sharps [Wed, 15 Aug 2007 22:12:45 +0000 (22:12 +0000)]
Added matrix to condorcet to draw a table of winners vs losers. Also added "points" attr_readers and instance variables to BordaResults and PluralityResults so that they will be availabel directly from the result objects.
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@38
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Wed, 15 Aug 2007 20:27:12 +0000 (20:27 +0000)]
Work around CloneProofSSD returning [nil] rather than [] for empty vote
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@37
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Wed, 15 Aug 2007 20:17:05 +0000 (20:17 +0000)]
Fix problem with a [nil] result being taken as having a winner; add testcases
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@36
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Wed, 15 Aug 2007 19:53:05 +0000 (19:53 +0000)]
Add similar hackish "fix" for IRVL deadlocking on empty vote
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@35
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Wed, 15 Aug 2007 19:50:14 +0000 (19:50 +0000)]
Add testcases for calling results to empty votes.
TODO: IRV Logic has same bug
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@34
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Wed, 15 Aug 2007 19:38:02 +0000 (19:38 +0000)]
Add somewhat hackish fix for PureCondorcetVote.new([]).result deadlocking
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@33
1440c7f4 -e209-0410-9a04-
881b5eb134a8
Justin Sharps [Tue, 14 Aug 2007 23:53:38 +0000 (23:53 +0000)]
Fixed positional test-case to test for correct winner, not most recent winner.
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@32
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Tue, 14 Aug 2007 23:49:20 +0000 (23:49 +0000)]
* Entire election aborts with InvalidVoteError when an invalid vote object is passed in.
* Add testcase for checking InvalidVoteError is properly raised
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@31
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Tue, 14 Aug 2007 23:31:48 +0000 (23:31 +0000)]
Add testcase for non-string plurality vote candidates
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@30
1440c7f4 -e209-0410-9a04-
881b5eb134a8
John Dong [Tue, 14 Aug 2007 23:29:48 +0000 (23:29 +0000)]
Allow PluralityVote to accept non-string arguments. (I couldn't find any reason why that wasn't the case to begin with)
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@29
1440c7f4 -e209-0410-9a04-
881b5eb134a8
Benjamin Mako Hill [Tue, 14 Aug 2007 18:40:58 +0000 (18:40 +0000)]
Fixed bug in Borda that was counting the votes incorrect very
frequently. Thanks Justin Sharps!
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@28
1440c7f4 -e209-0410-9a04-
881b5eb134a8
Joe Slag [Fri, 4 May 2007 20:44:48 +0000 (20:44 +0000)]
Condorcet votes can now properly handle votes expressing equivalency
between candidates. Viz. [1, [2, 3], 4] indicates that options 2 and 3
are equally preferred, both coming after 1 and before 4.
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@27
1440c7f4 -e209-0410-9a04-
881b5eb134a8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?