選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README 1.2 KiB

2年前
2年前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Repository
  32. ----------
  33. https://git.adrianshort.org/adrian/two-horse-race
  34. Maintainer
  35. ----------
  36. Adrian Short <adrian@adrianshort.org>