Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcbeautify 0.4.3 (new formula) #41003

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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