blob: 0df464891f9b1ae20878d890fafa4cf58146c3cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require "formula"
require "tempfile"
class Icdiff < Formula
homepage "https://github.com/jeffkaufman/icdiff"
url "https://github.com/jeffkaufman/icdiff/archive/release-1.5.3.tar.gz"
sha1 "684f97969a94b2f6b36bb3f6a610bf8b87526d17"
def install
bin.install "icdiff", "git-icdiff"
end
test do
(testpath/"file1").write "test1"
(testpath/"file2").write "test2"
system "#{bin}/icdiff", "file1", "file2"
system "git", "init"
system "#{bin}/git-icdiff"
end
end
|