Skip to content

Drop rails 6.1/7.0 and ruby 3.0/3.1 support#1514

Merged
modosc merged 10 commits intomasterfrom
remove-unsupported-rails-ruby-versions
Apr 5, 2025
Merged

Drop rails 6.1/7.0 and ruby 3.0/3.1 support#1514
modosc merged 10 commits intomasterfrom
remove-unsupported-rails-ruby-versions

Conversation

@modosc
Copy link
Copy Markdown
Contributor

@modosc modosc commented Mar 31, 2025

note: this depends on #1515

this fixes #1513

this pr removes support for:

  • rails 6.1
  • rails 7.0
  • ruby 3.0
  • ruby 3.1

all of which are will be EOL'd by 2025-04-01.

the only significant change to the library code was the removal of PaperTrail.active_record_gte_7_0?.

it also upgrades rspec-rails and rubocop-rspec to their most recent versions (both of these were previously blocked by rails 6.1 support). i ran autofixes and updated the .rubocop.yml file - each of these were done in a separate change so they should be easily undoable.

Check the following boxes:

  • Wrote good commit messages.
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.

@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch 2 times, most recently from 053fc81 to 0c3c1f5 Compare March 31, 2025 21:18
@modosc modosc changed the base branch from master to upgrade-rubocop March 31, 2025 21:19
@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch from 5604518 to 432af25 Compare March 31, 2025 21:36
@modosc modosc mentioned this pull request Mar 31, 2025
6 tasks
Base automatically changed from upgrade-rubocop to master April 2, 2025 15:03
@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch from 432af25 to cdafc3f Compare April 4, 2025 22:53
@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch from cdafc3f to 123fb20 Compare April 4, 2025 22:55
@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch from cfbc273 to be77bf9 Compare April 4, 2025 23:00
@modosc modosc force-pushed the remove-unsupported-rails-ruby-versions branch from aa09b89 to ec22c85 Compare April 4, 2025 23:10
@modosc modosc requested review from fatkodima and jaredbeck April 4, 2025 23:13
@modosc modosc marked this pull request as ready for review April 4, 2025 23:13
Copy link
Copy Markdown
Contributor

@fatkodima fatkodima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made suggestions, other changes look good to me.

Comment thread Rakefile Outdated
Comment thread spec/dummy_app/app/models/person.rb Outdated
Comment thread .rubocop_todo.yml Outdated
Comment thread CHANGELOG.md
@modosc modosc merged commit 14b6cfd into master Apr 5, 2025
14 checks passed
@modosc modosc deleted the remove-unsupported-rails-ruby-versions branch April 5, 2025 22:11
@gurgelrenan
Copy link
Copy Markdown
Member

@modosc, perhaps you should update https://github.com/paper-trail-gem/paper_trail/blob/master/README.md#1a-compatibility section.

Artinens pushed a commit to rrebellion/paper_trail that referenced this pull request Apr 14, 2026
* Drop rails 6.1/7.0 and ruby 3.0/3.1 support

* upgrade rubocop-rspec + rspec-rails

* disable RSpec/IndexedLet

* autofix RSpec/IndexedLet

* auto-fix Style/ArrayIntersect

* autofix RSpec/ReceiveMessages

* autofix RSpec/MetadataStyle

* revert changes from bad rebase

* revert .rubocop_todo.yml changes

* empty line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drop unsupported rails/ruby versions

3 participants