Skip to content

Commit 70a29c8

Browse files
committed
goaccess: brew style --fix
Needed for Homebrew/brew#15136.
1 parent f8f3660 commit 70a29c8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Formula/goaccess.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ def install
4646
end
4747

4848
test do
49-
(testpath/"access.log").write \
49+
(testpath/"access.log").write(
5050
'127.0.0.1 - - [04/May/2015:15:48:17 +0200] "GET / HTTP/1.1" 200 612 "-" ' \
5151
'"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) ' \
52-
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"'
52+
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"',
53+
)
5354

54-
output = shell_output \
55+
output = shell_output(
5556
"#{bin}/goaccess --time-format=%T --date-format=%d/%b/%Y " \
5657
"--log-format='%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"' " \
57-
"-f access.log -o json 2>/dev/null"
58+
"-f access.log -o json 2>/dev/null",
59+
)
5860

5961
assert_equal "Chrome", JSON.parse(output)["browsers"]["data"].first["data"]
6062
end

0 commit comments

Comments
 (0)