Skip to content

Commit aa6caf5

Browse files
olivier-thatchnumbata
authored andcommitted
Use Rubocop plugins, use Ruby 3.0 as minimum version everywhere
1 parent b2a7b90 commit aa6caf5

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
ruby-version: 3.2
18+
ruby-version: 3.0
1919
bundler-cache: true
2020
rubygems: latest
2121

@@ -29,7 +29,7 @@ jobs:
2929
grape: [ '~> 2.0.0', 'head' ]
3030
grape_swagger: [ '~> 2.0.3', 'head' ]
3131
grape_entity: [ '~> 1.0.1', 'head' ]
32-
ruby: [ '3.1', '3.4', 'head' ]
32+
ruby: [ '3.0', '3.4', 'head' ]
3333
# Exclude combinations that are not supported.
3434
exclude:
3535
- { grape_swagger: '~> 2.0.3', grape: 'head' }

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ AllCops:
33
Exclude:
44
- vendor/**/*
55
TargetRubyVersion:
6-
2.7
6+
3.0
77

88
inherit_from: .rubocop_todo.yml
99

10-
require:
10+
plugins:
1111
- rubocop-rake
1212
- rubocop-rspec
1313

.rubocop_todo.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-05-12 21:32:47 UTC using RuboCop version 1.75.5.
3+
# on 2025-05-28 16:52:10 UTC using RuboCop version 1.75.8.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# Configuration parameters: Severity, Include.
11-
# Include: **/*.gemspec
12-
Gemspec/RequiredRubyVersion:
13-
Exclude:
14-
- 'grape-swagger-entity.gemspec'
15-
169
# Offense count: 3
1710
# Configuration parameters: AllowedMethods.
1811
# AllowedMethods: enums

Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ group :development, :test do
3434
gem 'rake'
3535
gem 'rdoc'
3636
gem 'rspec'
37-
gem 'rubocop'
38-
gem 'rubocop-rake'
39-
gem 'rubocop-rspec'
37+
end
38+
39+
group :development do
40+
gem 'rubocop', '>= 1.72', require: false
41+
gem 'rubocop-rake', '>= 0.7', require: false
42+
gem 'rubocop-rspec', '>= 3.5.0', require: false
4043
end
4144

4245
group :test do

0 commit comments

Comments
 (0)