Fix Homebrew formula for newer Homebrew versions

Updated the install section in the brews configuration to use the
new Homebrew formula syntax for directory creation.

Changes:
- Changed `etc.mkdir "unpoller"` to `(etc/"unpoller").mkpath`

The old syntax was causing errors with newer Homebrew versions:
  TypeError: no implicit conversion of String into Integer

This fix ensures compatibility with Homebrew 4.3+ while maintaining
backward compatibility with older versions.

Fixes #742

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Cody Lee
2026-01-25 12:29:13 -06:00
parent 037f4563f0
commit 3f60654a2a

View File

@@ -547,7 +547,7 @@ brews:
assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2) assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2)
install: | install: |
bin.install "unpoller" bin.install "unpoller"
etc.mkdir "unpoller" (etc/"unpoller").mkpath
etc.install "examples/up.conf" => "unpoller/up.conf.example" etc.install "examples/up.conf" => "unpoller/up.conf.example"
post_install: | post_install: |
etc.install "examples/up.conf" => "unpoller/up.conf" etc.install "examples/up.conf" => "unpoller/up.conf"