git-secret 0.2.3

depend on gawk

Closes #22177.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-12-27 22:14:33 -08:00
parent f3a46e7a58
commit 2a8a05c545

View file

@ -1,9 +1,8 @@
class GitSecret < Formula
desc "Bash-tool to store the private data inside a git repo"
homepage "https://sobolevn.github.io/git-secret/"
url "https://github.com/sobolevn/git-secret/archive/v0.2.2.tar.gz"
sha256 "a4672c2d5eca7b5c3b27388060609307b851edc7f7b653e1d21e3e0b328f43f4"
revision 1
url "https://github.com/sobolevn/git-secret/archive/v0.2.3.tar.gz"
sha256 "c821c25865ce7e13a67453debb6d60a8c1730102ecfc4c4b4c4858a02201ab26"
head "https://github.com/sobolevn/git-secret.git"
bottle do
@ -13,8 +12,15 @@ class GitSecret < Formula
sha256 "b0a3c3681fddd3da2efca19b917b2bf560a6076361cc35b76e06eb19343aebda" => :el_capitan
end
depends_on "gawk"
depends_on "gnupg" => :recommended
# Upstream PR from 13 Jan 2018 "Make checksum command operating system based"
patch do
url "https://github.com/sobolevn/git-secret/pull/127.patch?full_index=1"
sha256 "0f711bb7f2cd91e0770a92371ea50541aa8ae606c0542c164af7fc280dd956db"
end
def install
system "make", "build"
system "bash", "utils/install.sh", prefix
@ -39,7 +45,7 @@ class GitSecret < Formula
system "git", "secret", "init"
assert_match "testing@foo.bar added", shell_output("git secret tell -m")
(testpath/"shh.txt").write "Top Secret"
(testpath/".gitignore").write "shh.txt"
(testpath/".gitignore").append_lines "shh.txt"
system "git", "secret", "add", "shh.txt"
system "git", "secret", "hide"
assert_predicate testpath/"shh.txt.secret", :exist?