Drop support for Ruby 2.6 (reached EoL on 2022-03-31)

This commit is contained in:
Jared Beck 2022-10-16 01:00:17 -04:00
parent 3f0e3aba2e
commit fd35de6eb5
6 changed files with 7 additions and 11 deletions

View File

@ -17,7 +17,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
# See "Lowest supported ruby version" in CONTRIBUTING.md
ruby-version: '2.6'
ruby-version: '2.7'
- name: Bundle
run: |
gem install bundler
@ -66,12 +66,7 @@ jobs:
# in case it still produces any deprecation warnings.
#
# See "Lowest supported ruby version" in CONTRIBUTING.md
ruby: [ '2.6', '2.7', '3.0', '3.1' ]
exclude:
# rails 7 requires ruby > 2.7
- ruby: '2.6'
gemfile: 'rails_7.0'
ruby: [ '2.7', '3.0', '3.1' ]
steps:
- name: Checkout source
uses: actions/checkout@v2

View File

@ -23,7 +23,7 @@ AllCops:
NewCops: enable
# See "Lowest supported ruby version" in CONTRIBUTING.md
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation

View File

@ -12,6 +12,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
### Dependencies
- Drop support for Rails 5.2, which reached EoL on 2022-06-01
- Drop support for Ruby 2.6, which reached EoL on 2022-03-31
### Added

View File

@ -90,7 +90,7 @@ Choose version:
| paper_trail | branch | ruby | activerecord |
|-------------|------------|----------|---------------|
| unreleased | master | >= 2.6.0 | >= 6.0, < 7.1 |
| unreleased | master | >= 2.7.0 | >= 6.0, < 7.1 |
| 13 | 13-stable | >= 2.6.0 | >= 5.2, < 7.1 |
| 12 | 12-stable | >= 2.6.0 | >= 5.2, < 7.1 |
| 11 | 11-stable | >= 2.4.0 | >= 5.2, < 6.1 |

View File

@ -43,7 +43,7 @@ has been destroyed.
# about 3 years, per https://www.ruby-lang.org/en/downloads/branches/
#
# See "Lowest supported ruby version" in CONTRIBUTING.md
s.required_ruby_version = ">= 2.6.0"
s.required_ruby_version = ">= 2.7.0"
# We no longer specify a maximum activerecord version.
# See discussion in paper_trail/compatibility.rb

View File

@ -138,7 +138,7 @@ RSpec.describe Widget, type: :model, versioning: true do
it "have versions that are not live" do
widget = described_class.create(name: "Henry")
widget.update(name: "Harry")
widget.versions.map(&:reify).compact.each do |v|
widget.versions.filter_map(&:reify).each do |v|
expect(v.paper_trail).not_to be_live
end
end