2014-12-07 17:43:46 +00:00
|
|
|
require "formula"
|
|
|
|
require "tempfile"
|
|
|
|
|
|
|
|
class Icdiff < Formula
|
|
|
|
homepage "https://github.com/jeffkaufman/icdiff"
|
2014-12-14 11:47:35 +00:00
|
|
|
url "https://github.com/jeffkaufman/icdiff/archive/release-1.6.0.tar.gz"
|
|
|
|
sha1 "542795c92023ed75ed5e043386e82a9dfc8f8691"
|
2014-12-07 17:43:46 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "icdiff", "git-icdiff"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-08 15:22:07 +00:00
|
|
|
(testpath/"file1").write "test1"
|
|
|
|
(testpath/"file2").write "test2"
|
|
|
|
system "#{bin}/icdiff", "file1", "file2"
|
2014-12-07 17:43:46 +00:00
|
|
|
system "git", "init"
|
|
|
|
system "#{bin}/git-icdiff"
|
|
|
|
end
|
|
|
|
end
|