Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Ruby 2.7 support #1547

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
- 3.2.1
- 3.1.3
- 3.0.5
- 2.7.7
appraisal:
- rails_7_0
- rails_6_1
Expand All @@ -46,7 +45,6 @@ jobs:
- { ruby: 3.1.3, appraisal: rails_5_2 }
- { ruby: 3.0.5, appraisal: rails_5_2 }
- { ruby: 3.0.5, appraisal: rails_7_0 }
- { ruby: 2.7.7, appraisal: rails_7_0 }
env:
DATABASE_ADAPTER: ${{ matrix.adapter }}
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require:
- rubocop-rails
AllCops:
NewCops: disable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Exclude:
- 'gemfiles/*'
Bundler/OrderedGems:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ machine, understanding the codebase, and creating a good pull request.

## Compatibility

Shoulda Matchers is tested and supported against Ruby 2.7+, Rails
Shoulda Matchers is tested and supported against Ruby 3.0+, Rails
5.2+, RSpec 3.x, and Minitest 5.x.

- For Ruby < 2.4 and Rails < 4.1 compatibility, please use [v3.1.3][v3.1.3].
Expand Down
2 changes: 1 addition & 1 deletion lib/shoulda/matchers/util/word_wrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def wrapped_paragraphs

# @private
class Text < ::String
LIST_ITEM_REGEXP = /\A((?:[a-z0-9]+(?:\)|\.)|\*) )/.freeze
LIST_ITEM_REGEXP = /\A((?:[a-z0-9]+(?:\)|\.)|\*) )/

def indented?
self =~ /\A +/
Expand Down
2 changes: 1 addition & 1 deletion shoulda-matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Gem::Specification.new do |s|
'shoulda-matchers.gemspec']
s.require_paths = ['lib']

s.required_ruby_version = '>= 2.7.0'
s.required_ruby_version = '>= 3.0.5'
s.add_dependency('activesupport', '>= 5.2.0')
end