mailcatcher icon indicating copy to clipboard operation
mailcatcher copied to clipboard

0.9.1.beta2 does not work with Ruby 3.3

Open tagliala opened this issue 1 year ago • 2 comments
trafficstars

$ mailcatcher -f -v --http-ip=0.0.0.0
Starting MailCatcher v0.9.1.beta2
==> smtp://127.0.0.1:1025
==> http://0.0.0.0:1080
image

Unfortunately I cannot run specs on my machine, it looks like that there are issues with base64 (no longer a default gem) and maybe more

tagliala avatar Jan 04 '24 14:01 tagliala

This issue is affecting 0.9.0 release on ruby 3.3.0

If the fix is just upgrading the dependencies then this needs to be merged and released because mailcatcher is unusable for anyone who is running ruby 3.3 currently.

matt-whiteley avatar Feb 05 '24 15:02 matt-whiteley

Also just noticed this investigating a failing healthcheck for mailcatcher. Here's a minimal repo:

docker run -it ruby:3.3.0 /bin/bash
gem install mailcatcher
mailcatcher --http-ip=0.0.0.0 --no-quit
curl localhost:1080 # Internal server error

FinnIckler avatar Feb 06 '24 09:02 FinnIckler

I'm also seeing this issue on Ruby 3.3.0. Is there a workaround?

markymc avatar Apr 03 '24 04:04 markymc

I'm also seeing this issue on Ruby 3.3.0. Is there a workaround?

Use rbenv or rvm, and cd into a folder configured to use an older ruby version before starting mailcatcher.

matt-whiteley avatar Apr 03 '24 07:04 matt-whiteley

e.g.:

> mkdir mailcatcher
> cd mailcatcher
> echo "3.2.2" > .ruby-version
> echo "ruby 3.2.2" > .tools-versions
> asdf install
> gem install mailcatcher
> mailcatcher --foreground
Starting MailCatcher v0.9.0
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080

dorianmariecom avatar Apr 04 '24 14:04 dorianmariecom

Pushed to rubygems — please try it out:

gem install mailcatcher --pre

After a couple of good reports I will promote this to v0.10.0.

sj26 avatar May 17 '24 08:05 sj26

@sj26 It works for me! 😄

andreynering avatar May 17 '24 13:05 andreynering

15:51:32 mailcatcher.1    | Starting MailCatcher v0.10.0.alpha1
15:51:32 mailcatcher.1    | ==> smtp://127.0.0.1:1025
15:51:32 mailcatcher.1    | ==> http://0.0.0.0:1080
15:52:34 mailcatcher.1    | ==> SMTP: Received message from '<[email protected]>' (271 bytes)

Works for me too

tagliala avatar May 17 '24 13:05 tagliala

Works for me with Ruby 3.3.0 and Rails 7.1.

ansonhoyt avatar May 18 '24 00:05 ansonhoyt

Works for me!

mockdeep avatar May 18 '24 22:05 mockdeep