homebrew-core/Formula/diceware.rb
Ben Webber 7a55511ede diceware 0.9.5 (new formula)
Diceware is a method for generating passphrases using ordinary d6 dice
and a predefined word list[1].

This changeset adds Uli Fouquet's `diceware` application, which
implements Diceware for the command line.

References:

  1. https://en.wikipedia.org/wiki/Diceware

Closes #32318.

Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
2018-09-23 11:05:28 +02:00

18 lines
461 B
Ruby

class Diceware < Formula
include Language::Python::Virtualenv
desc "Passphrases to remember"
homepage "https://github.com/ulif/diceware"
url "https://github.com/ulif/diceware/archive/v0.9.5.tar.gz"
sha256 "70c5884eed7f9d55204075cc8816ef7259000a0548f930a98d51132eef5c90ad"
depends_on "python"
def install
virtualenv_install_with_resources
end
test do
assert_match(/(\w+)(\-(\w+)){5}/, shell_output("#{bin}/diceware -d-"))
end
end