Skip to content
Snippets Groups Projects
  1. Apr 24, 2017
  2. Mar 04, 2017
    • ulif's avatar
      Print a hint when discarding rolls. · 6ddfc483
      ulif authored
      When using `realdice` randomness source and picking values out of short
      sequences (sequences shorter than the number of dice sides), we might
      require additional dice throws (if a value rolled is not in range of
      sequence length). We now print a hint when this happens.
      6ddfc483
  3. Mar 03, 2017
  4. Feb 27, 2017
  5. Feb 18, 2017
  6. Jan 06, 2017
  7. Dec 17, 2016
  8. Aug 03, 2016
  9. Aug 02, 2016
  10. Jun 08, 2016
  11. May 18, 2016
    • ulif's avatar
      Set lowest log level by default. · 6d15eab7
      ulif authored
      As we can only increase verbosity with commandline flags, we
      should set the least verbose log level by default.
      6d15eab7
  12. May 17, 2016
  13. May 12, 2016
  14. May 11, 2016
    • ulif's avatar
      Add `--dice-sides` option. · 6bfdbd2e
      ulif authored
      This argument makes sense together with ``realdice`` randomsource
      and tells how many sides the dice we use have. Six by default.
      6bfdbd2e
    • ulif's avatar
      Add a (dummy) argparser updater for real dice. · 44aa926c
      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.
      44aa926c
    • ulif's avatar
      Update docs. · f90da2ec
      ulif authored
      f90da2ec
    • ulif's avatar
      Update docs. · 37b21f14
      ulif authored
      37b21f14
    • ulif's avatar
      Allow plugins to work with the argparser. · 03fa1a63
      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.
      03fa1a63
  15. May 09, 2016
    • ulif's avatar
      Allow a `section` parameter for `get_config_dict()`. · c4827f8b
      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.
      c4827f8b
    • ulif's avatar
      Add `defaults_dict` parameter for `get_config_dict()`. · 1c55aa6a
      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.
      1c55aa6a
  16. May 08, 2016
  17. May 07, 2016
  18. May 05, 2016
    • dwcoder's avatar
      Fix issue 23 · 5ca58b56
      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.
      5ca58b56
  19. Apr 29, 2016
    • dwcoder's avatar
      Change capitalize to caps · 81d83afe
      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.
      81d83afe
  20. Apr 28, 2016
  21. Apr 25, 2016
    • ulif's avatar
      Provide a logger, API-wise. · 70f91b65
      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).
      70f91b65
  22. Apr 24, 2016
Loading