txt2tags: modernize and add test
This commit is contained in:
parent
a436830bf7
commit
2341bbc20f
1 changed files with 10 additions and 6 deletions
|
@ -1,12 +1,16 @@
|
|||
require 'formula'
|
||||
|
||||
class Txt2tags < Formula
|
||||
homepage 'http://txt2tags.org'
|
||||
url 'https://txt2tags.googlecode.com/files/txt2tags-2.6.tgz'
|
||||
sha1 '91bc47e02b9ec7f2fa39c8f7ff5c260164a74718'
|
||||
homepage "http://txt2tags.org"
|
||||
url "https://txt2tags.googlecode.com/files/txt2tags-2.6.tgz"
|
||||
sha256 "601467d7860f3cfb3d48050707c6277ff3ceb22fa7be4f5bd968de540ac5b05c"
|
||||
|
||||
def install
|
||||
bin.install 'txt2tags'
|
||||
bin.install "txt2tags"
|
||||
man1.install "doc/manpage.man" => "txt2tags.1"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.txt").write ("\n= Title =")
|
||||
system bin/"txt2tags", "-t", "html", "--no-headers", "test.txt"
|
||||
assert_match %r{<H1>Title</H1>}, File.read("test.html")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue