aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJosh Tilles2014-07-30 15:56:54 -0400
committerMike McQuaid2014-08-06 10:29:02 +0100
commit574a4cc9505451d08694c7ba13a9c8357a2ddad6 (patch)
tree57eb7b15d65ea321ed8fb1641e7885040a46be98 /Library/Formula
parentd1bc44574400eceec220ba5f413963be4b9e17b1 (diff)
downloadhomebrew-574a4cc9505451d08694c7ba13a9c8357a2ddad6.tar.bz2
transcrypt 0.9.4 (new formula)
Closes #31253. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/transcrypt.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/transcrypt.rb b/Library/Formula/transcrypt.rb
new file mode 100644
index 000000000..03d6998aa
--- /dev/null
+++ b/Library/Formula/transcrypt.rb
@@ -0,0 +1,30 @@
+require "formula"
+
+class Transcrypt < Formula
+ homepage "https://github.com/elasticdog/transcrypt#readme"
+ url "https://github.com/elasticdog/transcrypt/archive/v0.9.4.tar.gz"
+ sha1 "e791a1a32aabac7d92b01d0448fa2cf22eb965fc"
+ head "https://github.com/elasticdog/transcrypt.git"
+
+ def install
+ bin.install "transcrypt"
+ man.install "man/transcrypt.1"
+ bash_completion.install "contrib/bash/transcrypt"
+ zsh_completion.install "contrib/zsh/_transcrypt"
+ end
+
+ test do
+ system "git", "init"
+ system bin/"transcrypt", "--password", "guest", "--yes"
+
+ (testpath/".gitattributes").atomic_write <<-EOS.undent
+ sensitive_file filter=crypt diff=crypt
+ EOS
+ (testpath/"sensitive_file").write "secrets"
+ system "git", "add", ".gitattributes", "sensitive_file"
+ system "git", "commit", "--message", "Add encrypted version of file"
+
+ assert_equal `git show HEAD:sensitive_file --no-textconv`.chomp,
+ "U2FsdGVkX1/BC5TmOtJ9kCgCq4EmYX0crGU7mAIhDEA="
+ end
+end