transcrypt 0.9.4 (new formula)
Closes Homebrew/homebrew#31253. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
a431136b22
commit
233933b80f
1 changed files with 30 additions and 0 deletions
30
Formula/transcrypt.rb
Normal file
30
Formula/transcrypt.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue