Skip to content

Commit

Permalink
xcbeautify 0.4.3 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
thii committed Jun 16, 2019
1 parent 49a7177 commit 3ea4223
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/xcbeautify.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3ea4223

Please sign in to comment.