homebrew-core/Formula/csv-fix.rb
Mike Naberezny 856040b73d csv-fix: update sha1 and add test
Closes Homebrew/homebrew#26598.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-02-10 18:49:34 -06:00

20 lines
462 B
Ruby

require 'formula'
class CsvFix < Formula
homepage 'http://code.google.com/p/csvfix/'
url 'https://bitbucket.org/neilb/csvfix/get/version-1.3.zip'
sha1 '2bca2d461434e7bd799e6c886d8eda769e7d3937'
def install
system "make lin"
bin.install 'csvfix/bin/csvfix'
end
test do
IO.popen("#{bin}/csvfix trim", "w+") do |pipe|
pipe.write "foo , bar \n"
pipe.close_write
assert_equal %{"foo","bar"\n}, pipe.read
end
end
end