Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README 1.1 KiB

2 år sedan
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 results.json
  9. Read JSON from STDIN:
  10. $ cat results.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 or 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. Write a man page.
  31. Repository
  32. ----------
  33. https://git.adrianshort.org/adrian/twohorserace
  34. Maintainer
  35. ----------
  36. Adrian Short <adrian@adrianshort.org>