Skip to content

Commit e62bb1d

Browse files
Support for Ruby 3.3 (#205)
# NEW * added support for ruby 3.3 # CHANGED * increased the minimum rubocop version to ~> 1.61 (from ~> 1.32.0) -- **potentially breaking** # BREAKING * drop support for ruby 2.6
1 parent 53d1094 commit e62bb1d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/rspec_rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
strategy:
1919
matrix:
2020
include: # use bundler 2.3 for ruby versions < 2.6 (https://bundler.io/compatibility.html)
21-
- ruby-version: '2.6'
22-
bundler-version: latest
2321
- ruby-version: '2.7'
2422
bundler-version: latest
2523
- ruby-version: '3.0'
2624
bundler-version: latest
2725
- ruby-version: '3.1'
2826
bundler-version: latest
27+
- ruby-version: '3.3'
28+
bundler-version: latest
2929
steps:
3030
- uses: actions/checkout@v3
3131
- name: Set up Ruby
32-
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
32+
uses: ruby/setup-ruby@2a9a743e19810b9f3c38060637daf594dbd7b37f # 1.186.0
3333
with:
3434
ruby-version: ${{ matrix.ruby-version }}
3535
bundler: ${{ matrix.bundler-version }}

rubocop-airbnb/config/rubocop-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Style/BlockDelimiters:
116116
- let!
117117
- subject
118118
- watch
119-
IgnoredMethods:
119+
AllowedMethods:
120120
# Methods that can be either procedural or functional and cannot be
121121
# categorised from their usage alone, e.g.
122122
#
@@ -889,7 +889,7 @@ Style/SymbolLiteral:
889889
Style/SymbolProc:
890890
Description: Use symbols as procs instead of blocks when possible.
891891
Enabled: false
892-
IgnoredMethods:
892+
AllowedMethods:
893893
- respond_to
894894

895895
Style/TernaryParentheses:

rubocop-airbnb/rubocop-airbnb.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
1515
spec.license = 'MIT'
1616
spec.version = RuboCop::Airbnb::VERSION
1717
spec.platform = Gem::Platform::RUBY
18-
spec.required_ruby_version = '>= 2.5'
18+
spec.required_ruby_version = '>= 2.7'
1919

2020
spec.require_paths = ['lib']
2121
spec.files = Dir[
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
2525
'Gemfile',
2626
]
2727

28-
spec.add_dependency('rubocop', '~> 1.32.0')
29-
spec.add_dependency('rubocop-performance', '~> 1.10.2')
30-
spec.add_dependency('rubocop-rails', '~> 2.9.1')
31-
spec.add_dependency('rubocop-rspec', '~> 2.0.0')
28+
spec.add_dependency('rubocop', '~> 1.61')
29+
spec.add_dependency('rubocop-performance', '~> 1.20')
30+
spec.add_dependency('rubocop-rails', '~> 2.24')
31+
spec.add_dependency('rubocop-rspec', '~> 2.26')
3232
spec.add_development_dependency('rspec', '~> 3.5')
3333
end

0 commit comments

Comments
 (0)