Skip to content

Commit 18f7dc4

Browse files
committed
Only install the sig group on Ruby 3.3 and newer
Steep 2.1 requires Ruby 3.3, and Bundler resolves every group even when BUNDLE_WITHOUT excludes it, so raising the Steep floor to 2.1 broke `bundle install` on Ruby 3.2: https://github.com/httprb/http/actions/runs/37807401969/job/113415157559 The gem still supports Ruby 3.2, so declare the sig group only on Rubies that can install it. Type checking already runs on Ruby 3.4 in CI.
1 parent 45b2f15 commit 18f7dc4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎Gemfile‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ group :test do
3232
gem "yardstick"
3333
end
3434

35-
group :sig do
36-
gem "rbs", ">= 4.1"
37-
gem "steep", ">= 2.1"
35+
# Steep 2.1 requires Ruby 3.3 or newer
36+
if Gem.ruby_version >= Gem::Version.new("3.3")
37+
group :sig do
38+
gem "rbs", ">= 4.1"
39+
gem "steep", ">= 2.1"
40+
end
3841
end
3942

4043
group :doc do

0 commit comments

Comments
 (0)