diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e82cda..90ff65b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.2 + ruby-version: 3.0 bundler-cache: true rubygems: latest @@ -29,7 +29,7 @@ jobs: grape: [ '~> 2.0.0', 'head' ] grape_swagger: [ '~> 2.0.3', 'head' ] grape_entity: [ '~> 1.0.1', 'head' ] - ruby: [ '3.1', '3.4', 'head' ] + ruby: [ '3.0', '3.4', 'head' ] # Exclude combinations that are not supported. exclude: - { grape_swagger: '~> 2.0.3', grape: 'head' } diff --git a/.rubocop.yml b/.rubocop.yml index 1f5d9a8..9795a74 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,11 +3,11 @@ AllCops: Exclude: - vendor/**/* TargetRubyVersion: - 2.7 + 3.0 inherit_from: .rubocop_todo.yml -require: +plugins: - rubocop-rake - rubocop-rspec diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 7a6c202..de5f1a6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,18 +1,11 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2024-09-09 22:35:29 UTC using RuboCop version 1.66.1. +# on 2025-05-28 16:52:10 UTC using RuboCop version 1.75.8. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 1 -# Configuration parameters: Severity, Include. -# Include: **/*.gemspec -Gemspec/RequiredRubyVersion: - Exclude: - - 'grape-swagger-entity.gemspec' - # Offense count: 3 # Configuration parameters: AllowedMethods. # AllowedMethods: enums @@ -64,7 +57,7 @@ Metrics/PerceivedComplexity: # Offense count: 5 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer -# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64 +# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64 Naming/VariableNumber: Exclude: - 'spec/grape-swagger/entities/response_model_spec.rb' @@ -102,7 +95,7 @@ RSpec/DescribeClass: RSpec/ExampleLength: Max: 187 -# Offense count: 24 +# Offense count: 26 RSpec/LeakyConstantDeclaration: Exclude: - 'spec/grape-swagger/entities/response_model_spec.rb' @@ -118,14 +111,14 @@ RSpec/MultipleDescribes: RSpec/MultipleExpectations: Max: 11 -# Offense count: 20 +# Offense count: 21 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples. # SupportedStyles: always, named_only RSpec/NamedSubject: Exclude: - 'spec/grape-swagger/entities/response_model_spec.rb' -# Offense count: 39 +# Offense count: 46 # Configuration parameters: AllowedGroups. RSpec/NestedGroups: Max: 5 diff --git a/Gemfile b/Gemfile index 26e7a71..c5c4b7e 100644 --- a/Gemfile +++ b/Gemfile @@ -34,9 +34,12 @@ group :development, :test do gem 'rake' gem 'rdoc' gem 'rspec' - gem 'rubocop' - gem 'rubocop-rake' - gem 'rubocop-rspec' +end + +group :development do + gem 'rubocop', '>= 1.72', require: false + gem 'rubocop-rake', '>= 0.7', require: false + gem 'rubocop-rspec', '>= 3.5.0', require: false end group :test do