From 3ea422335ac3252206d7fbeba440f2e8ecbab28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=20Do=C3=A3n?= Date: Sun, 16 Jun 2019 09:16:34 +0900 Subject: [PATCH] xcbeautify 0.4.3 (new formula) --- Formula/xcbeautify.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/xcbeautify.rb diff --git a/Formula/xcbeautify.rb b/Formula/xcbeautify.rb new file mode 100644 index 000000000000..65fdb200a96f --- /dev/null +++ b/Formula/xcbeautify.rb @@ -0,0 +1,21 @@ +class Xcbeautify < Formula + desc "Little beautifier tool for xcodebuild" + homepage "https://github.com/thii/xcbeautify" + url "https://github.com/thii/xcbeautify.git", + :tag => "0.4.3", + :revision => "d7363b1990200996040b5aa79106536aa8b132d3" + head "https://github.com/thii/xcbeautify.git" + depends_on :xcode => ["10.0", :build] + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + test do + (testpath/"xcodebuild.log").write "CompileStoryboard /Users/admin/MyApp/MyApp/Main.storyboard (in target: MyApp)" + assert_match "[\u{1B}[36mMyApp\u{1B}[0m] \u{1B}[1mCompiling\u{1B}[0m Main.storyboard", + shell_output("cat xcodebuild.log | #{bin}/xcbeautify").chomp + assert_match version.to_s, + shell_output("#{bin}/xcbeautify --version").chomp + end +end