Drop support for Ruby 2.6 (reached EoL on 2022-03-31)
This commit is contained in:
parent
3f0e3aba2e
commit
fd35de6eb5
|
@ -17,7 +17,7 @@ jobs:
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
||||||
ruby-version: '2.6'
|
ruby-version: '2.7'
|
||||||
- name: Bundle
|
- name: Bundle
|
||||||
run: |
|
run: |
|
||||||
gem install bundler
|
gem install bundler
|
||||||
|
@ -66,12 +66,7 @@ jobs:
|
||||||
# in case it still produces any deprecation warnings.
|
# in case it still produces any deprecation warnings.
|
||||||
#
|
#
|
||||||
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
||||||
ruby: [ '2.6', '2.7', '3.0', '3.1' ]
|
ruby: [ '2.7', '3.0', '3.1' ]
|
||||||
|
|
||||||
exclude:
|
|
||||||
# rails 7 requires ruby > 2.7
|
|
||||||
- ruby: '2.6'
|
|
||||||
gemfile: 'rails_7.0'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -23,7 +23,7 @@ AllCops:
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
|
|
||||||
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
||||||
TargetRubyVersion: 2.6
|
TargetRubyVersion: 2.7
|
||||||
|
|
||||||
Layout/ArgumentAlignment:
|
Layout/ArgumentAlignment:
|
||||||
EnforcedStyle: with_fixed_indentation
|
EnforcedStyle: with_fixed_indentation
|
||||||
|
|
|
@ -12,6 +12,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
- Drop support for Rails 5.2, which reached EoL on 2022-06-01
|
- 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
|
### Added
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ Choose version:
|
||||||
|
|
||||||
| paper_trail | branch | ruby | activerecord |
|
| 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 |
|
| 13 | 13-stable | >= 2.6.0 | >= 5.2, < 7.1 |
|
||||||
| 12 | 12-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 |
|
| 11 | 11-stable | >= 2.4.0 | >= 5.2, < 6.1 |
|
||||||
|
|
|
@ -43,7 +43,7 @@ has been destroyed.
|
||||||
# about 3 years, per https://www.ruby-lang.org/en/downloads/branches/
|
# about 3 years, per https://www.ruby-lang.org/en/downloads/branches/
|
||||||
#
|
#
|
||||||
# See "Lowest supported ruby version" in CONTRIBUTING.md
|
# 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.
|
# We no longer specify a maximum activerecord version.
|
||||||
# See discussion in paper_trail/compatibility.rb
|
# See discussion in paper_trail/compatibility.rb
|
||||||
|
|
|
@ -138,7 +138,7 @@ RSpec.describe Widget, type: :model, versioning: true do
|
||||||
it "have versions that are not live" do
|
it "have versions that are not live" do
|
||||||
widget = described_class.create(name: "Henry")
|
widget = described_class.create(name: "Henry")
|
||||||
widget.update(name: "Harry")
|
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
|
expect(v.paper_trail).not_to be_live
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue