Skip to content

Commit 6fef32b

Browse files
committed
drop support for ruby 2.7
1 parent 9683769 commit 6fef32b

24 files changed

+243
-265
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
ruby:
19-
- "2.7"
2019
- "3.0"
2120
- "3.1"
2221
- "3.2"

.rubocop.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 2.7
4+
TargetRubyVersion: 3.0
55
DisplayCopNames: true
6+
SuggestExtensions: false
7+
NewCops: enable
68
Exclude:
79
- .git/**/*
810
- spec/core/middleware/response/sanitize_response_spec.rb
911
- vendor/**/*
1012

11-
# Prevents Ruby 3.1 incompatibility error. You can enable this cop when Ruby 2.7 support is dropped.
12-
# See https://github.com/rubocop/rubocop/issues/10258
13-
Layout/BlockAlignment:
14-
Enabled: false
15-
1613
# Align ends correctly.
1714
Layout/EndAlignment:
1815
EnforcedStyleAlignWith: variable
@@ -46,3 +43,16 @@ Metrics:
4643

4744
Style/DoubleNegation:
4845
Enabled: false
46+
47+
Style/OptionalBooleanParameter:
48+
Enabled: false
49+
50+
Naming/PredicateMethod:
51+
Enabled: false
52+
53+
Style/HashEachMethods:
54+
Enabled: false
55+
56+
Style/RedundantFetchBlock:
57+
Exclude:
58+
- spec/core/lru_cache_spec.rb

0 commit comments

Comments
 (0)