مشكلة تثبيت Mailcatcher gem على MacOS Catalina وحلها

I faced this issue a few weeks back and was able to resolve it in the following manner.
The mailcatcher gem as of writing this depends on thin-1.5.1 which doesn’t install correctly.

Now, if you face the issue, uninstall the thin gem. Then,
do

gem install thin -v 1.5.1 -- --with-cflags="-Wno-error=implicit-function-declaration"
gem install mailcatcher

And you should be good to go.

Here’s the StackOverflow link I followed with some tweaks.

5 إعجابات

Discourse actually is very happy to fund up to say $3000 dollars for a mailcatcher rewrite/fork that junks event machine and replaces it with @ioquatix async and family instead. (and allowing this to work with say puma instead of thin)

At the moment mailcatcher is stuck on an old version of event machine, and the community has mostly moved on from using event machine.

If you or anyone is interested contact me via a PM.

End result of the work is

  • Remove mailcatcher gem
  • Add new gem to Discourse
  • Everything works exactly the same dev wise as it used to

Also prior to forking the gem I would recommend a PR to mailcatcher the de-event machines it… and to discuss with the maintainer.

16 إعجابًا

مرحباً! أنا مسؤول صيانة مشروع mailcatcher. لقد كنت أراقب فكرة الانتقال إلى نموذج غير متزامن (async) منذ فترة طويلة، لأن هناك عدة مشاكل هيكلية متجذرة في مكتبة eventmachine التي تعيق تطور هذا الجيم، والتي كان من شأن async حلها. بل إن هناك بالفعل فرعين تجريبيين للـ async في فرع التجربة. ومع ذلك، فقد عمل المشروع بشكل جيد بما يكفي في شكله الحالي، لذا لم يكن من المجدي الاستثمار في إعادة كتابته. غير أن التغييرات في أنظمة التشغيل وبيئة Ruby أصبحت الآن دافعاً قوياً لذلك، لذا إذا كان لدى شخص ما الوقت والقدرة على تنفيذ إعادة الهيكلة نحو async، فسأدعم هذا الجهد. يسعدني مناقشة الأمر عبر البريد الإلكتروني، أو الرسائل الخاصة، أو على GitHub.

6 إعجابات

مرحبًا صامويل،

أحد الأشياء التي قمنا بها مع بعض المشاريع الأخرى هو إعداد تمويل عبر “GitHub”. في الماضي، كان GitHub يضاعف التبرعات حتى 5 آلاف دولار. GitHub launches Sponsors, lets you pay your favorite open-source contributors | TechCrunch لست متأكدًا مما إذا كان ذلك لا يزال ساريًا.

على أي حال، يمكننا تخصيص تبرع بمبلغ 1 ألف دولار هنا لمدة 3 أشهر قادمة.

هل تعتقد أن هذا المبلغ كافٍ لدفع العمل قدمًا؟ هل لديك الوقت للعمل على هذا؟

6 إعجابات