21 lines
587 B
Ruby
21 lines
587 B
Ruby
class Tailor < Formula
|
|
desc "Cross-platform static analyzer and linter for Swift"
|
|
homepage "https://tailor.sh"
|
|
url "https://github.com/sleekbyte/tailor/releases/download/v0.12.0/tailor-0.12.0.tar"
|
|
sha256 "ec3810b27e9a35ecdf3a21987f17cad86918240d773172264e9abbb1a7efc415"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on :java => "1.8+"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
bin.install_symlink libexec/"bin/tailor"
|
|
man1.install libexec/"tailor.1"
|
|
end
|
|
|
|
test do
|
|
(testpath/"Test.swift").write "import Foundation\n"
|
|
system "#{bin}/tailor", testpath/"Test.swift"
|
|
end
|
|
end
|