- Jan 06, 2017
-
-
ulif authored
-
- Dec 17, 2016
-
-
Jay Mao authored
RealDiceRandomSource and its tests updated to expect argparse.Namespace objects instead of dicts (fix for using the 'realdice' randomness source)
-
- Aug 03, 2016
-
-
ulif authored
Make the tests succeed. In wordlists we now also accept '1-2-3-4 someterm' for numbered entries. We still support '1234 somterm'.
-
- Aug 02, 2016
-
-
ulif authored
The Electronic Frontier Foundation published own wordlists, which were, as it looks, carefully assembled. See https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases for details. We ship now with the long list.
-
- Jun 08, 2016
-
-
ulif authored
-
- May 18, 2016
-
-
ulif authored
As we can only increase verbosity with commandline flags, we should set the least verbose log level by default.
-
- May 17, 2016
- May 12, 2016
-
-
ulif authored
-
ulif authored
-
ulif authored
While it is nice to have a working plugin example, it looks also a bit overcomplicated to me. It is better for contributors, if they can find things (like CLI argument parsing) in one (foreseeable) place and do not have for things scattered over the whole project. For plugin documentation we can use the sphinx docs. Or maybe provide a sample plugin in tests.
-
- May 11, 2016
-
-
ulif authored
This argument makes sense together with ``realdice`` randomsource and tells how many sides the dice we use have. Six by default.
-
ulif authored
The RealDiceRandomSource will support own commandline arguments. This is handled by an own classmethod called `update_argparser` that is called upon initialization of diceware.
-
ulif authored
-
ulif authored
-
ulif authored
If plugins want to work with their own commandline args, we allow this by calling their `update_argparser` methods. This has to be a classmethod, if it exists.
-
- May 09, 2016
-
-
ulif authored
In config files we normally lookup a ``[diceware]`` section. For plugins, however, it might be helpful to be able to parse also other sections. Together with the new `defaults_dict` argument they could implement their own set of options more easily.
-
ulif authored
We can now give a custom dict to use for defaults. This is the first step to make `get_config_dict()` usable also for plugins.
-
- May 08, 2016
- May 07, 2016
-
-
ulif authored
-
- May 05, 2016
-
-
dwcoder authored
This commit fixes #23 Add the `string.strip()` function to the `get_config_dict()`, to remove inverted commas around string values in the diceware.ini file. The strip removes both `"` and `'`. Add unit test to ensure the line: delimiter=" " in the diceware.ini file is being parsed correctly as a space.
-
- Apr 29, 2016
-
-
dwcoder authored
This commit fixes issue #21. Change all occurences of the option `capitalize` to `caps` in __init.py__. Make the same change in the test_diceware.py. Add a unit test that checks the output of main() after setting the `caps = off` in the .diceware.ini.
-
- Apr 28, 2016
-
-
ulif authored
-
- Apr 25, 2016
-
-
ulif authored
Add a common place where components can write messages to. Any userinterface can decide, what messages should be visible (depending on their severity).
-
- Apr 24, 2016
-
-
ulif authored
-
ulif authored
With one item in sequence we do not have to roll dice. This holds for all sorts of dice.
-
ulif authored
The moved comment was at the wrong place.
-
ulif authored
I guess it is obvious, how the first if-clause works.
-
ulif authored
We can simply do the (cheap) modulo operation after each die role.
-
- Apr 20, 2016
-
-
ulif authored
Use multiples of 4 as indent, shorten overlong lines and fix other minor things to keep pep8-conformity.
-
- Apr 19, 2016
-
-
dwcoder authored
Move the calculations out of the `pre_check()` function. Also do smarter checks: - If len(sequence) == 1, we don't need any rolls. In this case, just return sequence[0] - If len(sequence) is a factor of dice_sides, we only need one roll along with the modulo operator. - For everything else, just require one extra roll, bringing it to a total of 2 rolls. This should remove a little bit of the edge bias introduced by the modulo Run the `pre_check()` function after the calculations have been done. For the unit tests: - remove the function `test_choice_len_too_short()`; we no longer have to raise an exception when the sequence length is too short. - Write new tests for the cases where `dice_sides = 6` and `len(sequence)`: - 1 - 2,3 - 4,5
-
- Apr 17, 2016
-
-
dwcoder authored
Add an if to the pre_check that catches cases where there are less items to choose from than sides on the die. If this is the case, we can still pick items, but we have to use a modulo. Pick the `num_rolls` so that the result generated after rolling is larger than `100*len(sequence)`. The `pre_check()` function now has to return the modified `num_rolls` as well as a boolean to indicate whether modulo needs to be applied on the result.
-
ulif authored
-
- Apr 16, 2016
-
-
ulif authored
Use `.asc` filename extension for signed wordlists.
-
- Apr 15, 2016
-
-
Heartsucker authored
also updated README Fixes #16
-
- Apr 14, 2016
-
-
heartsucker authored
-
- Apr 13, 2016
-
-
Heartsucker authored
-