2014-12-11 00:35:08 +00:00
|
|
|
class Distribution < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Create ASCII graphical histograms in the terminal"
|
2014-12-11 00:35:08 +00:00
|
|
|
homepage "https://github.com/philovivero/distribution"
|
2016-01-06 12:02:07 +00:00
|
|
|
url "https://github.com/philovivero/distribution/archive/v1.2.2.tar.gz"
|
|
|
|
sha256 "b6bfca0b2a802c179f0a9b3dc12290ac0331f10f7472230e1e664aeff16ebd63"
|
2014-12-11 00:35:08 +00:00
|
|
|
head "https://github.com/philovivero/distribution.git"
|
|
|
|
|
2015-10-23 10:50:26 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2014-12-11 00:35:08 +00:00
|
|
|
def install
|
|
|
|
bin.install "distribution.py" => "distribution"
|
|
|
|
doc.install "LICENSE.md", "README.md", "distributionrc", "screenshot.png"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test").write "a\nb\na\n"
|
|
|
|
`#{bin}/distribution <test 2>/dev/null`.include? "a|2"
|
|
|
|
end
|
|
|
|
end
|