Skip to content

Remove support for Rails < 5 and Ruby < 2.5 #66

@skalee

Description

@skalee

Let's cut off some ballast. Legacy code means trouble.

There's no point in reintroducing Rails 4.2 support. Although it still receives occasional security updates (May 2020), it's really old and two major versions behind the latest Rails.

Let's drop support for some oldest Rubies too. There is no point in maintaining compatibility with Ruby 2.3, which has reached its end of life over a year ago (on 2019-03-31), and is causing problems due to incompatibility with current versions of mysql2 gem. We should drop support for Ruby 2.4 too — although it isn't problematic now,

There is no good point in maintaining compatibility with Ruby 2.4, which has reached its end of life about two months ago (2020-03-31). Although all works now, we can expect some problems in future, especially with native code in database backends.

Perhaps we should drop support for Ruby 2.5 too, I haven't decided yet. It is still supported, but fairly old and is scheduled to reach its end of life next year (on 2021-03-31). Dropping support now means not having to do it in near future. It's good to do one big breaking change rather than two smaller ones.

TODO

  • Remove old versions from test matrix.
  • Remove any logic which was for Rails 4 solely.
  • Remove any logic which was for older Rubies solely.
  • Remove support for mysql gem (not to be confused with mysql2)
  • Bump Ruby and Rails version constraints in the gemspec.
  • Update tools configuration (e.g. Rubocop)
  • Mention in the README that the original gem supports older software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions