Here is an updated version of the gem „Sprichwoerter”:
https://rubygems.org/gems/Sprichwoerter
Alternatively:
Code:
~$ gem install Sprichwoerter
I had not been able to communicate to rubygems.org for a while, but something has changed between June and now, and my account appears to work.
This release uses an option-parser for the first time.
Adding original proverbs is now done interactively, a user is prompted for each of the details, i.e. language, singular or plural, beginning and ending of the proverb. You can thus add English proverbs to the list of English proverbs and German proverbs to the list of German proverbs irrespective of the way that you call the program (either “proverbs” or „Sprichwoerter”). Just use the parameter --add (or --neu in German locale).
Apart from that, the randomness of generated “proverbs” is improved. It should be very rare now that the same phrase is generated twice in a row.
Here is the usage-message:
Code:
user@machine:~$ export LANG=en_EN.UTF-8
user@machine:~$ proverbs -h
Usage: /usr/local/bin/proverbs <options>
Specific options:
-a, --add Add real proverb to the base
-f, --favorites Show favorites
-q, --qualify Qualify proverbs
-c, --color=COLOR Use color in program-output (one of red, green, yellow, purple, cyan, blue, white, black)
Common options:
-h, --help Show this message
-v, --version Show version and program information
The documentation is updated and included in the Gem.
I have not yet changed the program-behavior upon “qualifying” a proverb, nor will the respective proverbs be handled in any special way, apart from their being added to the list of “favorites”.