Ruby SDK to work with ClearElection data.
Defines several classes:
ClearElection::Election
ClearElection::Ballot
Defines a top-level function to retrieve an Election from a URI:
election = ClearElection.read(uri)
Also includes utilities for testing application code that works with elections:
require 'clear-election-sdk/rspec'
require 'clear-election-sdk/factory'
For now, for more details UTSL.
For now, this repository contains the masters for the schemas. Currently:
schemas/election-0.0.schema.json
schemas/ballot-0.0.schema.json
schemas/api/booth-agent-0.0.schema.json
Add this line to your application's Gemfile:
gem 'clear-election-sdk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install clear_election
- 0.1.2 Bug fix: schema expansion
- 0.1.1 Dependency fix
- 0.1.0 Results, json roundtrip
- 0.0.1 Initial release
- Fork it ( https://github.com/[my-github-username]/clear_election/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request