mailcatcher: Ruby 1.9 no longer supported due to Mailcatcher's dependencies?

Hi, yesterday we stopped being able to install Mailcatcher. During the installation (via gem install mailcatcher) the following error comes up:

Error installing mailcatcher:
mime-types-data requires Ruby version >= 2.0.

We have Ruby 1.9.3p484 installed from the official Ubuntu repository (there is no newer one unfortunately).

Is this the end of the support of Ruby 1.9, or can we do something about it?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 7
  • Comments: 17 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Try this, which worked for me on ruby 1.9.3-p551 with an empty gemset:

$ gem install mime-types --version "< 3"
Fetching: mime-types-2.99.1.gem (100%)
Successfully installed mime-types-2.99.1
1 gem installed

$ gem install mailcatcher --conservative
Fetching: i18n-0.7.0.gem (100%)
Fetching: json-1.8.3.gem (100%)
Building native extensions.  This could take a while...
Fetching: thread_safe-0.3.5.gem (100%)
Fetching: tzinfo-1.2.2.gem (100%)
Fetching: minitest-5.8.4.gem (100%)
Fetching: activesupport-4.2.6.gem (100%)
Fetching: eventmachine-1.0.9.1.gem (100%)
Building native extensions.  This could take a while...
Fetching: mail-2.6.4.gem (100%)
Fetching: rack-1.6.4.gem (100%)
Fetching: tilt-2.0.2.gem (100%)
Fetching: rack-protection-1.5.3.gem (100%)
Fetching: sinatra-1.4.7.gem (100%)
Fetching: sqlite3-1.3.11.gem (100%)
Building native extensions.  This could take a while...
Fetching: daemons-1.2.3.gem (100%)
Fetching: thin-1.5.1.gem (100%)
Building native extensions.  This could take a while...
Fetching: skinny-0.2.4.gem (100%)
Fetching: mailcatcher-0.6.4.gem (100%)
Fetching: mime-types-data-3.2016.0221.gem (100%)
ERROR:  Error installing mailcatcher:
    mime-types-data requires Ruby version >= 2.0.

Despite this error:

$ mailcatcher
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080

I’m also experiencing the same issue. Hope it’s fixed soon.

To install on Ruby 1.9:

gem install mime-types --version "< 3"
gem install --conservative mailcatcher

You will get an error but it worked; try running mailcatcher.