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

mailcatcher: fix missing assets #174319

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
3 changes: 3 additions & 0 deletions Formula/m/mailcatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
url "https://github.com/sj26/mailcatcher/archive/refs/tags/v0.10.0.tar.gz"
sha256 "4cd027e22878342d6a002402306d42ada1f34045cc1d7f35b5a7fa37b944326e"
license "MIT"
revision 1

bottle do
sha256 cellar: :any, arm64_sonoma: "b1e3e8c79312f8a9cfc995ebf3323750c1673da1bcc46129a516124575dd4116"
Expand Down Expand Up @@ -149,7 +150,7 @@
sha256 "109187161939c57032d2bba9e5c45621251d73f806bb608d2d4c3ab2cabeb307"
end

def install

Check failure on line 153 in Formula/m/mailcatcher.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle mailcatcher` failed on Linux!

==> Downloading https://rubygems.org/downloads/mail-2.8.1.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/1f07a09be562aab4a2e11263da1398054fe3b0265d1d1a499a91a04ea91cafd0--mail-2.8.1.gem ==> Verifying checksum for '1f07a09be562aab4a2e11263da1398054fe3b0265d1d1a499a91a04ea91cafd0--mail-2.8.1.gem' ==> Downloading https://rubygems.org/downloads/websocket-extensions-0.1.5.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/8afef4baf1724ea2c107588e9600bcd8f775f8e59c9fa04f9abe65aef30585d7--websocket-extensions-0.1.5.gem ==> Verifying checksum for '8afef4baf1724ea2c107588e9600bcd8f775f8e59c9fa04f9abe65aef30585d7--websocket-extensions-0.1.5.gem' ==> Downloading https://rubygems.org/downloads/websocket-driver-0.7.6.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/d8efafc7985b2b9f5d7874a5e34d071775275c9692047dfb1cdb0d9fb6b33d79--websocket-driver-0.7.6.gem ==> Verifying checksum for 'd8efafc7985b2b9f5d7874a5e34d071775275c9692047dfb1cdb0d9fb6b33d79--websocket-driver-0.7.6.gem' ==> Downloading https://rubygems.org/downloads/faye-websocket-0.11.3.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/535a84a025551e48c6ae47c099367b4a0bb5bb8c68084d70c0941f867caae3ca--faye-websocket-0.11.3.gem ==> Verifying checksum for '535a84a025551e48c6ae47c099367b4a0bb5bb8c68084d70c0941f867caae3ca--faye-websocket-0.11.3.gem' ==> Downloading https://github.com/sj26/mailcatcher/archive/refs/tags/v0.10.0.tar.gz Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/5ac6b3ba37b61f59f5867857ee57b9b80d6229bf55362d52a5748cf4f58ef31f--mailcatcher-0.10.0.tar.gz ==> Verifying checksum for '5ac6b3ba37b61f59f5867857ee57b9b80d6229bf55362d52a5748cf4f58ef31f--mailcatcher-0.10.0.tar.gz' /usr/bin/env tar --extract --no-same-owner --file /home/linuxbrew/.cache/Homebrew/downloads/5ac6b3ba37b61f59f5867857ee57b9b80d6229bf55362d52a5748cf4f58ef31f--mailcatcher-0.10.0.tar.gz --directory /tmp/homebrew-unpack20240612-12362-2lc6x2 /usr/bin/env cp -pR /tmp/homebrew-unpack20240612-12362-2lc6x2/mailcatcher-0.10.0/. /tmp/mailcatcher-20240612-12362-2o9hlr/mailcatcher-0.10.0 ==> Downloading https://rubygems.org/downloads/rack-2.2.9.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/754ac848280d0624f7c0745b0ec775ea3192563ee6a130ce9c3fe7040c44812b--rack-2.2.9.gem ==> Verifying checksum for '754ac848280d0624f7c0745b0ec775ea3192563ee6a130ce9c3fe7040c44812b--rack-2.2.9.gem' ==> gem install /home/linuxbrew/.cache/Homebrew/downloads/754ac848280d0624f7c0745b0ec775ea3192563ee6a130ce9c3fe7040c44812b--rack-2.2.9.gem --ignore-dependencies --no-document --install-dir /home/linuxbrew/.linuxbrew/Cellar/mailcatcher/0.10.0_1/libexec Successfully installed rack-2.2.9 1 gem installed ==> Downloading https://rubygems.org/downloads/eventmachine-1.2.7.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/269f493b830d90b374856bbaf6238a0f921a651e8f42540fd37ceac3d7a90a49--eventmachine-1.2.7.gem ==> Verifying checksum for '269f493b830d90b374856bbaf6238a0f921a651e8f42540fd37ceac3d7a90a49--eventmachine-1.2.7.gem' ==> gem install /home/linuxbrew/.cache/Homebrew/downloads/269f493b830d90b374856bbaf6238a0f921a651e8f42540fd37ceac3d7a90a49--eventmachine-1.2.7.gem --ignore-dependencies --no-document --install-dir /home/linuxbrew/.linuxbrew/Cellar/mailcatcher/0.10.0_1/libexec Building native extensions. This could take a while... Successfully installed eventmachine-1.2.7 1 gem installed ==> Downloading https://rubygems.org/downloads/daemons-1.4.1.gem Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/ff05b1fcf9f1bc843ffd9b9c270f202e1fcafa052d4f8dc0cbf1400585be2c48--daemons-1.4.1.gem ==> Verifying checksum for 'ff05b1fcf9f1bc843ffd9b9c270f202e1fcafa052d4f8dc0cbf1400585be2c48--daemons-1.4.1.gem' ==> gem install /home/linuxbrew/.cache/Homebrew/downloads/ff05b1fcf9f1bc843ffd9b9c270f202e1fcafa052d4f8dc0cbf1400585be2c48--daemons-1.4.1.gem --ignore-dependencies --no-document --install-dir /home/linuxbrew/.linuxbrew/Cellar/mailcatcher/0.10.0_1/libexec Successfully installed daemons-1.4.1 1 gem installed ==> Downloading htt
if OS.mac? && MacOS.version >= :mojave && MacOS::CLT.installed?
ENV["SDKROOT"] = ENV["HOMEBREW_SDKROOT"] = MacOS::CLT.sdk_path(MacOS.version)
end
Expand All @@ -161,6 +162,7 @@
"--no-document", "--install-dir", libexec
end

system "rake", "assets"
system "gem", "build", "#{name}.gemspec"
system "gem", "install", "--ignore-dependencies", "#{name}-#{version}.gem"
bin.install libexec/"bin"/name, libexec/"bin/catchmail"
Expand Down Expand Up @@ -239,6 +241,7 @@
system "expect", "-f", "mailcatcher.exp"
assert_match "[email protected]", shell_output("curl --silent http://localhost:#{http_port}/messages")
assert_equal "Hello Alice.", shell_output("curl --silent http://localhost:#{http_port}/messages/1.plain").strip
assert_match "Content-Type: application/javascript", shell_output("curl --silent -i http://localhost:#{http_port}/assets/mailcatcher.js").strip
system "curl", "--silent", "-X", "DELETE", "http://localhost:#{http_port}/"
end
end
Loading