Skip to content

Commit 911e887

Browse files
committed
drop support for ruby 2.7 and 3.0
1 parent c0d56cb commit 911e887

29 files changed

+467
-298
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
ruby:
19-
- "2.7"
20-
- "3.0"
2119
- "3.1"
2220
- "3.2"
2321
- "3.3"
@@ -51,7 +49,6 @@ jobs:
5149
uses: ruby/setup-ruby@v1
5250
with:
5351
bundler-cache: true
54-
ruby-version: 3.4
5552
- name: spec:live
5653
run: |
5754
bundle exec rake clean_live set_ci_credentials spec:live ||

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ spec/fixtures/cassettes
44
spec/fixtures/credentials.yml
55
coverage/**
66
.yardoc/**
7-
Gemfile.lock
8-
.ruby-version
97
vendor/bundle/**
108
pkg/**

.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.1
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)