You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README 1.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. TWO-HORSE RACE
  2. ==============
  3. Generates a human-readable plain text stream of election results from
  4. JSON input.
  5. Usage
  6. -----
  7. Assuming `twohorserace` is in your $PATH and executable:
  8. Read JSON from a file:
  9. $ twohorserace elections.json
  10. Read JSON from STDIN:
  11. $ cat elections.json | twohorserace --
  12. Installation
  13. ------------
  14. Tested and working with Ruby 3.1.2, which is currently the latest stable
  15. release.
  16. Tested and working with Ruby 2.6.10, which is currently the oldest
  17. version supported by the Ruby project.
  18. Will probably work with earlier versions.
  19. There are no other dependencies.
  20. No gems outside the standard library. No databases are used. No
  21. environment variables.
  22. There isn't a Gemfile. You don't need Bundler.
  23. Example files
  24. -------------
  25. elections.json is an example input file.
  26. elections.txt is an example output file.
  27. These files are for demonstration purposes only. Do not rely on them as
  28. accurate representations of actual election results.
  29. Roadmap
  30. -------
  31. Election summary: seats, votes, candidates per party.
  32. Improve vote/voter share percentages in district views.
  33. Repository
  34. ----------
  35. https://git.adrianshort.org/adrian/two-horse-race
  36. Maintainer
  37. ----------
  38. Adrian Short <adrian@adrianshort.org>