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.

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