Skip to content

Commit c37ed08

Browse files
authored
Add Rails 7.2 and 8.0 support (#22)
* Upgraded all dependencies * Fixed default Rake task to run appraisals * Allow Rails 7.2 and 8.0 * Added appraisals for 7.2 and 8.0 * Added Ruby 3.3 to CI
1 parent ca94ba2 commit c37ed08

19 files changed

+877
-324
lines changed

.github/workflows/ci.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ruby: ['3.0', '3.2']
11+
ruby: ['3.0', '3.2', '3.3']
1212
gemfile:
1313
- gemfiles/rails_6_1.gemfile
1414
- gemfiles/rails_7_0.gemfile
1515
- gemfiles/rails_7_1.gemfile
16+
- gemfiles/rails_7_2.gemfile
17+
- gemfiles/rails_8_0.gemfile
18+
exclude:
19+
- ruby: '3.1'
20+
gemfile: gemfiles/rails_8_0.gemfile
21+
- ruby: '3.0'
22+
gemfile: gemfiles/rails_8_0.gemfile
23+
- ruby: '3.0'
24+
gemfile: gemfiles/rails_7_2.gemfile
1625
steps:
1726
- uses: actions/checkout@v2
1827
- uses: ruby/setup-ruby@v1

.rubocop.yml

+6
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ inherit_gem:
44
betterlint:
55
- config/default.yml
66

7+
inherit_mode:
8+
merge:
9+
- Exclude
10+
711
AllCops:
812
TargetRubyVersion: 3.0
13+
Exclude:
14+
- gemfiles/*.gemfile

.rubocop_todo.yml

+23-27
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 99999`
3-
# on 2023-05-09 13:01:46 UTC using RuboCop version 1.50.2.
3+
# on 2025-01-21 18:35:39 UTC using RuboCop version 1.62.1.
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: 4
9+
# Offense count: 6
1010
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
1111
# SupportedStyles: Gemfile, gems.rb, gemspec
1212
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
@@ -15,11 +15,25 @@ Gemspec/DevelopmentDependencies:
1515
- 'authorized_persona.gemspec'
1616

1717
# Offense count: 1
18-
# Configuration parameters: Severity, Include.
19-
# Include: **/*.gemspec
20-
Gemspec/RequiredRubyVersion:
18+
# This cop supports safe autocorrection (--autocorrect).
19+
Layout/ElseAlignment:
2120
Exclude:
22-
- 'authorized_persona.gemspec'
21+
- 'lib/authorized_persona/authorization.rb'
22+
23+
# Offense count: 1
24+
# This cop supports safe autocorrection (--autocorrect).
25+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
26+
# SupportedStylesAlignWith: keyword, variable, start_of_line
27+
Layout/EndAlignment:
28+
Exclude:
29+
- 'lib/authorized_persona/authorization.rb'
30+
31+
# Offense count: 1
32+
# This cop supports safe autocorrection (--autocorrect).
33+
# Configuration parameters: Width, AllowedPatterns.
34+
Layout/IndentationWidth:
35+
Exclude:
36+
- 'lib/authorized_persona/authorization.rb'
2337

2438
# Offense count: 1
2539
# This cop supports safe autocorrection (--autocorrect).
@@ -30,29 +44,25 @@ Layout/LineLength:
3044
- 'lib/authorized_persona/authorization.rb'
3145

3246
# Offense count: 2
47+
# Configuration parameters: AllowedParentClasses.
3348
Lint/MissingSuper:
3449
Exclude:
3550
- 'spec/authorized_persona/authorization_spec.rb'
3651
- 'spec/authorized_persona/persona_spec.rb'
3752

38-
# Offense count: 2
53+
# Offense count: 4
3954
# This cop supports safe autocorrection (--autocorrect).
4055
Lint/RedundantCopDisableDirective:
4156
Exclude:
4257
- 'lib/authorized_persona/authorization.rb'
58+
- 'lib/authorized_persona/persona.rb'
4359

4460
# Offense count: 1
4561
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
4662
Metrics/PerceivedComplexity:
4763
Exclude:
4864
- 'lib/authorized_persona/persona.rb'
4965

50-
# Offense count: 2
51-
# This cop supports unsafe autocorrection (--autocorrect-all).
52-
RSpec/BeEq:
53-
Exclude:
54-
- 'spec/authorized_persona/authorization_spec.rb'
55-
5666
# Offense count: 1
5767
# This cop supports unsafe autocorrection (--autocorrect-all).
5868
Rails/ActiveSupportOnLoad:
@@ -64,20 +74,6 @@ Rails/I18nLocaleTexts:
6474
Exclude:
6575
- 'lib/authorized_persona/authorization.rb'
6676

67-
# Offense count: 1
68-
# This cop supports unsafe autocorrection (--autocorrect-all).
69-
# Configuration parameters: Include.
70-
# Include: **/Rakefile, **/*.rake
71-
Rails/RakeEnvironment:
72-
Exclude:
73-
- 'Rakefile'
74-
75-
# Offense count: 1
76-
# This cop supports safe autocorrection (--autocorrect).
77-
Rake/Desc:
78-
Exclude:
79-
- 'Rakefile'
80-
8177
# Offense count: 2
8278
# This cop supports unsafe autocorrection (--autocorrect-all).
8379
# Configuration parameters: AllowedReceivers.

Appraisals

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22

33
appraise 'rails-6-1' do
44
gem 'railties', '~> 6.1.0'
5-
gem 'activemodel', '~>6.1.0'
5+
gem 'concurrent-ruby', '1.3.4'
66
end
77

88
appraise 'rails-7-0' do
99
gem 'railties', '~> 7.0.0'
10-
gem 'activemodel', '~>7.0.0'
10+
gem 'concurrent-ruby', '1.3.4'
1111
end
1212

1313
appraise 'rails-7-1' do
1414
gem 'railties', '~> 7.1.0'
15-
gem 'activemodel', '~>7.1.0'
15+
end
16+
17+
appraise 'rails-7-2' do
18+
gem 'railties', '~> 7.2.0'
19+
end
20+
21+
appraise 'rails-8-0' do
22+
gem 'railties', '~> 8.0.0'
1623
end

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ source "https://rubygems.org"
22

33
# Specify your gem's dependencies in authorized_persona.gemspec
44
gemspec
5+
6+
gem 'zeitwerk', '~> 2.6.18' # Newer versions require Ruby 3.2
7+
gem 'nokogiri', '~> 1.17.2' # Newer versions require Ruby 3.2
8+
gem 'securerandom', '~> 0.3.2' # Newer versions require Ruby 3.1

0 commit comments

Comments
 (0)