Skip to content

Commit

Permalink
Support for Ruby 3.3 (#205)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
Geromendez135 authored Jul 23, 2024
1 parent 53d1094 commit e62bb1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rspec_rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
strategy:
matrix:
include: # use bundler 2.3 for ruby versions < 2.6 (https://bundler.io/compatibility.html)
- ruby-version: '2.6'
bundler-version: latest
- ruby-version: '2.7'
bundler-version: latest
- ruby-version: '3.0'
bundler-version: latest
- ruby-version: '3.1'
bundler-version: latest
- ruby-version: '3.3'
bundler-version: latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
uses: ruby/setup-ruby@2a9a743e19810b9f3c38060637daf594dbd7b37f # 1.186.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: ${{ matrix.bundler-version }}
Expand Down
4 changes: 2 additions & 2 deletions rubocop-airbnb/config/rubocop-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Style/BlockDelimiters:
- let!
- subject
- watch
IgnoredMethods:
AllowedMethods:
# Methods that can be either procedural or functional and cannot be
# categorised from their usage alone, e.g.
#
Expand Down Expand Up @@ -889,7 +889,7 @@ Style/SymbolLiteral:
Style/SymbolProc:
Description: Use symbols as procs instead of blocks when possible.
Enabled: false
IgnoredMethods:
AllowedMethods:
- respond_to

Style/TernaryParentheses:
Expand Down
10 changes: 5 additions & 5 deletions rubocop-airbnb/rubocop-airbnb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.license = 'MIT'
spec.version = RuboCop::Airbnb::VERSION
spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.5'
spec.required_ruby_version = '>= 2.7'

spec.require_paths = ['lib']
spec.files = Dir[
Expand All @@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
'Gemfile',
]

spec.add_dependency('rubocop', '~> 1.32.0')
spec.add_dependency('rubocop-performance', '~> 1.10.2')
spec.add_dependency('rubocop-rails', '~> 2.9.1')
spec.add_dependency('rubocop-rspec', '~> 2.0.0')
spec.add_dependency('rubocop', '~> 1.61')
spec.add_dependency('rubocop-performance', '~> 1.20')
spec.add_dependency('rubocop-rails', '~> 2.24')
spec.add_dependency('rubocop-rspec', '~> 2.26')
spec.add_development_dependency('rspec', '~> 3.5')
end

0 comments on commit e62bb1d

Please sign in to comment.