Merge branch 'live' of ssh://ephesus.xvm.mit.edu/org/selectricity/selectricity-live Conflicts: README app/controllers/voter_controller.rb app/views/layouts/_footer.rhtml
fix bug that allowed votes with more rankings than candidates to be recorded
fixed licensing information for selectricity
Major update of Selectricity to work with Rails 2.2.2 from 1.2! This included a large number of changes: - removal of randarray.rb (features are not in the new version or ruby) - removal of sparklines plugin and replacement with gemified version of sparklines and sparklines_generator - addition of act_as_list plugin which is no longer in rails - disabling of all API code because action_web_service is deprecated in favor of active_resource (!!!!) - large number of miscellaneous updates to do the new rails 2ish I've commented out the new features in the views (i.e., embedded) as this is going to replace the LIVE version of Selectricity. We should then test this well, slowly enable the new features, and get the tests i old_api_code back work with an active_resource interface.
added first full working version of embeddable elections - added several new fields to the database to support unauthenticated, embeddable, and early result visible full elections - modified full election create to allow for proper options and to display the full election code - added new layouts, views, css, and images for embeddable elections - modified full elections to work with the new form of images in the last commit - fixed several bugs related to vote recording and timestamp,s
input license information so that the work can be under the AGPLv3
added support for results for full elections this included a full details page, a pop-up preferences tables, some general reorganization of things due to new reusing, and several typo and bug fixing
Both quickvotes and full-size elections use the same partial in views/voter ('sortable_vote') for the ajax voting. One gimmick seems to be that the button is appearing above the actual list of candidates which is kinda odd, but doesn't seem to be affecting wah'ts being committed in anyway. Also made some modifications to the graphs and the graphs to help with how their displayed in the new theme, hopefully it looks a litle better. Don't quite know how to improve the results page further for quickvotes... will try keeping them uncomputed until people ask for them?
Created a partial to DRY the aja voting method. Modified the voter class to have both a FullVoter and QuickVoter `types`. Also changed the index and review methods so that they are more error resistant in the face of ajax voting. Application.rb now includes the sort_candidates method from quickvote_controller so all election types can use it. Also updated the election results pages so that they don't throw errors any more. (Show and Hide details)
Changed properties to remove unecessary exectables.
Modified the methods in graphs controller so they would work for Selectricity, but can't get them to successfully display yet. It seems that the 'url_for' helper might not be able to handle a :controller an argument. It doesn't throw an error, just displays nothing. I also removed various deprecated methods and replaced them with their updated counterparts in site_controller, and in some of the views. In addition I modified the confirm method in the QuickVote controller to save the time of the vote. I also changed what the voter.ip was logging because it wasn't working. Currently it says request.env["BLAH"] because I'm trying to vote multiple times in the same election for testing (not sure that jsut cahgnign the ip save feature is allowing that) but it will have to be request.env["REMOTE_ADDR"] in the long run. This is on line 108 of the QuickVote controller.
Variety of small changes (mostly to properties) plus a few "in the field" bug fixes.
small number of cosmetic fixes to quickvotes and a minor bugfix that had confused Condorcet and the Schulze Method for QuickVotes
added support for drag and drop preferential quick voting
Made a large number of mostly cosmetic fixes after a detailed run-through of quickvotes. Also added support for tracking IP addresses into the database.
working quickvote support created
Added support for voting in QuickVotes.
Added processing and presentatin of results.
Major changes in this commit over include work over several days but that was never working well enough to end in a commit. These included: * Added a voting interface so that folks can use their magic token to log into the system and vote. * Expanded a variety of the existing models to accomidate the process of voting. * Adjusted the DB to allow for storing different types of votes.
Variety of improvements and additions: * Much improved list screen for elections. * Initial voter-based interface based around tokens. * New uniq_token regenerating library. Left things a little bit unstable including: * uniq_token should be refactored to provide only a class method. * voter list review page is unwritten * rankings are committed to the database but some sort somewhere seems to be botching things.