No commit activity in last 3 years
No release in over 3 years
Ruby SDK for working with ClearElection data. Also includes factory and rspec helpers for testing apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

ClearElection SDK (ruby)

Gem Version Build Status Coverage Status

Ruby SDK to work with ClearElection data.

Overview

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.

Schemas

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

Installation

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

History

  • 0.1.2 Bug fix: schema expansion
  • 0.1.1 Dependency fix
  • 0.1.0 Results, json roundtrip
  • 0.0.1 Initial release

Contributing

  1. Fork it ( https://github.com/[my-github-username]/clear_election/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request