Skip to content

Commit 1411d38

Browse files
[CHA-2578] chore: relax faraday and sorbet-runtime version constraints (#200)
* chore: relax faraday and sorbet-runtime version constraints - faraday: ~> 2.12.2 -> ~> 2.12 (unblocks security fix in 2.14.1) - faraday-multipart: ~> 1.1.0 -> ~> 1.1 (allows 1.2.x, Ruby 4 compat) - faraday-net_http_persistent: ~> 2.3.0 -> ~> 2.3 - sorbet-runtime: ~> 0.5.11820 -> >= 0.5.11820, < 2 (allows 0.5.x and 0.6.x) - sorbet (dev): ~> 0.5 -> ~> 0.6 Closes #196, closes #189 * chore: add Ruby 4.0 to CI matrix, run lint checks on 3.4 and 4.0 * fix: update sorbet RBI stubs for Sorbet 0.6 compatibility - Remove conflicting method stubs from hidden.rbi (now in Sorbet 0.6 stdlib) - Add typed: true headers to gem RBIs missing sigils - Ignore sorbet/rbi/sorbet-typed in sorbet config (stale 0.5 community stubs) - Delete sorbet/rbi/sorbet-typed (ignored, 1071 lines of stale stubs removed) * chore: make lint configurable via matrix flag instead of hardcoded ruby version check Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * enabled lint check on ruby 3.4 as well * fix: tighten sorbet-runtime upper bound from < 2 to < 1 Current sorbet versions are 0.5.x and 0.6.x, both of which are < 1. Using < 2 was unnecessarily wide and would allow a hypothetical 1.x series without explicit opt-in. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b271d4f commit 1411d38

27 files changed

Lines changed: 37 additions & 1085 deletions

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ jobs:
88
strategy:
99
max-parallel: 1
1010
matrix:
11-
ruby: ["3.0", "3.1", "3.4"]
11+
ruby: ["3.0", "3.1", "3.4", "4.0"]
12+
include:
13+
# Add lint: true to any Ruby version that should run rubocop + srb tc.
14+
# Always include 4.0; also add it to the latest Ruby when a newer version is added.
15+
- ruby: "4.0"
16+
lint: true
17+
- ruby: "3.4"
18+
lint: true
1219
name: 💎 Ruby ${{ matrix.ruby }}
1320
steps:
1421
- uses: actions/checkout@v4
@@ -21,10 +28,10 @@ jobs:
2128
bundler-cache: true
2229

2330
- run: bundle exec rake rubocop
24-
if: ${{ matrix.ruby == '3.4' }}
31+
if: ${{ matrix.lint == true }}
2532

2633
- run: bundle exec srb tc
27-
if: ${{ matrix.ruby == '3.4' }}
34+
if: ${{ matrix.lint == true }}
2835

2936
- run: bundle exec rspec ./spec --require spec_helper
3037
env:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ group :dev do
1414
gem 'rubocop-ast', '~> 1.23', require: false
1515
gem 'simplecov', '~> 0.21.2'
1616
gem 'simplecov-console', '~> 0.9.1'
17-
gem 'sorbet', '~> 0.5.10539'
17+
gem 'sorbet', '~> 0.6'
1818
end
1919

2020
group :test do

sorbet/config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
--dir
22
.
3-
--ignore=vendor/bundle,spec
4-
--disable-watchman
3+
--ignore=vendor/bundle,spec,sorbet/rbi/sorbet-typed
4+
# sorbet/rbi/sorbet-typed contains community stubs generated for Sorbet 0.5.
5+
# Sorbet 0.6 defaults unsigned RBI files to typed: strict, causing 7017 errors
6+
# in these stale stubs. They cover dev tools (rake, rspec, rubocop) that don't
7+
# need type checking. Migrate to Tapioca in a follow-up to replace all stubs.
8+
--disable-watchman

sorbet/rbi/gems/connection_pool.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/docile.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/faraday-em_http.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/faraday-em_synchrony.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/faraday-excon.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/faraday-httpclient.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

sorbet/rbi/gems/faraday-multipart.rbi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# typed: true
12
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
23
# srb rbi gems
34

0 commit comments

Comments
 (0)